diff options
author | Iago Toral Quiroga <[email protected]> | 2015-03-19 12:11:39 +0100 |
---|---|---|
committer | Samuel Iglesias Gonsalvez <[email protected]> | 2015-09-25 08:39:20 +0200 |
commit | bdbabc57e302b73e2db30f6d46918afb2b442c7b (patch) | |
tree | 1d9ca1ce2b75345ea63c8772b5a934d7a8a06404 | |
parent | 36f392c4ef5fd8793127132f9b4465249e92c9ce (diff) |
i965: Set MaxShaderStorageBuffers for compute shaders
v2:
- Set it after the driver's MaxShaderStorageBuffers value assignment.
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
-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; |