mesa: add MaxShaderStorageBlocks to struct gl_program_constants
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Thu, 14 May 2015 10:37:07 +0000 (12:37 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Tue, 14 Jul 2015 05:04:04 +0000 (07:04 +0200)
v2:
- Set MaxShaderStorageBlocks to 8.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/main/context.c
src/mesa/main/mtypes.h

index 5470c56bdea2c98e18e06aa6921bd3639b205b28..f4dc4e3c4daace91a3e6302bb676b4501113b99d 100644 (file)
@@ -536,6 +536,8 @@ init_program_limits(struct gl_constants *consts, gl_shader_stage stage,
 
    prog->MaxAtomicBuffers = 0;
    prog->MaxAtomicCounters = 0;
+
+   prog->MaxShaderStorageBlocks = 8;
 }
 
 
index f1ab4eb0ab3e3e79f75631c9653bf6ac8bbd4d56..8a4ad766d058168e5610e82e717e0a6677d2ff3e 100644 (file)
@@ -3306,6 +3306,9 @@ struct gl_program_constants
 
    /* GL_ARB_shader_image_load_store */
    GLuint MaxImageUniforms;
+
+   /* GL_ARB_shader_storage_buffer_object */
+   GLuint MaxShaderStorageBlocks;
 };