Commit 95145376 authored by Connor Abbott's avatar Connor Abbott Committed by Dylan Baker

radv: Call nir_propagate_invariant()

Without this, invariant qualifiers don't do anything. Together with a
fix to the game, this fixes flickering in No Man's Sky.

Reviewed-by: Samuel Pitoiset's avatarSamuel Pitoiset <>
(cherry picked from commit 3f5b541f)
parent 3ef013f0
Pipeline #61459 passed with stages
in 43 minutes and 31 seconds
......@@ -389,6 +389,8 @@ radv_shader_compile_to_nir(struct radv_device *device,
NIR_PASS_V(nir, nir_remove_dead_variables,
nir_var_shader_in | nir_var_shader_out | nir_var_system_value);
NIR_PASS_V(nir, nir_propagate_invariant);
NIR_PASS_V(nir, nir_lower_system_values);
NIR_PASS_V(nir, nir_lower_clip_cull_distance_arrays);
NIR_PASS_V(nir, radv_nir_lower_ycbcr_textures, layout);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment