Fixes wrong MIN_MAP_BUFFER_ALIGNMENT limit
authorRahul Jain <Rahul.Jain@amd.com>
Tue, 8 May 2018 11:16:49 +0000 (16:46 +0530)
committerRahul Jain <Rahul.Jain@amd.com>
Tue, 8 May 2018 11:47:05 +0000 (17:17 +0530)
As per GL spec 4.6 P:632, Table 23.55,
It is given that MIN_MAP_BUFFER_ALIGNMENT should be aleast 64 or higher
Currently CTS test is limiting to 64 as maximum.

Affects:

KHR-GL46.limits.min_map_buffer_alignment
KHR-GL46.map_buffer_alignment.query
KHR-GL46.map_buffer_alignment.functional

Components: OpenGL

VK-GL-CTS issue: 1158

Change-Id: I6e4feea6e91bbf0e030b0dfcdbc49c716ffd8145

external/openglcts/modules/gl/gl4cLimitsTests.cpp

index 49e11af..471fd1c 100644 (file)
@@ -90,7 +90,7 @@ void LimitsTests::init(void)
                { "max_vertex_attrib_stride",                                            GL_MAX_VERTEX_ATTRIB_STRIDE,                                            2048,  0, "" },
                { "max_texture_buffer_size",                                             GL_MAX_TEXTURE_BUFFER_SIZE,                                             65536, 0, "" },
                { "max_rectangle_texture_size",                                          GL_MAX_RECTANGLE_TEXTURE_SIZE,                                          16384, 0, "" },
-               { "min_map_buffer_alignment",                                            GL_MIN_MAP_BUFFER_ALIGNMENT,                                            64,    1, "" },
+               { "min_map_buffer_alignment",                                            GL_MIN_MAP_BUFFER_ALIGNMENT,                                            64,    0, "" },
                { "max_vertex_attribs",                                                          GL_MAX_VERTEX_ATTRIBS,                                                          16,    0, "gl_MaxVertexAttribs" },
                { "max_vertex_uniform_components",                                       GL_MAX_VERTEX_UNIFORM_COMPONENTS,                                       1024,  0, "gl_MaxVertexUniformComponents" },
                { "max_vertex_uniform_vectors",                                          GL_MAX_VERTEX_UNIFORM_VECTORS,                                          256,   0, "gl_MaxVertexUniformVectors" },