[Piglit] [PATCH 0/4] Make a couple of tests endian-safe

Oded Gabbay oded.gabbay at gmail.com
Mon Mar 28 13:25:11 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 
big-endian machine.



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     | 33 ++++++++++++++++++++++----------
 tests/general/pbo-read-argb8888.c        | 24 +++++++++++++++++------
 tests/general/pbo-readpixels-small.c     | 33 ++++++++++++++++++++++----------
 tests/spec/mesa_pack_invert/readpixels.c | 12 ++++++------
 4 files changed, 70 insertions(+), 32 deletions(-)


More information about the Piglit mailing list