radv: Do more meta shader lowering.
Need this to clean up our generated RT pipeline. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12592>
This commit is contained in:
committed by
Marge Bot
parent
b1074fd51d
commit
2070d36cf3
@@ -589,9 +589,6 @@ radv_shader_compile_to_nir(struct radv_device *device, struct vk_shader_module *
|
||||
NIR_PASS_V(nir, nir_propagate_invariant,
|
||||
device->instance->debug_flags & RADV_DEBUG_INVARIANT_GEOM);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_system_values);
|
||||
NIR_PASS_V(nir, nir_lower_compute_system_values, NULL);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_clip_cull_distance_arrays);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_discard_or_demote,
|
||||
@@ -610,6 +607,9 @@ radv_shader_compile_to_nir(struct radv_device *device, struct vk_shader_module *
|
||||
NIR_PASS_V(nir, nir_lower_doubles, NULL, lower_doubles);
|
||||
}
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_system_values);
|
||||
NIR_PASS_V(nir, nir_lower_compute_system_values, NULL);
|
||||
|
||||
/* Vulkan uses the separate-shader linking model */
|
||||
nir->info.separate_shader = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user