summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state_shaders.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-12-23 18:06:04 +0100
committerMarek Olšák <[email protected]>2016-01-07 18:26:06 +0100
commit5f3e6b5b0f0665c6593cdc59efdb11b0ef6063c3 (patch)
tree1923d937a12922c542a446904c7de16a4f3c3c85 /src/gallium/drivers/radeonsi/si_state_shaders.c
parente00f3f23b13e2ad99977005da2c1538f181e401d (diff)
radeonsi: simplify setting the DONE bit for PS exports
First find out what the last export is and simply set the DONE bit there. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_shaders.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_shaders.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c
index b08b035f62f..68ba7ec00b4 100644
--- a/src/gallium/drivers/radeonsi/si_state_shaders.c
+++ b/src/gallium/drivers/radeonsi/si_state_shaders.c
@@ -428,7 +428,7 @@ static void si_shader_ps(struct si_shader *shader)
colors_written = info->colors_written;
export_16bpc = shader->key.ps.export_16bpc;
- if (info->colors_written == 0x0) {
+ if (!info->num_outputs) {
colors_written = 0x1; /* dummy export */
export_16bpc = 0;
} else if (info->colors_written == 0x1 &&