diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-07-28 22:31:00 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-08-06 15:48:50 +0000 |
commit | 2301b2e029d1616019478531e00faf89b9582ed0 (patch) | |
tree | da6d52994ecda9a2942e35c47cba7da8885d0636 | |
parent | dfe048058fa2492a0b0f8a33ae47c2c02ac200a7 (diff) |
radv: Do non-uniform lowering before bool lowering.
Since it can introduce comparisons.
Fixes: 028ce527395 "radv: Add non-uniform indexing lowering."
Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index d722d558a43..86f0dc11089 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2528,12 +2528,12 @@ void radv_create_shaders(struct radv_pipeline *pipeline, for (int i = 0; i < MESA_SHADER_STAGES; ++i) { if (nir[i]) { - NIR_PASS_V(nir[i], nir_lower_bool_to_int32); NIR_PASS_V(nir[i], nir_lower_non_uniform_access, nir_lower_non_uniform_ubo_access | nir_lower_non_uniform_ssbo_access | nir_lower_non_uniform_texture_access | nir_lower_non_uniform_image_access); + NIR_PASS_V(nir[i], nir_lower_bool_to_int32); } if (radv_can_dump_shader(device, modules[i], false)) |