From: Caio Marcelo de Oliveira Filho Date: Wed, 29 Apr 2020 04:05:05 +0000 (-0700) Subject: i965: Use correct constant for max_variable_local_size X-Git-Tag: upstream/20.1.8~518 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=882928dcaa2133fe07b73e7e962d50625c8e6a03;p=platform%2Fupstream%2Fmesa.git i965: Use correct constant for max_variable_local_size Fixes: 5664bd6db38 ("i965: Implement ARB_compute_variable_group_size") Reviewed-by: Jordan Justen Part-of: --- diff --git a/src/mesa/drivers/dri/i965/brw_cs.c b/src/mesa/drivers/dri/i965/brw_cs.c index 5b4ff45..d01fd22 100644 --- a/src/mesa/drivers/dri/i965/brw_cs.c +++ b/src/mesa/drivers/dri/i965/brw_cs.c @@ -116,7 +116,7 @@ brw_codegen_cs_prog(struct brw_context *brw, if (nir->info.cs.local_size_variable) { prog_data.uses_variable_group_size = true; nir->info.cs.max_variable_local_size = - gl_ctx->Const.MaxComputeWorkGroupSize[2]; + gl_ctx->Const.MaxComputeVariableGroupInvocations; } else { prog_data.uses_variable_group_size = false; }