agx: Fix packing of samplers in texture instrs

Typo in the handwritten packing code, oof!

Fixes incorrectly repeated shadows in Neverball (among many other bugs,
I assume). Huge thanks to Lina for the idea that this was the
bug -- fixing it was a breeze from there :-)

Fixes: 9f55538834 ("agx: Pack texture ops")
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Suggested-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17198>
This commit is contained in:
Alyssa Rosenzweig 2022-08-03 15:35:24 -04:00
parent 9bd32fb33a
commit 47a3f1226c

View file

@ -597,7 +597,7 @@ agx_pack_instr(struct util_dynarray *emission, struct util_dynarray *fixups, agx
(((uint64_t) q3) << 43) |
(((uint64_t) I->mask) << 48) |
(((uint64_t) I->lod_mode) << 52) |
(((uint64_t) (S & BITFIELD_MASK(6))) << 32) |
(((uint64_t) (S & BITFIELD_MASK(6))) << 56) |
(((uint64_t) St) << 62) |
(((uint64_t) q5) << 63);