[Mesa-dev] [PATCH 31/74] i965: Set MaxShaderStorageBuffers for compute shaders

Iago Toral Quiroga itoral at igalia.com
Thu May 14 07:06:34 PDT 2015


---
 src/mesa/drivers/dri/i965/brw_context.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 6b2af70..a47012a 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -339,6 +339,7 @@ brw_initialize_context_constants(struct brw_context *brw)
    if (_mesa_extension_override_enables.ARB_compute_shader) {
       ctx->Const.Program[MESA_SHADER_COMPUTE].MaxTextureImageUnits = BRW_MAX_TEX_UNIT;
       ctx->Const.MaxUniformBufferBindings += 12;
+      ctx->Const.MaxShaderStorageBufferBindings += 12;
    } else {
       ctx->Const.Program[MESA_SHADER_COMPUTE].MaxTextureImageUnits = 0;
    }
-- 
1.9.1



More information about the mesa-dev mailing list