bufSize of glGetInternalformativ does not follow spec
authorPierre Tsai <chentsai@amd.com>
Thu, 2 Aug 2018 15:13:14 +0000 (11:13 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 23 Aug 2018 11:52:06 +0000 (07:52 -0400)
commitc4efd3e96b9536fe5890d628c81e0fe8b6af0bac
tree456712a720a7cacdbe2e7cd876e51fc60279e0d5
parent2372b7f745577a34af8ab5585c8ca3bf575b4a4a
bufSize of glGetInternalformativ does not follow spec

In the specification section 22.3 Internal Format Queries
(glspec46.core.pdf page 564), it is written:
No more than bufSize integers will be written into params.

The confusion may come from the man page where in one point it is said:
"No more than bufSize basic machine units will be written to this
memory." But the above description is still a number of integers.

Affects:

KHR-GL46.sparse_texture_tests.SparseDSATextureCommitment
KHR-GL46.sparse_texture_tests.SparseTextureAllocation
KHR-GL46.sparse_texture_tests.SparseTextureCommitment
KHR-GL46.sparse_texture_tests.TextureParameterQueries
KHR-GL46.sparse_texture_tests.InternalFormatQueries

Components: OpenGL

VK-GL-CTS issue: 1296

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