aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-08-06 08:38:54 -0400
committerMarek Olšák <[email protected]>2018-08-23 16:56:17 -0400
commitd3c1b212bc72494bdcca617115cda4e0b55d2dbe (patch)
treea08995d9d32f4c91a2786c344a538d26798d06a4 /src/mesa
parentf6ccd594e73d5bebc0b3e4ee6cb2f7eea228058f (diff)
gallium: add PIPE_CAP_MAX_SHADER_BUFFER_SIZE
Tested-by: Dieter Nützel <[email protected]>
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;
}