From c717604dc4b5119fa9091241535c3efd1370438c Mon Sep 17 00:00:00 2001 From: Samuel Iglesias Gonsalvez Date: Thu, 14 May 2015 12:37:07 +0200 Subject: [PATCH] mesa: add MaxShaderStorageBlocks to struct gl_program_constants v2: - Set MaxShaderStorageBlocks to 8. Signed-off-by: Samuel Iglesias Gonsalvez Reviewed-by: Jordan Justen --- src/mesa/main/context.c | 2 ++ src/mesa/main/mtypes.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 5470c56bdea..f4dc4e3c4da 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -536,6 +536,8 @@ init_program_limits(struct gl_constants *consts, gl_shader_stage stage, prog->MaxAtomicBuffers = 0; prog->MaxAtomicCounters = 0; + + prog->MaxShaderStorageBlocks = 8; } diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index f1ab4eb0ab3..8a4ad766d05 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3306,6 +3306,9 @@ struct gl_program_constants /* GL_ARB_shader_image_load_store */ GLuint MaxImageUniforms; + + /* GL_ARB_shader_storage_buffer_object */ + GLuint MaxShaderStorageBlocks; }; -- 2.30.2