summaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv/nir_spirv.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-11-28 15:20:03 -0600
committerJason Ekstrand <[email protected]>2019-01-08 00:38:30 +0000
commitadc155a8156ee4df18c66bc44587a6880a70bdd7 (patch)
treeb96e01a55601d50cb8f1db0800065a93e5c1b9fd /src/compiler/spirv/nir_spirv.h
parentbe039cb467635c6e2a70e29a586de7a5e403c929 (diff)
spirv: Add explicit pointer types
Instead of baking in uvec2 for UBO and SSBO pointers and uint for push constant and shared memory pointers, make it configurable. Reviewed-by: Alejandro PiƱeiro <[email protected]> Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/compiler/spirv/nir_spirv.h')
-rw-r--r--src/compiler/spirv/nir_spirv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/spirv/nir_spirv.h b/src/compiler/spirv/nir_spirv.h
index d2766abb7f9..c73b273ddb4 100644
--- a/src/compiler/spirv/nir_spirv.h
+++ b/src/compiler/spirv/nir_spirv.h
@@ -61,6 +61,12 @@ struct spirv_to_nir_options {
struct spirv_supported_capabilities caps;
+ /* Storage types for various kinds of pointers. */
+ const struct glsl_type *ubo_ptr_type;
+ const struct glsl_type *ssbo_ptr_type;
+ const struct glsl_type *push_const_ptr_type;
+ const struct glsl_type *shared_ptr_type;
+
struct {
void (*func)(void *private_data,
enum nir_spirv_debug_level level,