Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038>
res->obj->vkusage = cdt->swapchain->scci.imageUsage;
res->base.b.bind |= PIPE_BIND_DISPLAY_TARGET;
res->optimal_tiling = true;
+ res->swapchain = true;
}
if (res->obj->is_buffer) {
res->base.buffer_id_unique = util_idalloc_mt_alloc(&screen->buffer_ids);
};
};
+ bool swapchain;
bool dmabuf_acquire;
unsigned dt_stride;
static inline bool
zink_is_swapchain(const struct zink_resource *res)
{
- return (res->base.b.bind & PIPE_BIND_DISPLAY_TARGET) > 0;
+ return res->swapchain;
}
#ifndef __cplusplus