mesa: add MaxShaderStorageBlocks to struct gl_program_constants

v2:
- Set MaxShaderStorageBlocks to 8.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Samuel Iglesias Gonsalvez 2015-05-14 12:37:07 +02:00
parent cd50906e03
commit c717604dc4
2 changed files with 5 additions and 0 deletions

View file

@ -536,6 +536,8 @@ init_program_limits(struct gl_constants *consts, gl_shader_stage stage,
prog->MaxAtomicBuffers = 0; prog->MaxAtomicBuffers = 0;
prog->MaxAtomicCounters = 0; prog->MaxAtomicCounters = 0;
prog->MaxShaderStorageBlocks = 8;
} }

View file

@ -3306,6 +3306,9 @@ struct gl_program_constants
/* GL_ARB_shader_image_load_store */ /* GL_ARB_shader_image_load_store */
GLuint MaxImageUniforms; GLuint MaxImageUniforms;
/* GL_ARB_shader_storage_buffer_object */
GLuint MaxShaderStorageBlocks;
}; };