[Mesa-dev] [PATCH 09/74] mesa: add MaxShaderStorageBlocks to struct gl_program_constants

Iago Toral Quiroga itoral at igalia.com
Thu May 14 07:06:12 PDT 2015


From: Samuel Iglesias Gonsalvez <siglesias at igalia.com>

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
---
 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 d7b0e4f..e68f978 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -554,6 +554,8 @@ init_program_limits(struct gl_constants *consts, gl_shader_stage stage,
 
    prog->MaxAtomicBuffers = 0;
    prog->MaxAtomicCounters = 0;
+
+   prog->MaxShaderStorageBlocks = 12;
 }
 
 
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 3738ed2..ae59236 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -3281,6 +3281,9 @@ struct gl_program_constants
 
    /* GL_ARB_shader_image_load_store */
    GLuint MaxImageUniforms;
+
+   /* GL_ARB_shader_storage_buffer_object */
+   GLuint MaxShaderStorageBlocks;
 };
 
 
-- 
1.9.1



More information about the mesa-dev mailing list