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 5b4ff456a0dc92d98b94853d3c271249d06abcd2..d01fd22f27fbadb889652e41d7e33633b891fd77 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;
    }