diff options
author | Rob Clark <[email protected]> | 2018-04-05 14:24:33 -0400 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-06-22 20:54:00 -0700 |
commit | c6009a1e8ea3b839ac1eef4456e9e0c0f05bf2b2 (patch) | |
tree | 516db6456b2fac06677b11976d7c27ce17920daa /src/amd/vulkan/radv_pipeline.c | |
parent | d143f6c8562e930562fc4902c1bf0013901cecf9 (diff) |
nir: convert lower_io_to_scalar to deref instructions
Signed-off-by: Rob Clark <[email protected]>
Acked-by: Rob Clark <[email protected]>
Acked-by: Bas Nieuwenhuizen <[email protected]>
Acked-by: Dave Airlie <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline.c')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 1609b800208..40c0374d175 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2034,8 +2034,6 @@ void radv_create_shaders(struct radv_pipeline *pipeline, nir[i] = nir_shader_clone(NULL, nir[i]); } - NIR_PASS_V(nir[i], nir_lower_deref_instrs, ~0); - if (first != last) { nir_variable_mode mask = 0; @@ -2050,6 +2048,8 @@ void radv_create_shaders(struct radv_pipeline *pipeline, radv_optimize_nir(nir[i], false); } } + + NIR_PASS_V(nir[i], nir_lower_deref_instrs, ~0); } if (nir[MESA_SHADER_TESS_CTRL]) { |