[Piglit] [PATCH v3 0/4] Make a couple of tests endian-safe
oded.gabbay at gmail.com
Thu Mar 31 20:09:50 UTC 2016
This small patch-set fix the same endian issue in four different tests.
The issue is that in order to be endian-safe when working with GL_UNSIGNED_BYTE,
we need to compare results of individual bytes and not 32-bit values.
In addition, we need to construct the expected results as an array-of-bytes
and not a single 32-bit value.
This fixes the four tests in llvmpipe, softpipe and r600g on a POWER7
v2: I changed the initialization of the expected results to be more clear
v3: I changed the printing of the results to display individual components
Oded Gabbay (4):
pbo-read-argb8888: make it endian-safe
fbo-pbo-readpixels-small: make it endian-safe
pbo-readpixels-small: make it endian-safe
GL_MESA_pack_invert: make it endian-safe
tests/fbo/fbo-pbo-readpixels-small.c | 29 ++++++++++++++---------
tests/general/pbo-read-argb8888.c | 20 ++++++++++------
tests/general/pbo-readpixels-small.c | 29 ++++++++++++++---------
tests/spec/mesa_pack_invert/readpixels.c | 40 +++++++++++++++++++-------------
4 files changed, 73 insertions(+), 45 deletions(-)
More information about the Piglit