From 85a91f461c535cc07ac1ed321cccb7908fe1e254 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Tue, 12 Mar 2024 14:31:02 -0400 Subject: [PATCH] drisw/winsys: Flip y coordinate when creating pipe boxes Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/frontends/dri/drisw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/dri/drisw.c b/src/gallium/frontends/dri/drisw.c index a64092569aa..caf020d17f2 100644 --- a/src/gallium/frontends/dri/drisw.c +++ b/src/gallium/frontends/dri/drisw.c @@ -246,7 +246,7 @@ drisw_swap_buffers_with_damage(struct dri_drawable *drawable, int nrects, const for (unsigned int i = 0; i < nrects; i++) { const int *rect = &rects[i * 4]; - u_box_2d(rect[0], rect[1], rect[2], rect[3], &stack_boxes[i]); + u_box_2d(rect[0], ptex->height0 - rect[1] - rect[3], rect[2], rect[3], &stack_boxes[i]); } }