summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandra Koroniewska <sandra.koroniewska@gmail.com>2017-06-22 14:17:47 +0200
committerIan Romanick <ian.d.romanick@intel.com>2017-06-28 14:16:52 -0700
commit318f68aab2e6438161ee04979fc7a097efbdf63c (patch)
tree138c53bd0460ad27d55efc1fb09cfbc0bf354274
parent62fc15a37a450df23249b4469adaef9c63ceed4a (diff)
pbo: Don't assume that GL_MAX_PIXEL_MAP_TABLE is 256
Previously the expected result for glGetPixelMap was based on an implicit assumption that GL_MAX_PIXEL_MAP_TABLE was 256. While this is true for drivers based on Mesa, it is not true on the Intel Windows driver which advertises 65536. The GL spec only requires GL_MAX_PIXEL_MAP_TABLE >= 32. This fixes tests/spec/gl-2.1/pbo on Intel Windows driver. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r--tests/spec/gl-2.1/pbo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/spec/gl-2.1/pbo.c b/tests/spec/gl-2.1/pbo.c
index bb4c0352c..5020eeb07 100644
--- a/tests/spec/gl-2.1/pbo.c
+++ b/tests/spec/gl-2.1/pbo.c
@@ -353,7 +353,7 @@ test_pixel_map(void)
}
for (i = 0; i < max; i++) {
- if (pbo_mem[i] != (255 - i)) {
+ if (pbo_mem[i] != max - i - 1) {
REPORT_FAILURE("get PixelMap failed");
return PIGLIT_FAIL;
}