summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>2015-05-14 12:37:07 +0200
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>2015-07-14 07:04:04 +0200
commitc717604dc4b5119fa9091241535c3efd1370438c (patch)
tree9752febd5f61f7812ea8759cd6e382085408845b /src
parentcd50906e0334d7ad0102e5733a152d55d672776b (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/context.c2
-rw-r--r--src/mesa/main/mtypes.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 5470c56bde..f4dc4e3c4d 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 f1ab4eb0ab..8a4ad766d0 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;
};