summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_shader.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-01-15 21:58:53 +0100
committerMarek Olšák <[email protected]>2016-01-22 15:02:40 +0100
commit99dfeb01bd5c3e059968e934f3ec88b2fe43e3f4 (patch)
treedbe64d398b307a3efbb1d1c13904b396b87da6e8 /src/gallium/drivers/radeonsi/si_shader.h
parentf6360de8c02a52e29c2f6f65b94fd981ffd3851f (diff)
radeonsi: disable SPI color outputs the shader doesn't write
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h
index f49290afadf..50375e28ea4 100644
--- a/src/gallium/drivers/radeonsi/si_shader.h
+++ b/src/gallium/drivers/radeonsi/si_shader.h
@@ -213,6 +213,10 @@ struct si_shader_selector {
/* PS parameters. */
unsigned db_shader_control;
+ /* Set 0xf or 0x0 (4 bits) per each written output.
+ * ANDed with spi_shader_col_format.
+ */
+ unsigned colors_written_4bit;
/* masks of "get_unique_index" bits */
uint64_t outputs_written;