nir/spirv: improve parsing of the memory model

v2: add some vtn_fail_ifs

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Karol Herbst
2018-07-19 13:04:14 +02:00
parent 5d48359a2c
commit 5f8257fb0b
3 changed files with 45 additions and 7 deletions

View File

@@ -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. */