From e8a445d8b53e0c7c692325215404d413da1d9e30 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 4 Jul 2019 11:33:22 +1000 Subject: [PATCH] gallivm: handle helper invocation (v2) Just invert the exec_mask to get if this is a helper or not. v2: get the bld mask (Roland) Reviewed-by: Roland Scheidegger --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index 7c747f38e7a..c51ab658f50 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -1724,6 +1724,11 @@ emit_fetch_system_value( atype = TGSI_TYPE_UNSIGNED; break; + case TGSI_SEMANTIC_HELPER_INVOCATION: + res = LLVMBuildNot(gallivm->builder, lp_build_mask_value(bld->mask), ""); + atype = TGSI_TYPE_UNSIGNED; + break; + default: assert(!"unexpected semantic in emit_fetch_system_value"); res = bld_base->base.zero; -- 2.30.2