mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 23:50:11 +01:00
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:
parent
36f392c4ef
commit
bdbabc57e3
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue