mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-12-04 22:07:49 +00:00
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:
parent
64cee33984
commit
60a8d68285
@ -1562,6 +1562,11 @@ emit_fetch_system_value(
|
|||||||
atype = TGSI_TYPE_UNSIGNED;
|
atype = TGSI_TYPE_UNSIGNED;
|
||||||
break;
|
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:
|
case TGSI_SEMANTIC_TESSOUTER:
|
||||||
res = lp_build_extract_broadcast(gallivm, lp_type_float_vec(32, 128), bld_base->base.type,
|
res = lp_build_extract_broadcast(gallivm, lp_type_float_vec(32, 128), bld_base->base.type,
|
||||||
bld->system_values.tess_outer,
|
bld->system_values.tess_outer,
|
||||||
|
Loading…
Reference in New Issue
Block a user