radv: Do non-uniform lowering before bool lowering.
Since it can introduce comparisons.
Fixes: 028ce52739
"radv: Add non-uniform indexing lowering."
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
dfe048058f
commit
2301b2e029
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue