From ca25229f907cbf8976f3a283fce57097c08daf6f Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Thu, 22 Jan 2026 19:25:20 +0100 Subject: [PATCH] tu: Fix typo in min bounds calculation of FDM scissors Fixes: fec372dfa50 ("tu: Implement FDM viewport patching") Signed-off-by: Danylo Piliaiev Part-of: (cherry picked from commit 1d6fe66989957ac5d74c3872b46de7b1966e047c) --- .pick_status.json | 2 +- src/freedreno/vulkan/tu_pipeline.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index f874df64fc6..bafb1708fb0 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -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 diff --git a/src/freedreno/vulkan/tu_pipeline.cc b/src/freedreno/vulkan/tu_pipeline.cc index 8cd2e5ad58c..9c7e51556fd 100644 --- a/src/freedreno/vulkan/tu_pipeline.cc +++ b/src/freedreno/vulkan/tu_pipeline.cc @@ -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,