summaryrefslogtreecommitdiffstats
path: root/src/compiler/shader_info.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-11-14 15:10:44 +1000
committerDave Airlie <[email protected]>2017-11-27 13:50:03 +1000
commit33dca36f4f28411ed4846786a6fbe049193b2711 (patch)
treec5c4c023067fb5a437807cfc20b2c604306a4141 /src/compiler/shader_info.h
parentfd301472bdb364fafb01f2c3ebe9be375636cd45 (diff)
nir: fill outputs_read field and add patch outputs read (v2)
This is to be used for TCS optimisations on radv. v2: don't set written on reads (nha) Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/shader_info.h')
-rw-r--r--src/compiler/shader_info.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index 5f14ad19df7..bcb3f0fffac 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -66,6 +66,8 @@ typedef struct shader_info {
uint32_t patch_inputs_read;
/* Which patch outputs are actually written */
uint32_t patch_outputs_written;
+ /* Which patch outputs are read */
+ uint32_t patch_outputs_read;
/* Whether or not this shader ever uses textureGather() */
bool uses_texture_gather;