OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 6 Sep 2015 17:55:03 +0000 (18:55 +0100)
commit5c08afc894a66fa51eb8531a93d4e9f8b7b74edd
tree0707e693d0b3361195329d6f3e2fb6b8d4d17061
parent5fb758a418e64e1967785bca964c57e81034a884
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>
(cherry picked from commit 32769ac016dee4ce5767a922f91de47df4ce984d)
src/mesa/main/readpix.c