diff options
author | Connor Abbott <[email protected]> | 2019-10-29 17:40:30 +0100 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2019-11-25 14:12:46 +0100 |
commit | 9885af3bdf42cb22baf83aa9598be763a5fc2825 (patch) | |
tree | 6c9ff304e4bf6e1fb67711d513bda74aa0180ef9 /src/amd/llvm/ac_shader_abi.h | |
parent | 43da33c1695132ee094aac80991852c4954bf758 (diff) |
ac: Add a shared interface between radv, radeonsi, LLVM and ACO
ac_shader_args will be similar to ac_shader_abi, except for being free
from LLVM-specific concepts and therefore capable of being shared
between LLVM and ACO. This will help us accomplish a few different
things:
- Decouple setting up SGPR and VGPR arguments from translating to LLVM,
so that we can reference these arguments in NIR lowering passes, which
will let us lower e.g. descriptor sets in NIR.
- Stop using radv-specific structures for things like determining the
chip generation in ACO.
In the end, we should replace ac_shader_abi with this structure +
driver-specific lowering passes.
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/llvm/ac_shader_abi.h')
-rw-r--r-- | src/amd/llvm/ac_shader_abi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/llvm/ac_shader_abi.h b/src/amd/llvm/ac_shader_abi.h index 61f1b735c49..01c321506ef 100644 --- a/src/amd/llvm/ac_shader_abi.h +++ b/src/amd/llvm/ac_shader_abi.h @@ -25,6 +25,7 @@ #define AC_SHADER_ABI_H #include <llvm-c/Core.h> +#include "ac_shader_args.h" #include "compiler/shader_enums.h" |