aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_nir.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-12-11 13:02:34 +1000
committerDave Airlie <[email protected]>2019-12-12 10:16:19 +1000
commit73f5e2d7ef7783027a5ecd71d1ada12eeaa21a10 (patch)
tree50c82ce5d5ffef113d64e98376581454ce978c50 /src/gallium/auxiliary/gallivm/lp_bld_nir.c
parent22a40dd1c1efe861b57a3ae43fa13481bea627fc (diff)
gallivm/draw: add support for draw_id system value.
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_nir.c')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
index 547161ba7fe..e5fe9eec6eb 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
@@ -1167,6 +1167,7 @@ static void visit_intrinsic(struct lp_build_nir_context *bld_base,
case nir_intrinsic_load_num_work_groups:
case nir_intrinsic_load_invocation_id:
case nir_intrinsic_load_front_face:
+ case nir_intrinsic_load_draw_id:
bld_base->sysval_intrin(bld_base, instr, result);
break;
case nir_intrinsic_discard_if: