diff options
author | Tom Stellard <[email protected]> | 2014-07-14 16:49:08 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-07-21 10:00:09 -0400 |
commit | 9ba3105e0a4b186d6b1ee4c23886a3c4cd0a3543 (patch) | |
tree | d2bc36a2b8ed1d69765b4444dd439c1d15a70698 /src/gallium/drivers/radeon/r600_pipe_common.h | |
parent | 01c21c459f02b7540ea4e32e03c1e7b1acbd3fe6 (diff) |
radeonsi: Read rodata from ELF and append it to the end of shaders
The is used for programs that have arrays of constants that
are accessed using dynamic indices. The shader will compute
the base address of the constants and then access them using
SMRD instructions.
Diffstat (limited to 'src/gallium/drivers/radeon/r600_pipe_common.h')
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h b/src/gallium/drivers/radeon/r600_pipe_common.h index d82adf5d387..8f1a0a5944c 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.h +++ b/src/gallium/drivers/radeon/r600_pipe_common.h @@ -108,6 +108,11 @@ struct radeon_shader_binary { unsigned char *config; unsigned config_size; + /** Constant data accessed by the shader. This will be uploaded + * into a constant buffer. */ + unsigned char *rodata; + unsigned rodata_size; + /** Set to 1 if the disassembly for this binary has been dumped to * stderr. */ int disassembled; |