asahi: fix scissor arrays

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26963>
This commit is contained in:
Alyssa Rosenzweig 2023-12-10 16:35:37 -04:00
parent 6612532942
commit dd787b7b43

View file

@ -1032,8 +1032,8 @@ agx_upload_viewport_scissor(struct agx_pool *pool, struct agx_batch *batch,
/* Upload each scissor */
for (unsigned i = 0; i < count; ++i) {
agx_get_scissor_extents(&vp[i], &ss[i], &batch->key, &minx[i], &miny[i],
&maxx[i], &maxy[i]);
agx_get_scissor_extents(&vp[i], ss ? &ss[i] : NULL, &batch->key, &minx[i],
&miny[i], &maxx[i], &maxy[i]);
assert(maxx[i] >= minx[i] && maxy[i] >= miny[i]);
float minz, maxz;