summaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv/vtn_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-12-15 08:31:51 -0600
committerJason Ekstrand <[email protected]>2019-01-08 00:38:30 +0000
commit5c3cb9c3ce3f9fb05c22536c30a68a7b09300642 (patch)
treebde031799ff13eeeb7020c0eea6f5f13db1b55cb /src/compiler/spirv/vtn_private.h
parente90b738f201e7281e2a4cf43eddd2d15eb942cce (diff)
spirv: Add error checking for Block and BufferBlock decorations
Variable pointers being well-defined across the block boundary requires a couple of very specific SPIR-V validation rules. Normally, we'd trust the validator to catch these but since CTS tests have been found in the wild which violate them, we'll carry our own checks. Reviewed-by: Alejandro PiƱeiro <[email protected]> Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_private.h')
-rw-r--r--src/compiler/spirv/vtn_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/spirv/vtn_private.h b/src/compiler/spirv/vtn_private.h
index 35739255510..342d4b74d71 100644
--- a/src/compiler/spirv/vtn_private.h
+++ b/src/compiler/spirv/vtn_private.h
@@ -586,6 +586,7 @@ struct vtn_builder {
struct vtn_value *entry_point;
bool origin_upper_left;
bool pixel_center_integer;
+ bool variable_pointers;
struct vtn_function *func;
struct exec_list functions;