summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2020-04-28 21:05:05 -0700
committerMarge Bot <[email protected]>2020-04-29 17:12:42 +0000
commit882928dcaa2133fe07b73e7e962d50625c8e6a03 (patch)
tree9315b23cd284fc95185038ddd18fe23405ce0079 /src/mesa/drivers
parent91375f13ce05ab637aa6275dbb7bcb8a9c4cfdb9 (diff)
i965: Use correct constant for max_variable_local_size
Fixes: 5664bd6db38 ("i965: Implement ARB_compute_variable_group_size") Reviewed-by: Jordan Justen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4799>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cs.c b/src/mesa/drivers/dri/i965/brw_cs.c
index 5b4ff456a0d..d01fd22f27f 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;
}