OSDN Git Service

st/readpixels: fix accel path for skipimages.
authorDave Airlie <airlied@redhat.com>
Tue, 1 Sep 2015 05:13:45 +0000 (15:13 +1000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 6 Sep 2015 17:53:38 +0000 (18:53 +0100)
commitbb378249594f860b97d91d51956c019b2d111a05
treef27131d0de901c9caa1c9dd35cf85c66d2aa88c9
parent8fc2cbb00e08986b5962e6cbb13c3155a17b9f05
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>
(cherry picked from commit 6a3e1fb958778e00e8fe2d860b6327fc4409c148)
src/mesa/state_tracker/st_cb_readpixels.c