summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/radeon_elf_util.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-09-29 09:36:42 -0700
committerTom Stellard <thomas.stellard@amd.com>2014-10-31 15:24:00 -0400
commite91735a641b71bc2bccabd0c779a626fa412b314 (patch)
treeba3fb7401fd8922cbc5f5ee1739b437f7b6dc154 /src/gallium/drivers/radeon/radeon_elf_util.h
parentf058c6bbd1674bbbe1e1ef5f6f14b95307ec6312 (diff)
downloadexternal_mesa3d-e91735a641b71bc2bccabd0c779a626fa412b314.zip
external_mesa3d-e91735a641b71bc2bccabd0c779a626fa412b314.tar.gz
external_mesa3d-e91735a641b71bc2bccabd0c779a626fa412b314.tar.bz2
gallium/radeon: Add query for symbol specific config information
This adds a query which allows drivers to access the config information of a specific function within the LLVM generated ELF binary. This makes it possible for the driver to handle ELF binaries with multiple kernels / global functions.
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_elf_util.h')
-rw-r--r--src/gallium/drivers/radeon/radeon_elf_util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_elf_util.h b/src/gallium/drivers/radeon/radeon_elf_util.h
index 60dae42..8095e2f 100644
--- a/src/gallium/drivers/radeon/radeon_elf_util.h
+++ b/src/gallium/drivers/radeon/radeon_elf_util.h
@@ -27,6 +27,8 @@
#ifndef RADEON_ELF_UTIL_H
#define RADEON_ELF_UTIL_H
+#include <stdint.h>
+
struct radeon_shader_binary;
/*
@@ -36,4 +38,12 @@ struct radeon_shader_binary;
void radeon_elf_read(const char *elf_data, unsigned elf_size,
struct radeon_shader_binary *binary, unsigned debug);
+/**
+ * @returns A pointer to the start of the configuration information for
+ * the function starting at \p symbol_offset of the binary.
+ */
+const unsigned char *radeon_shader_binary_config_start(
+ const struct radeon_shader_binary *binary,
+ uint64_t symbol_offset);
+
#endif /* RADEON_ELF_UTIL_H */