Allow glReadPixels() differences due precision errors
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Tue, 19 Jun 2018 07:23:13 +0000 (07:23 +0000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 12 Jul 2018 07:15:22 +0000 (03:15 -0400)
commitd6246a2ca6627fac70907abbca44bdd609276078
tree18343b053238f3967e52fffe5b82b04733639006
parent06564d2a372272b9e4bbd10a507334f1ef3d832e
Allow glReadPixels() differences due precision errors

When comparing the results from glReadPixels() passing user-space memory
and using a PBO, there could be differences due drivers implementation
following different paths, and thus generating differences because of
precision errors.

Like in dEQP-GLES3.functional.read_pixels.* tests, add a threshold under
which the differences are acceptable.

Affects:
dEQP-GLES3.functional.pbo.*

Components: OpenGL

VK-GL-CTS issue: 1228

Change-Id: I7c9ac5de359cff8deba039b010357eae0da3eaaf
modules/gles3/functional/es3fPixelBufferObjectTests.cpp