aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_extensions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index ba0e89c700c..8efd281eaad 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -468,7 +468,8 @@ void st_init_limits(struct pipe_screen *screen,
c->MaxCombinedAtomicBuffers;
c->MaxCombinedShaderOutputResources +=
c->MaxCombinedShaderStorageBlocks;
- c->MaxShaderStorageBlockSize = 1 << 27;
+ c->MaxShaderStorageBlockSize =
+ screen->get_param(screen, PIPE_CAP_MAX_SHADER_BUFFER_SIZE);
extensions->ARB_shader_storage_buffer_object = GL_TRUE;
}