aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_shader_abi.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-02-09 13:54:23 +0100
committerSamuel Pitoiset <[email protected]>2018-02-12 11:54:13 +0100
commited179fbdf37192cba5f3ff1c335d8ac09323ea81 (patch)
tree9b5fa355d1275685d5957db0e45d2ae1efb628f0 /src/amd/common/ac_shader_abi.h
parentecf229706ff666332b253b09f5b0808b5cd5f591 (diff)
ac: add load_resource() to the ABI
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common/ac_shader_abi.h')
-rw-r--r--src/amd/common/ac_shader_abi.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/amd/common/ac_shader_abi.h b/src/amd/common/ac_shader_abi.h
index c5f7fcd2f87..c89987c35f8 100644
--- a/src/amd/common/ac_shader_abi.h
+++ b/src/amd/common/ac_shader_abi.h
@@ -156,6 +156,18 @@ struct ac_shader_abi {
enum ac_descriptor_type desc_type,
bool image, bool write);
+ /**
+ * Load a Vulkan-specific resource.
+ *
+ * \param index resource index
+ * \param desc_set descriptor set
+ * \param binding descriptor set binding
+ */
+ LLVMValueRef (*load_resource)(struct ac_shader_abi *abi,
+ LLVMValueRef index,
+ unsigned desc_set,
+ unsigned binding);
+
LLVMValueRef (*lookup_interp_param)(struct ac_shader_abi *abi,
enum glsl_interp_mode interp,
unsigned location);