mesa/readpixels: check strides are equal before skipping conversion
authorDave Airlie <airlied@redhat.com>
Tue, 1 Sep 2015 05:57:02 +0000 (15:57 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 1 Sep 2015 23:34:21 +0000 (09:34 +1000)
commit32769ac016dee4ce5767a922f91de47df4ce984d
tree39f53a879c4c00112ff85adf61a4216694720307
parentb4a70401f52e5d7e08c94715b250ea1de8f63d15
mesa/readpixels: check strides are equal before skipping conversion

The CTS packed_pixels test checks that readpixels doesn't write
into the space between rows, however we fail that here unless
we check the format and stride match.

This fixes all the core mesa problems with CTS packed_pixels
tests.

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/main/readpix.c