mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 13:40:16 +01:00
nir: Eliminate store_combined_output_pan BASE
It's meaningless for this intrinsic and is just adding noise to the lowering pass. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13714>
This commit is contained in:
parent
b3d7272753
commit
5c168f09eb
2 changed files with 1 additions and 8 deletions
|
|
@ -1149,7 +1149,7 @@ intrinsic("shared_atomic_comp_swap_dxil", src_comp=[1, 1, 1], dest_comp=1)
|
|||
|
||||
# src[] = { value }
|
||||
store("raw_output_pan", [], [])
|
||||
store("combined_output_pan", [1, 1, 1], [BASE, COMPONENT, SRC_TYPE])
|
||||
store("combined_output_pan", [1, 1, 1], [COMPONENT, SRC_TYPE])
|
||||
load("raw_output_pan", [1], [BASE], [CAN_ELIMINATE, CAN_REORDER])
|
||||
|
||||
# Loads the sampler paramaters <min_lod, max_lod, lod_bias>
|
||||
|
|
|
|||
|
|
@ -115,7 +115,6 @@ pan_nir_lower_zs_store(nir_shader *nir)
|
|||
|
||||
combined_store->num_components = intr->src[0].ssa->num_components;
|
||||
|
||||
nir_intrinsic_set_base(combined_store, nir_intrinsic_base(intr));
|
||||
nir_intrinsic_set_src_type(combined_store, nir_intrinsic_src_type(intr));
|
||||
|
||||
unsigned writeout = PAN_WRITEOUT_C;
|
||||
|
|
@ -167,12 +166,6 @@ pan_nir_lower_zs_store(nir_shader *nir)
|
|||
|
||||
combined_store->num_components = 4;
|
||||
|
||||
unsigned base;
|
||||
if (z_store)
|
||||
base = nir_intrinsic_base(z_store);
|
||||
else
|
||||
base = nir_intrinsic_base(s_store);
|
||||
nir_intrinsic_set_base(combined_store, base);
|
||||
nir_intrinsic_set_src_type(combined_store, nir_type_float32);
|
||||
|
||||
unsigned writeout = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue