aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd
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/amd
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/amd')
-rw-r--r--src/amd/vulkan/radv_shader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 34bfa447930..5db2a1e1a80 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -247,6 +247,10 @@ radv_shader_compile_to_nir(struct radv_device *device,
.transform_feedback = true,
.storage_image_ms = true,
},
+ .ubo_ptr_type = glsl_vector_type(GLSL_TYPE_UINT, 2),
+ .ssbo_ptr_type = glsl_vector_type(GLSL_TYPE_UINT, 2),
+ .push_const_ptr_type = glsl_uint_type(),
+ .shared_ptr_type = glsl_uint_type(),
};
entry_point = spirv_to_nir(spirv, module->size / 4,
spec_entries, num_spec_entries,