projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a0b418
)
ac: add support for handling nir_intrinsic_load_vertex_id
author
Timothy Arceri
<tarceri@itsqueeze.com>
Tue, 27 Feb 2018 01:47:00 +0000
(12:47 +1100)
committer
Timothy Arceri
<tarceri@itsqueeze.com>
Tue, 27 Feb 2018 22:23:49 +0000
(09:23 +1100)
This will be used by radeonsi.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_nir_to_llvm.c
patch
|
blob
|
history
diff --git
a/src/amd/common/ac_nir_to_llvm.c
b/src/amd/common/ac_nir_to_llvm.c
index 96bbecd110089f01998627b49bd0327b873b253c..253c440a3287263418bb880b64f7419bfd9f9cff 100644
(file)
--- 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;