From: Samuel Pitoiset Date: Sat, 13 Feb 2016 21:49:37 +0000 (+0100) Subject: i965: fix MAX_COMPUTE_SHARED_SIZE constant value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40fcb6b9f95050370af0fef11abd12e16b8cc7d0;p=mesa.git i965: fix MAX_COMPUTE_SHARED_SIZE constant value MAX_COMPUTE_SHARED_SIZE should be set to 32768. This fixes a regression introduced in be27f77 (mesa: do not use a constant for MAX_COMPUTE_SHARED_SIZE). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94139 Signed-off-by: Samuel Pitoiset Reviewed-by: Jordan Justen Reviewed-by: Ilia Mirkin Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index a5f7a2e8b8a..972b62e2ea0 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -710,6 +710,7 @@ brw_initialize_cs_context_constants(struct brw_context *brw, unsigned max_thread ctx->Const.MaxComputeWorkGroupSize[1] = max_invocations; ctx->Const.MaxComputeWorkGroupSize[2] = max_invocations; ctx->Const.MaxComputeWorkGroupInvocations = max_invocations; + ctx->Const.MaxComputeSharedMemorySize = 32768; } /**