summaryrefslogtreecommitdiffstats
path: root/src/compiler/shader_info.h
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2018-07-19 13:04:14 +0200
committerKarol Herbst <[email protected]>2019-03-05 22:28:29 +0100
commit5f8257fb0b022448eaee7c7d843fcf7309776d83 (patch)
tree47be1fbd3f99a15be5c193de71c673f95a6184bd /src/compiler/shader_info.h
parent5d48359a2c5670d55f24e91229f59efc6368dcba (diff)
nir/spirv: improve parsing of the memory model
v2: add some vtn_fail_ifs Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/shader_info.h')
-rw-r--r--src/compiler/shader_info.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index 5b229130a11..ef195760acb 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -243,6 +243,15 @@ typedef struct shader_info {
* Size of shared variables accessed by the compute shader.
*/
unsigned shared_size;
+
+
+ /**
+ * pointer size is:
+ * AddressingModelLogical: 0 (default)
+ * AddressingModelPhysical32: 32
+ * AddressingModelPhysical64: 64
+ */
+ unsigned ptr_size;
} cs;
/* Applies to both TCS and TES. */