Acked-by: Jordan Justen <jordan.l.justen@intel.com>
static void
zink_destroy_sampler_view(struct pipe_context *pctx,
- struct pipe_sampler_view *view)
+ struct pipe_sampler_view *pview)
{
+ struct zink_sampler_view *view = zink_sampler_view(pview);
+ vkDestroyImageView(zink_screen(pctx->screen)->dev, view->image_view, NULL);
FREE(view);
}
VkImageView image_view;
};
+static inline struct zink_sampler_view *
+zink_sampler_view(struct pipe_sampler_view *pview)
+{
+ return (struct zink_sampler_view *)pview;
+}
+
struct zink_context {
struct pipe_context base;
struct slab_child_pool transfer_pool;