diff options
author | Timur Kristóf <[email protected]> | 2019-09-25 14:10:18 +0200 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2019-09-26 13:36:49 +0000 |
commit | db1fddcf0fa91a71282b439fe0406d26585eab9f (patch) | |
tree | b53c5007f8c93d8585d890092c0a2f74ae43cd65 /src/amd/common/ac_llvm_build.h | |
parent | d8b46f8964782b6f1fafb574447f1605e40e394f (diff) |
amd/common: Extract some helper functions to ac_shader_util.
This commit moves ac_get_tbuffer_format, ac_get_sampler_dim and
ac_get_image_dim into ac_shader_util, thus enabling them to be used
by compilers other than LLVM.
Signed-off-by: Timur Kristóf <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-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 | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h index 676c1ee2758..8d85ae62fc7 100644 --- a/src/amd/common/ac_llvm_build.h +++ b/src/amd/common/ac_llvm_build.h @@ -29,6 +29,7 @@ #include <llvm-c/Core.h> #include "compiler/nir/nir.h" #include "amd_family.h" +#include "ac_shader_util.h" #ifdef __cplusplus extern "C" { @@ -521,17 +522,6 @@ enum ac_atomic_op { ac_atomic_dec_wrap, }; -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, -}; - /* These cache policy bits match the definitions used by the LLVM intrinsics. */ enum ac_image_cache_policy { ac_glc = 1 << 0, /* per-CU cache control */ |