summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_scan.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-01-01 19:42:44 +0100
committerMarek Olšák <[email protected]>2016-01-07 18:26:05 +0100
commitff7e77724e0cf1409f84118d0d4ceee65535ccdb (patch)
tree6eaec8322d94fa23a7fdfe5868a43bc244bd4ade /src/gallium/auxiliary/tgsi/tgsi_scan.h
parent18ec76730a75b6fbc2783d6a84a844cb038456ff (diff)
tgsi/scan: set which color components are read by a fragment shader
This will be used by radeonsi. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_scan.h')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h
index a3e437809aa..b0b423ab528 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h
@@ -77,6 +77,7 @@ struct tgsi_shader_info
uint opcode_count[TGSI_OPCODE_LAST]; /**< opcode histogram */
+ ubyte colors_read; /**< which color components are read by the FS */
ubyte colors_written;
boolean reads_position; /**< does fragment shader read position? */
boolean reads_z; /**< does fragment shader read depth? */