asahi: Clamp index buffer extent to what's read
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 31 Aug 2023 00:29:43 +0000 (20:29 -0400)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 1 Oct 2023 16:32:11 +0000 (12:32 -0400)
commitcb14cddfa50759aea3f80bce07008f551c877ea2
treecd2ab2069f852eedb31f50776c2eda7cfcf52ee7
parent2be9b66cddbe56136adb95013f084b3d881b8b71
asahi: Clamp index buffer extent to what's read

This makes for cleaner agxdecodes, I think this matches what I've seen on the
macOS side but I might be misremembering. Certainly shouldn't hurt.

This only applies for direct draws.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/asahi/agx_state.c