mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
broadcom/compiler: Use nir_trim_vector explicitly
...when trying to ignore components. Trim functionality with nir_ssa_for_src is deprecated. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24654>
This commit is contained in:
parent
c182ab2b83
commit
8552311343
1 changed files with 2 additions and 2 deletions
|
|
@ -129,7 +129,7 @@ lower_load_bitsize(nir_builder *b,
|
|||
|
||||
/* For global 2x32 we ignore Y component because it must be zero */
|
||||
unsigned offset_idx = offset_src(intr->intrinsic);
|
||||
nir_def *offset = nir_ssa_for_src(b, intr->src[offset_idx], 1);
|
||||
nir_def *offset = nir_trim_vector(b, intr->src[offset_idx].ssa, 1);
|
||||
|
||||
/* Split vector store to multiple scalar loads */
|
||||
nir_def *dest_components[4] = { NULL };
|
||||
|
|
@ -187,7 +187,7 @@ lower_store_bitsize(nir_builder *b,
|
|||
|
||||
/* For global 2x32 we ignore Y component because it must be zero */
|
||||
unsigned offset_idx = offset_src(intr->intrinsic);
|
||||
nir_def *offset = nir_ssa_for_src(b, intr->src[offset_idx], 1);
|
||||
nir_def *offset = nir_trim_vector(b, intr->src[offset_idx].ssa, 1);
|
||||
|
||||
/* Split vector store to multiple scalar stores */
|
||||
const nir_intrinsic_info *info = &nir_intrinsic_infos[intr->intrinsic];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue