diff options
author | Tom Stellard <[email protected]> | 2014-09-25 18:11:24 -0700 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-10-31 15:24:00 -0400 |
commit | 1f4e48d5b53e73605832971f3fb06cb3402f97a5 (patch) | |
tree | 9f4a475a36e329d94e8198d5449c7e298db69837 /src/gallium/drivers/radeonsi/si_shader.h | |
parent | fa07f4b68a20e54e1766876203b11a8b90ff120f (diff) |
radeonsi/compute: Enable PIPE_SHADER_IR_NATIVE for compute shaders v2
v2:
- Drop dependency on LLVM >= 3.5.1
- Rename si_create_shader() to si_shader_binary_read()
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h index 30e6854031e..5e8c9e6365e 100644 --- a/src/gallium/drivers/radeonsi/si_shader.h +++ b/src/gallium/drivers/radeonsi/si_shader.h @@ -33,6 +33,8 @@ #include "tgsi/tgsi_scan.h" #include "si_state.h" +struct radeon_shader_binary; + #define SI_SGPR_RW_BUFFERS 0 /* rings (& stream-out, VS only) */ #define SI_SGPR_CONST 2 #define SI_SGPR_SAMPLER 4 @@ -180,5 +182,10 @@ int si_compile_llvm(struct si_screen *sscreen, struct si_shader *shader, LLVMModuleRef mod); void si_shader_destroy(struct pipe_context *ctx, struct si_shader *shader); unsigned si_shader_io_get_unique_index(unsigned semantic_name, unsigned index); +int si_shader_binary_read(struct si_screen *sscreen, struct si_shader *shader, + const struct radeon_shader_binary *binary); +void si_shader_binary_read_config(const struct radeon_shader_binary *binary, + struct si_shader *shader, + unsigned symbol_offset); #endif |