diff options
author | Nicolai Hähnle <[email protected]> | 2018-02-16 14:21:56 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2018-04-20 09:23:40 +0200 |
commit | f931583828f0ca9a3b135da0f2cda6a36ebbc877 (patch) | |
tree | 58c3637389e3708db99acaa2819976e582223a68 /src/amd/common/ac_llvm_build.h | |
parent | 9cb52d470a0db8b733bb344168308a6e7766626d (diff) |
amd/common: pass new enum ac_image_dim to ac_build_image_opcode
This is in preparation for the new, dimension-aware LLVM 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.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h index c583240e14b..328eddc9a77 100644 --- a/src/amd/common/ac_llvm_build.h +++ b/src/amd/common/ac_llvm_build.h @@ -317,8 +317,20 @@ enum ac_image_opcode { ac_image_get_resinfo, }; +enum ac_image_dim { + ac_image_1d, + ac_image_2d, + ac_image_3d, + ac_image_cube, // includes cube arrays + ac_image_1darray, + ac_image_2darray, + ac_image_2dmsaa, + ac_image_2darraymsaa, +}; + struct ac_image_args { enum ac_image_opcode opcode; + enum ac_image_dim dim; bool level_zero; bool bias; bool lod; @@ -331,7 +343,6 @@ struct ac_image_args { LLVMValueRef addr; unsigned dmask; bool unorm; - bool da; }; LLVMValueRef ac_build_image_opcode(struct ac_llvm_context *ctx, |