From: Connor Abbott <cwabbo...@gmail.com>

We didn't need this for read_invocation, since the SPIR-V version of
shader_ballot explicitly says that ReadInvocation and
ReadFirstInvocation can only be used with scalars, but this isn't true
for some of the SPV_AMD_shader_ballot intrinsics.
---
 src/amd/vulkan/radv_pipeline.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index fd86519..3ed0df7 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -155,6 +155,7 @@ radv_optimize_nir(struct nir_shader *shader)
                 NIR_PASS_V(shader, nir_lower_vars_to_ssa);
                NIR_PASS_V(shader, nir_lower_64bit_pack);
                 NIR_PASS_V(shader, nir_lower_alu_to_scalar);
+               NIR_PASS_V(shader, nir_lower_cross_thread_to_scalar);
                 NIR_PASS_V(shader, nir_lower_phis_to_scalar);
                NIR_PASS_V(shader, nir_opt_intrinsics);
 
-- 
2.9.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to