ac: add helper ac_build_triangle_strip_indices_to_triangle

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
This commit is contained in:
Marek Olšák
2020-01-09 19:12:36 -05:00
parent 8db00a51f8
commit 4e4b2d13f0
4 changed files with 47 additions and 37 deletions

View File

@@ -795,6 +795,10 @@ LLVMValueRef ac_prefix_bitcount(struct ac_llvm_context *ctx,
LLVMValueRef mask, LLVMValueRef index);
LLVMValueRef ac_prefix_bitcount_2x64(struct ac_llvm_context *ctx,
LLVMValueRef mask[2], LLVMValueRef index);
void ac_build_triangle_strip_indices_to_triangle(struct ac_llvm_context *ctx,
LLVMValueRef is_odd,
LLVMValueRef flatshade_first,
LLVMValueRef index[3]);
#ifdef __cplusplus
}