summaryrefslogtreecommitdiff
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorIcecream95 <ixn@disroot.org>2020-12-29 00:47:54 +1300
committerMarge Bot <eric+marge@anholt.net>2021-01-18 20:49:45 +0000
commit24867386eef385a65d6452889db678f1ffa8879e (patch)
tree555c8baf23a940083249b19e0e6a46554bdc0078 /src/panfrost/midgard
parentf5a35918db04dfe051e903a89323d9d8ba47c78a (diff)
panfrost: Add a sysval for local_work_dim
Fixes Piglit test get-work-dim.cl. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8358>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index 46eadd53c86..64123ea5311 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -1798,6 +1798,7 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr)
break;
case nir_intrinsic_load_ssbo_address:
+ case nir_intrinsic_load_work_dim:
emit_sysval_read(ctx, &instr->instr, 1, 0);
break;