mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
nir/opt_load_store_vectorize: don't vectorize stores across demote
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Fixes:ce9205c03b("nir: add a load/store vectorization pass") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7163> (cherry picked from commitf8e971f511)
This commit is contained in:
parent
a3b0904eb9
commit
fa22dff663
3 changed files with 8 additions and 1 deletions
|
|
@ -130,7 +130,7 @@
|
|||
"description": "nir/opt_load_store_vectorize: don't vectorize stores across demote",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "ce9205c03bd20d26af23ca891e97a9f848a612d1"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1219,6 +1219,11 @@ handle_barrier(struct vectorize_ctx *ctx, bool *progress, nir_function_impl *imp
|
|||
case nir_intrinsic_discard:
|
||||
modes = nir_var_all;
|
||||
break;
|
||||
case nir_intrinsic_demote_if:
|
||||
case nir_intrinsic_demote:
|
||||
acquire = false;
|
||||
modes = nir_var_all;
|
||||
break;
|
||||
case nir_intrinsic_memory_barrier_buffer:
|
||||
modes = nir_var_mem_ssbo | nir_var_mem_global;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -355,6 +355,8 @@ nir_schedule_intrinsic_deps(nir_deps_state *state,
|
|||
|
||||
case nir_intrinsic_discard:
|
||||
case nir_intrinsic_discard_if:
|
||||
case nir_intrinsic_demote:
|
||||
case nir_intrinsic_demote_if:
|
||||
/* We are adding two dependencies:
|
||||
*
|
||||
* * A individual one that we could use to add a read_dep while handling
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue