st/readpixels: fix accel path for skipimages.
authorDave Airlie <airlied@redhat.com>
Tue, 1 Sep 2015 05:13:45 +0000 (15:13 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 1 Sep 2015 23:30:48 +0000 (09:30 +1000)
commit6a3e1fb958778e00e8fe2d860b6327fc4409c148
tree1f599805c2262b5a27d5481d8f5758101ebb36a6
parentc3c242070e868225a81e1afe5fb424c33eb94c2f
st/readpixels: fix accel path for skipimages.

We don't need to use the 3d image address here as that will
include SKIP_IMAGES, and we are only blitting a single
2D anyways, so just use the 2D path.

This fixes some memory overruns under CTS
 packed_pixels.packed_pixels_pixelstore when PACK_SKIP_IMAGES
is used.

Cc: "11.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_cb_readpixels.c