mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
panvk: fix scissor box
Fix a typo in prepare_vp which causes incorrect scissor box with
non-zero X in viewport/scissor.
Fixes: 5544d39f44 ("panvk: Add a CSF backend for panvk_queue/cmd_buffer")
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31832>
This commit is contained in:
parent
029b8b11a0
commit
5fea98c4a1
1 changed files with 1 additions and 1 deletions
|
|
@ -558,7 +558,7 @@ prepare_vp(struct panvk_cmd_buffer *cmdbuf)
|
|||
MAX2((int)viewport->y, (int)(viewport->y + viewport->height));
|
||||
|
||||
assert(scissor->offset.x >= 0 && scissor->offset.y >= 0);
|
||||
miny = MAX2(scissor->offset.x, minx);
|
||||
minx = MAX2(scissor->offset.x, minx);
|
||||
miny = MAX2(scissor->offset.y, miny);
|
||||
maxx = MIN2(scissor->offset.x + scissor->extent.width, maxx);
|
||||
maxy = MIN2(scissor->offset.y + scissor->extent.height, maxy);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue