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>
(cherry picked from commit 1d6fe66989)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
This commit is contained in:
Danylo Piliaiev 2026-01-22 19:25:20 +01:00 committed by Dylan Baker
parent 01bca083e8
commit a43f789e35
2 changed files with 2 additions and 2 deletions

View file

@ -294,7 +294,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

@ -2786,7 +2786,7 @@ fdm_apply_scissors(struct tu_cmd_buffer *cmd, struct tu_cs *cs, void *data,
offset.y -= hw_viewport_offset.y;
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,