i965: Use correct constant for max_variable_local_size
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 29 Apr 2020 04:05:05 +0000 (21:05 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Apr 2020 17:12:42 +0000 (17:12 +0000)
Fixes: 5664bd6db38 ("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>

src/mesa/drivers/dri/i965/brw_cs.c

index 5b4ff45..d01fd22 100644 (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;
    }