path: root/src
diff options
authorDave Airlie <>2013-12-05 13:30:17 +1000
committerCarl Worth <>2013-12-12 15:35:04 -0800
commitd7a71b7181e13332e6f27e0d8d810b84d14a130c (patch)
tree64458352876ccb90b3b6662818642737c629035b /src
parent2776a496d4fa28f7d5039eb7f8d79c047a6e7d9f (diff)
swrast: fix readback regression since inversion fix
This readback from the frontbuffer with swrast was broken, that bug just made it more obviously broken, this fixes it by inverting the sub image gets. Also fixes a few other piglits. Fixes: Fixes: (for 9.2 the patches this depends on were asked to be backported separately in an email). Cc: "9.2" "10.0" Reviewed-by: Brian Paul <> Signed-off-by: Dave Airlie <> (cherry picked from commit 0b16042377a6981ff9bba92387889524a3547b3f)
Diffstat (limited to 'src')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c
index 73dc5c4c061..0e1c530b39d 100644
--- a/src/mesa/drivers/dri/swrast/swrast.c
+++ b/src/mesa/drivers/dri/swrast/swrast.c
@@ -402,7 +402,7 @@ swrast_map_renderbuffer(struct gl_context *ctx,
stride = w * cpp;
xrb->Base.Buffer = malloc(h * stride);
- sPriv->swrast_loader->getImage(dPriv, x, y, w, h,
+ sPriv->swrast_loader->getImage(dPriv, x, rb->Height - y - h, w, h,
(char *) xrb->Base.Buffer,