From: Alyssa Rosenzweig Date: Thu, 8 Jul 2021 18:49:10 +0000 (-0400) Subject: panfrost: Use generic delete for ZSA X-Git-Tag: upstream/21.2.3~508 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0b036ff7137890ca53f0ec3405c07ec504c8f4a;p=platform%2Fupstream%2Fmesa.git panfrost: Use generic delete for ZSA Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 63c77c6..f8a4326 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -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;