[Mesa-dev] [PATCH v2 32/82] i965: Set MaxShaderStorageBuffers for compute shaders
Iago Toral Quiroga
itoral at igalia.com
Wed Jun 3 00:01:22 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 5d21747..dffb2d4 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