diff options
author | Timothy Arceri <[email protected]> | 2018-02-27 12:47:00 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-02-28 09:23:49 +1100 |
commit | 5504bebfc419f93b54ca92f36d27c2f8b82bc552 (patch) | |
tree | 15660402219a556910e438c15785e9d85d39c900 /src | |
parent | 3a0b4187ddeadc1fbeb0774540caa36a3a68974a (diff) |
ac: add support for handling nir_intrinsic_load_vertex_id
This will be used by radeonsi.
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 96bbecd1100..253c440a328 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -4395,6 +4395,10 @@ static void visit_intrinsic(struct ac_nir_context *ctx, case nir_intrinsic_load_local_group_size: result = ctx->abi->load_local_group_size(ctx->abi); break; + case nir_intrinsic_load_vertex_id: + result = LLVMBuildAdd(ctx->ac.builder, ctx->abi->vertex_id, + ctx->abi->base_vertex, ""); + break; case nir_intrinsic_load_vertex_id_zero_base: { result = ctx->abi->vertex_id; break; |