aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_build.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2018-03-23 11:20:24 +0100
committerNicolai Hähnle <[email protected]>2018-04-20 09:23:52 +0200
commit625dcbbc45665459737c9d028f268fd6782472f3 (patch)
tree2350e1d94b1f6ab348d755867ec7b5c910b42305 /src/amd/common/ac_llvm_build.h
parentf931583828f0ca9a3b135da0f2cda6a36ebbc877 (diff)
amd/common: pass address components individually to ac_build_image_intrinsic
This is in preparation for the new image intrinsics. Acked-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_build.h')
-rw-r--r--src/amd/common/ac_llvm_build.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h
index 328eddc9a77..1691a809381 100644
--- a/src/amd/common/ac_llvm_build.h
+++ b/src/amd/common/ac_llvm_build.h
@@ -331,18 +331,18 @@ enum ac_image_dim {
struct ac_image_args {
enum ac_image_opcode opcode;
enum ac_image_dim dim;
- bool level_zero;
- bool bias;
- bool lod;
- bool deriv;
- bool compare;
- bool offset;
LLVMValueRef resource;
LLVMValueRef sampler;
- LLVMValueRef addr;
+ LLVMValueRef offset;
+ LLVMValueRef bias;
+ LLVMValueRef compare;
+ LLVMValueRef derivs[6];
+ LLVMValueRef coords[4];
+ LLVMValueRef lod; // also used by ac_image_get_resinfo
unsigned dmask;
bool unorm;
+ bool level_zero;
};
LLVMValueRef ac_build_image_opcode(struct ac_llvm_context *ctx,