zink: make zink_kopper_present_info public

no functional changes

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27867>
This commit is contained in:
Mike Blumenkrantz
2024-02-13 14:12:51 -05:00
committed by Marge Bot
parent 4c73e52933
commit cdd1ce140d
2 changed files with 11 additions and 11 deletions

View File

@@ -662,19 +662,10 @@ zink_kopper_present(struct zink_screen *screen, struct zink_resource *res)
return res->obj->present;
}
struct kopper_present_info {
VkPresentInfoKHR info;
uint32_t image;
struct kopper_swapchain *swapchain;
struct zink_resource *res;
VkSemaphore sem;
bool indefinite_acquire;
};
static void
kopper_present(void *data, void *gdata, int thread_idx)
{
struct kopper_present_info *cpi = data;
struct zink_kopper_present_info *cpi = data;
struct kopper_displaytarget *cdt = cpi->res->obj->dt;
struct kopper_swapchain *swapchain = cpi->swapchain;
struct zink_screen *screen = gdata;
@@ -784,7 +775,7 @@ zink_kopper_present_queue(struct zink_screen *screen, struct zink_resource *res)
if (cdt->swapchain->last_present != UINT32_MAX)
prune_old_swapchains(screen, cdt, false);
struct kopper_present_info *cpi = malloc(sizeof(struct kopper_present_info));
struct zink_kopper_present_info *cpi = malloc(sizeof(struct zink_kopper_present_info));
if (!cpi) {
mesa_loge("ZINK: failed to allocate cpi!");
return;

View File

@@ -100,6 +100,15 @@ struct kopper_displaytarget
bool age_locked; //disables buffer age during readback
};
struct zink_kopper_present_info {
VkPresentInfoKHR info;
uint32_t image;
struct kopper_swapchain *swapchain;
struct zink_resource *res;
VkSemaphore sem;
bool indefinite_acquire;
};
struct zink_context;
struct zink_screen;
struct zink_resource;