tu: Fix typo in min bounds calculation of FDM scissors

Fixes: fec372dfa5 ("tu: Implement FDM viewport patching")

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39461>
(cherry picked from commit 1d6fe66989)
This commit is contained in:
Danylo Piliaiev 2026-01-22 19:25:20 +01:00 committed by Eric Engestrom
parent 4aa5731f09
commit ca25229f90
2 changed files with 2 additions and 2 deletions

View file

@ -3214,7 +3214,7 @@
"description": "tu: Fix typo in min bounds calculation of FDM scissors",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "fec372dfa502f588e894c19e9c2a8ba2c73d6c9a",
"notes": null

View file

@ -2891,7 +2891,7 @@ fdm_apply_scissors(struct tu_cmd_buffer *cmd, struct tu_cs *cs, void *data,
VkOffset2D min = {
scissor.offset.x / frag_area.width + offset.x,
scissor.offset.y / frag_area.width + offset.y,
scissor.offset.y / frag_area.height + offset.y,
};
VkOffset2D max = {
DIV_ROUND_UP(scissor.offset.x + scissor.extent.width, frag_area.width) + offset.x,