aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2020-05-06 13:14:39 -0700
committerRob Clark <[email protected]>2020-05-13 20:24:38 -0700
commitea6b404294a0d6d83360bd0c5c8ab4e6f44c3555 (patch)
treebd7fdc65faa9ed8c54020d410c67cfe7f3be46b3 /src/freedreno
parent14969aab11effa1500f114314c9b8879821b8b24 (diff)
freedreno/ir3: use const_index accessors
Cleans up a couple spots that were still open-coding this. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/ir3/ir3_a4xx.c2
-rw-r--r--src/freedreno/ir3/ir3_a6xx.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/freedreno/ir3/ir3_a4xx.c b/src/freedreno/ir3/ir3_a4xx.c
index 444b7c592f2..594fb9cd021 100644
--- a/src/freedreno/ir3/ir3_a4xx.c
+++ b/src/freedreno/ir3/ir3_a4xx.c
@@ -77,7 +77,7 @@ emit_intrinsic_store_ssbo(struct ir3_context *ctx, nir_intrinsic_instr *intr)
* it is more a PITA than that, since blob ends up loading the
* masked components and writing them back out.
*/
- unsigned wrmask = intr->const_index[0];
+ unsigned wrmask = nir_intrinsic_write_mask(intr);
unsigned ncomp = ffs(~wrmask) - 1;
/* can this be non-const buffer_index? how do we handle that? */
diff --git a/src/freedreno/ir3/ir3_a6xx.c b/src/freedreno/ir3/ir3_a6xx.c
index 6f0ba54dc36..d4cb74c39bd 100644
--- a/src/freedreno/ir3/ir3_a6xx.c
+++ b/src/freedreno/ir3/ir3_a6xx.c
@@ -107,7 +107,7 @@ emit_intrinsic_store_ssbo(struct ir3_context *ctx, nir_intrinsic_instr *intr)
* it is more a PITA than that, since blob ends up loading the
* masked components and writing them back out.
*/
- unsigned wrmask = intr->const_index[0];
+ unsigned wrmask = nir_intrinsic_write_mask(intr);
unsigned ncomp = ffs(~wrmask) - 1;
/* src0 is offset, src1 is value: