mesa: update MaxShaderStorageBlockSize to 2^27
authorTapani Pälli <tapani.palli@intel.com>
Wed, 12 Aug 2015 08:13:40 +0000 (11:13 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 13 Aug 2015 09:55:29 +0000 (12:55 +0300)
Extension spec originally required 2^24 but 2^27 is the minimum value
required by OpenGL 4.5 and OpenGL ES 3.1 specifications.

Fixes:
   ES31-CTS.shader_storage_buffer_object.basic-max

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/main/context.c

index 7451e5a2bdd45e05f3a13d2f86b602648cfd2bd0..888c461d1c21321275ae794fa2e95e7f0242a8da 100644 (file)
@@ -604,7 +604,7 @@ _mesa_init_constants(struct gl_constants *consts, gl_api api)
    /** GL_ARB_shader_storage_buffer_object */
    consts->MaxCombinedShaderStorageBlocks = 8;
    consts->MaxShaderStorageBufferBindings = 8;
-   consts->MaxShaderStorageBlockSize = 16 * 1024 * 1024;
+   consts->MaxShaderStorageBlockSize = 128 * 1024 * 1024; /* 2^27 */
    consts->ShaderStorageBufferOffsetAlignment = 256;
 
    /* GL_ARB_explicit_uniform_location, GL_MAX_UNIFORM_LOCATIONS */