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: https://bugs.freedesktop.org/show_bug.cgi?id=72327 Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=72325 (for 9.2 the patches this depends on were asked to be backported separately in an email). Cc: "9.2" "10.0" mesa-stable@lists.fedoraproject.org Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
4859d492b2
commit
0b16042377
|
@ -402,7 +402,7 @@ swrast_map_renderbuffer(struct gl_context *ctx,
|
||||||
stride = w * cpp;
|
stride = w * cpp;
|
||||||
xrb->Base.Buffer = malloc(h * stride);
|
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,
|
(char *) xrb->Base.Buffer,
|
||||||
dPriv->loaderPrivate);
|
dPriv->loaderPrivate);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue