diff options
author | Rob Clark <[email protected]> | 2018-12-04 09:52:14 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-12-07 13:49:21 -0500 |
commit | 0d240c22141d9f5d387b8a3b6d18dfd9688b136d (patch) | |
tree | af53991c7abb5272ccd02ea91b4e332a666bb720 /src/freedreno/ir3/ir3_ra.c | |
parent | b971afd19e7be15738329b890bf72f3ea73402ea (diff) |
freedreno/ir3: don't fetch unused tex components
Detect when a component of an (for example) texture fetch is unused and
propagate the updated wrmask back to the parent instruction.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno/ir3/ir3_ra.c')
-rw-r--r-- | src/freedreno/ir3/ir3_ra.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_ra.c b/src/freedreno/ir3/ir3_ra.c index ad09c4018d3..b202c141378 100644 --- a/src/freedreno/ir3/ir3_ra.c +++ b/src/freedreno/ir3/ir3_ra.c @@ -509,6 +509,8 @@ get_definer(struct ir3_ra_ctx *ctx, struct ir3_instruction *instr, d = dd; } + debug_assert(d->opc != OPC_META_FO); + id->defn = d; id->sz = *sz; id->off = *off; |