mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
radeonsi: implement nir_intrinsic_load_provoking_vtx_in_prim_amd
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17109>
This commit is contained in:
parent
3c1ebebeae
commit
6cbb6e6397
1 changed files with 3 additions and 0 deletions
|
|
@ -900,6 +900,9 @@ static LLVMValueRef si_llvm_load_intrinsic(struct ac_shader_abi *abi, nir_intrin
|
|||
else
|
||||
return ctx->ac.i1true;
|
||||
|
||||
case nir_intrinsic_load_provoking_vtx_in_prim_amd:
|
||||
return GET_FIELD(ctx, GS_STATE_PROVOKING_VTX_INDEX);
|
||||
|
||||
case nir_intrinsic_load_pipeline_stat_query_enabled_amd: {
|
||||
LLVMValueRef enabled = GET_FIELD(ctx, GS_STATE_PIPELINE_STATS_EMU);
|
||||
return LLVMBuildTrunc(ctx->ac.builder, enabled, ctx->ac.i1, "");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue