gallivm: handle TGSI SampleId sysval

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13679>
This commit is contained in:
Mike Blumenkrantz 2021-11-04 12:58:13 -04:00 committed by Marge Bot
parent 64cee33984
commit 60a8d68285
1 changed files with 5 additions and 0 deletions

View File

@ -1562,6 +1562,11 @@ emit_fetch_system_value(
atype = TGSI_TYPE_UNSIGNED;
break;
case TGSI_SEMANTIC_SAMPLEID:
res = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.sample_id);
atype = TGSI_TYPE_UNSIGNED;
break;
case TGSI_SEMANTIC_TESSOUTER:
res = lp_build_extract_broadcast(gallivm, lp_type_float_vec(32, 128), bld_base->base.type,
bld->system_values.tess_outer,