From: Iago Toral Quiroga Date: Thu, 19 Mar 2015 11:11:39 +0000 (+0100) Subject: i965: Set MaxShaderStorageBuffers for compute shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdbabc57e302b73e2db30f6d46918afb2b442c7b;p=mesa.git i965: Set MaxShaderStorageBuffers for compute shaders v2: - Set it after the driver's MaxShaderStorageBuffers value assignment. Reviewed-by: Jordan Justen Reviewed-by: Kristian Høgsberg --- 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;