Fix texPageCommitment alignment test
authorJeannot Breton <jbreton@nvidia.com>
Thu, 25 May 2017 00:10:18 +0000 (19:10 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 26 May 2017 17:51:00 +0000 (13:51 -0400)
commit1676da2d94f07959ab4c40142e7b03839efea3fe
treee7482983f82d50a2aca86783240e1fbf6975e419
parentf0c3172dee5b994f8214abf8d7dc8f0a547656fd
Fix texPageCommitment alignment test

In verifyInvalidValueErrors, the test wants to validate that
texPageCommitment returns a GL_INVALID_VALUE error when the page
depth offset is not a multiple of pageSizeZ.
However if pageSizeZ equals 1, any z offset will be a multiple of
pageSizeZ and the test should not return an error.

Logic is added to make sure there's really an alignment error

Affects:

KHR-GL45.sparse_texture_tests.*

Components: OpenGL

VK-GL-CTS issue: 438

Change-Id: If7a00dee071c1dafabbda608f7cdbb14d1eb56b3
external/openglcts/modules/gl/gl4cSparseTextureTests.cpp