agx: Convert and clamp array indices in NIR

..Rather than at backend IR translation time. This is considerably
simpler because we can use the txs lowering instead of special casing
array sizes. Unfortunately it generates worse code, but that gap should
close once nir_opt_preamble is wired in.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18652>
This commit is contained in:
Alyssa Rosenzweig
2022-09-18 11:38:12 -04:00
committed by Marge Bot
parent 1304f4578d
commit a1faab0b90
6 changed files with 83 additions and 71 deletions

View File

@@ -741,6 +741,7 @@ void agx_compute_liveness(agx_context *ctx);
void agx_liveness_ins_update(BITSET_WORD *live, agx_instr *I);
bool agx_lower_resinfo(nir_shader *s);
bool agx_nir_lower_array_texture(nir_shader *s);
#ifdef __cplusplus
} /* extern C */