mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
nir/opt_sink: do not sink load_ubo_vec4 out of loops
Same reason as for load_ubo. Fixes:d199d65c3a("nir/nir_opt_move,sink: Include load_ubo_vec4 as a load_ubo instr.") Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30906> (cherry picked from commit1ec3cc2aed)
This commit is contained in:
parent
099de7a954
commit
ce70d51e83
2 changed files with 2 additions and 1 deletions
|
|
@ -1184,7 +1184,7 @@
|
|||
"description": "nir/opt_sink: do not sink load_ubo_vec4 out of loops",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "d199d65c3af6cc87cd77585b21435ddb5125654d",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -252,6 +252,7 @@ can_sink_out_of_loop(nir_intrinsic_instr *intrin)
|
|||
* by nir_lower_non_uniform_access.
|
||||
*/
|
||||
return intrin->intrinsic != nir_intrinsic_load_ubo &&
|
||||
intrin->intrinsic != nir_intrinsic_load_ubo_vec4 &&
|
||||
intrin->intrinsic != nir_intrinsic_load_ssbo;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue