v3dv: simplify scissor setup for negative viewport height
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 5 Jun 2023 09:39:19 +0000 (11:39 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 7 Jun 2023 18:40:55 +0000 (18:40 +0000)
commit84af2cb44ab56772d79bc60771162327f75f943d
tree875285954718064d7cfc758bcb723c7b727a6fe8
parent226c62b74549da567104d8b3ed361747777ef883
v3dv: simplify scissor setup for negative viewport height

KHR_maintenance1 allows clients to specify a negative
height, but not a negative width, so assert on that and
simplify the computations for the horizontal dimension.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23489>
src/broadcom/vulkan/v3dv_cmd_buffer.c