panfrost: Use generic delete for ZSA
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 8 Jul 2021 18:49:10 +0000 (14:49 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 12 Jul 2021 23:12:29 +0000 (23:12 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11785>

src/gallium/drivers/panfrost/pan_context.c

index 63c77c6..f8a4326 100644 (file)
@@ -704,12 +704,6 @@ panfrost_bind_depth_stencil_state(struct pipe_context *pipe,
 }
 
 static void
-panfrost_delete_depth_stencil_state(struct pipe_context *pipe, void *depth)
-{
-        free( depth );
-}
-
-static void
 panfrost_set_sample_mask(struct pipe_context *pipe,
                          unsigned sample_mask)
 {
@@ -1076,7 +1070,7 @@ panfrost_create_context(struct pipe_screen *screen, void *priv, unsigned flags)
         gallium->bind_sampler_states = panfrost_bind_sampler_states;
 
         gallium->bind_depth_stencil_alpha_state   = panfrost_bind_depth_stencil_state;
-        gallium->delete_depth_stencil_alpha_state = panfrost_delete_depth_stencil_state;
+        gallium->delete_depth_stencil_alpha_state = panfrost_generic_cso_delete;
 
         gallium->set_sample_mask = panfrost_set_sample_mask;
         gallium->set_min_samples = panfrost_set_min_samples;