From 4174a13459da6086963b4b43b4e0dcdd680da6db Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 22 May 2020 18:34:34 -0700 Subject: [PATCH] panfrost: Ensure final.no_colour is initialized. Fix warning reported by Coverity Scan. Uninitialized scalar variable (UNINIT) uninit_use: Using uninitialized value final. Field final.no_colour is uninitialized. Fixes: 3e4e849e6a96 ("panfrost: Disable tib read/write when colourmask = 0x0") Signed-off-by: Vinson Lee Reviewed-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_blend_cso.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/panfrost/pan_blend_cso.c b/src/gallium/drivers/panfrost/pan_blend_cso.c index a68a9911b57..518005c9f68 100644 --- a/src/gallium/drivers/panfrost/pan_blend_cso.c +++ b/src/gallium/drivers/panfrost/pan_blend_cso.c @@ -265,6 +265,7 @@ panfrost_get_blend_for_context(struct panfrost_context *ctx, unsigned rti, struc struct panfrost_blend_shader *shader = panfrost_get_blend_shader(ctx, blend, fmt, rti); final.is_shader = true; final.no_blending = false; + final.no_colour = false; final.shader.work_count = shader->work_count; final.shader.first_tag = shader->first_tag; -- 2.30.2