i965: Set MaxShaderStorageBuffers for compute shaders

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>
This commit is contained in:
Iago Toral Quiroga 2015-03-19 12:11:39 +01:00 committed by Samuel Iglesias Gonsalvez
parent 36f392c4ef
commit bdbabc57e3

View file

@ -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;