From: Alyssa Rosenzweig Date: Mon, 17 Aug 2020 23:57:54 +0000 (-0400) Subject: panfrost: Fix blend leak for render targets 5-8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba4fc67812cd052a4c89cac0f376326f52da1fda;p=mesa.git panfrost: Fix blend leak for render targets 5-8 Signed-off-by: Alyssa Rosenzweig Fixes: 375d4c2c74d ("panfrost: Extend blending to MRT") Reviewed-by: Tomeu Vizoso Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_blend_cso.c b/src/gallium/drivers/panfrost/pan_blend_cso.c index b39bfa89aac..ffda1196d04 100644 --- a/src/gallium/drivers/panfrost/pan_blend_cso.c +++ b/src/gallium/drivers/panfrost/pan_blend_cso.c @@ -165,7 +165,7 @@ panfrost_delete_blend_state(struct pipe_context *pipe, { struct panfrost_blend_state *blend = (struct panfrost_blend_state *) cso; - for (unsigned c = 0; c < 4; ++c) { + for (unsigned c = 0; c < PIPE_MAX_COLOR_BUFS; ++c) { struct panfrost_blend_rt *rt = &blend->rt[c]; _mesa_hash_table_u64_clear(rt->shaders, panfrost_delete_blend_shader); }