[Mesa-dev] [PATCH v3 (part2) 03/56] i965: Set MaxShaderStorageBuffers for compute shaders
Iago Toral Quiroga
itoral at igalia.com
Tue Jul 14 00:46:05 PDT 2015
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
---
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 d92d7c2..8a0ffbe 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -338,6 +338,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