mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 07:30:09 +01:00
radv: move terminate{_if} out of loops.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33479>
This commit is contained in:
parent
c59356e6a5
commit
fa4eb37bf6
1 changed files with 2 additions and 0 deletions
|
|
@ -586,6 +586,8 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_shader_st
|
|||
|
||||
NIR_PASS(_, nir, nir_lower_load_const_to_scalar);
|
||||
NIR_PASS(_, nir, nir_opt_shrink_stores, !instance->drirc.disable_shrink_image_store);
|
||||
if (nir->info.stage == MESA_SHADER_FRAGMENT && nir->info.fs.uses_discard)
|
||||
NIR_PASS(_, nir, nir_lower_discard_if, nir_move_terminate_out_of_loops);
|
||||
|
||||
const nir_opt_access_options opt_access_options = {
|
||||
.is_vulkan = true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue