summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-02-27 11:17:12 +1100
committerTimothy Arceri <[email protected]>2017-02-28 13:20:31 +1100
commitf0aaa4b3a42d9fd250e1b9d9c53f40b0ea0855ac (patch)
tree701ac3386b95dff9aab22de43a4a2959d61f41ab /src/amd
parentdc4c551a345dc399e589382cd859812ea0d5bbae (diff)
radeon/ac: make ac_shader_binary_config_start() available externally
The read config functions are different for r600 and radeonsi so we can't just share the one in amd common. So just share this instead. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/common/ac_binary.c1
-rw-r--r--src/amd/common/ac_binary.h8
2 files changed, 8 insertions, 1 deletions
diff --git a/src/amd/common/ac_binary.c b/src/amd/common/ac_binary.c
index 9c66a821c21..618b5cf8b86 100644
--- a/src/amd/common/ac_binary.c
+++ b/src/amd/common/ac_binary.c
@@ -188,7 +188,6 @@ void ac_elf_read(const char *elf_data, unsigned elf_size,
}
}
-static
const unsigned char *ac_shader_binary_config_start(
const struct ac_shader_binary *binary,
uint64_t symbol_offset)
diff --git a/src/amd/common/ac_binary.h b/src/amd/common/ac_binary.h
index df945b2c720..0ece9297253 100644
--- a/src/amd/common/ac_binary.h
+++ b/src/amd/common/ac_binary.h
@@ -85,6 +85,14 @@ struct ac_shader_config {
void ac_elf_read(const char *elf_data, unsigned elf_size,
struct ac_shader_binary *binary);
+/**
+ * @returns A pointer to the start of the configuration information for
+ * the function starting at \p symbol_offset of the binary.
+ */
+const unsigned char *ac_shader_binary_config_start(
+ const struct ac_shader_binary *binary,
+ uint64_t symbol_offset);
+
void ac_shader_binary_read_config(struct ac_shader_binary *binary,
struct ac_shader_config *conf,
unsigned symbol_offset,