aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2018-02-14 13:59:09 +1000
committerDave Airlie <[email protected]>2018-02-14 14:02:41 +1000
commitb9d2ff05a64f751f5814314b2cce45e6270ddf7f (patch)
tree35676b6f0dce6241d713c95aa3a9e2a7d6b148af /src
parent9c9a9bee4431124439c57a9429e745dd4837fcdf (diff)
r600: fix regression in gl_FragColor drawing
This fixes a regression in the broadcast color to all color bufs case. Fixes: 6c691081a (r600: fixup sparse color exports.) Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 7d60bd90c3c..b49c79c0404 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -4123,6 +4123,8 @@ static int r600_shader_from_tgsi(struct r600_context *rctx,
output[j].op = CF_OP_EXPORT;
output[j].type = V_SQ_CF_ALLOC_EXPORT_WORD0_SQ_EXPORT_PIXEL;
shader->nr_ps_color_exports++;
+ if (k > shader->ps_export_highest)
+ shader->ps_export_highest = k;
shader->ps_color_export_mask |= (0xf << (j * 4));
}
}