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 <sroland@vmware.com>
This commit is contained in:
Dave Airlie 2019-07-04 11:33:22 +10:00
parent fb34369eb5
commit e8a445d8b5

View file

@ -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;