From: Alyssa Rosenzweig Date: Tue, 1 Aug 2023 14:42:03 +0000 (-0400) Subject: panfrost: Only define pan_blitter_get_blend_shaders for midgard X-Git-Tag: upstream/23.3.3~4831 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59d5d090acac02ffa6659102f5620060816dafdf;p=platform%2Fupstream%2Fmesa.git panfrost: Only define pan_blitter_get_blend_shaders for midgard Unused otherwise, responds to a -Wunused-function warning. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Italo Nicola Acked-by: Faith Ekstrand Part-of: --- diff --git a/src/panfrost/lib/pan_blitter.c b/src/panfrost/lib/pan_blitter.c index 97d1de6..2ecbead 100644 --- a/src/panfrost/lib/pan_blitter.c +++ b/src/panfrost/lib/pan_blitter.c @@ -308,13 +308,13 @@ pan_blitter_emit_rsd(const struct panfrost_device *dev, } #endif +#if PAN_ARCH <= 5 static void pan_blitter_get_blend_shaders(struct panfrost_device *dev, unsigned rt_count, const struct pan_image_view **rts, const struct pan_blit_shader_data *blit_shader, mali_ptr *blend_shaders) { -#if PAN_ARCH <= 5 if (!rt_count) return; @@ -375,8 +375,8 @@ pan_blitter_get_blend_shaders(struct panfrost_device *dev, unsigned rt_count, pthread_mutex_unlock(&dev->blitter.shaders.lock); blend_shaders[i] = blend_shader->address; } -#endif } +#endif /* * Early Mali GPUs did not respect sampler LOD clamps or bias, so the Midgard @@ -770,8 +770,10 @@ pan_blitter_get_rsd(struct panfrost_device *dev, const struct pan_blit_shader_data *blit_shader = pan_blitter_get_blit_shader(dev, &blit_key); +#if PAN_ARCH <= 5 pan_blitter_get_blend_shaders(dev, views->rt_count, views->dst_rts, blit_shader, blend_shaders); +#endif pan_blitter_emit_rsd(dev, blit_shader, views, blend_shaders, rsd_ptr.cpu); rsd->address = rsd_ptr.gpu;