i965: Use correct constant for max_variable_local_size

Fixes: 5664bd6db3 ("i965: Implement ARB_compute_variable_group_size")
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4799>
This commit is contained in:
Caio Marcelo de Oliveira Filho 2020-04-28 21:05:05 -07:00 committed by Marge Bot
parent 91375f13ce
commit 882928dcaa
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}