diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 47203c1701b..9dcdaf5cd4f 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -591,6 +591,9 @@ brw_initialize_context_constants(struct brw_context *brw) ctx->Const.MaxCombinedShaderStorageBlocks = 12 * 3; ctx->Const.MaxShaderStorageBufferBindings = 36; + if (_mesa_extension_override_enables.ARB_compute_shader) + ctx->Const.MaxShaderStorageBufferBindings += 12; + if (brw->gen >= 6) { ctx->Const.MaxVarying = 32; ctx->Const.Program[MESA_SHADER_VERTEX].MaxOutputComponents = 128; |