v2:
- Set it after the driver's MaxShaderStorageBuffers value assignment.
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
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;