diff options
author | Dave Airlie <[email protected]> | 2017-02-01 14:47:45 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-02-02 08:24:53 +1000 |
commit | dc68b920dfd1adf2616dda99da730e6412fe2e6e (patch) | |
tree | dd7642d0424b23c7b983083679560e17b307356b /src/amd/common/ac_llvm_util.h | |
parent | b940b2fd163f39576ddee23cee7fa60aa94f98fd (diff) |
radeonsi/ac: move frag interp emission code to shared llvm code.
This code should be used in radv, so move it to a shared location
in advance of doing that.
Reviewed-by: Nicolai Hähnle <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_util.h')
-rw-r--r-- | src/amd/common/ac_llvm_util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_util.h b/src/amd/common/ac_llvm_util.h index c07f67ab8b1..2a33765c829 100644 --- a/src/amd/common/ac_llvm_util.h +++ b/src/amd/common/ac_llvm_util.h @@ -98,6 +98,20 @@ ac_prepare_cube_coords(struct ac_llvm_context *ctx, void ac_dump_module(LLVMModuleRef module); +LLVMValueRef +ac_build_fs_interp(struct ac_llvm_context *ctx, + LLVMValueRef llvm_chan, + LLVMValueRef attr_number, + LLVMValueRef params, + LLVMValueRef i, + LLVMValueRef j); + +LLVMValueRef +ac_build_fs_interp_mov(struct ac_llvm_context *ctx, + LLVMValueRef parameter, + LLVMValueRef llvm_chan, + LLVMValueRef attr_number, + LLVMValueRef params); #ifdef __cplusplus } #endif |