mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
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 commit1d6fe66989) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
This commit is contained in:
parent
01bca083e8
commit
a43f789e35
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue