aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/r600_pipe_common.h
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2014-09-29 09:36:42 -0700
committerTom Stellard <[email protected]>2014-10-31 15:24:00 -0400
commite91735a641b71bc2bccabd0c779a626fa412b314 (patch)
treeba3fb7401fd8922cbc5f5ee1739b437f7b6dc154 /src/gallium/drivers/radeon/r600_pipe_common.h
parentf058c6bbd1674bbbe1e1ef5f6f14b95307ec6312 (diff)
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/r600_pipe_common.h')
-rw-r--r--src/gallium/drivers/radeon/r600_pipe_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h b/src/gallium/drivers/radeon/r600_pipe_common.h
index dfd8fffa59f..a699f45f421 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.h
+++ b/src/gallium/drivers/radeon/r600_pipe_common.h
@@ -120,11 +120,19 @@ struct radeon_shader_binary {
unsigned char *config;
unsigned config_size;
+ /** The number of bytes of config information for each global symbol.
+ */
+ unsigned config_size_per_symbol;
+
/** Constant data accessed by the shader. This will be uploaded
* into a constant buffer. */
unsigned char *rodata;
unsigned rodata_size;
+ /** List of symbol offsets for the shader */
+ uint64_t *global_symbol_offsets;
+ unsigned global_symbol_count;
+
/** Set to 1 if the disassembly for this binary has been dumped to
* stderr. */
int disassembled;