diff options
author | Daniel Schürmann <[email protected]> | 2019-09-17 14:35:22 +0200 |
---|---|---|
committer | Daniel Schürmann <[email protected]> | 2019-09-19 12:10:00 +0200 |
commit | a70a9987181a09258406cc0d8ff5e34acc000371 (patch) | |
tree | e4022db8525d66c706bc10154476514058425cf9 /src/amd/vulkan/radv_shader.h | |
parent | 93c8ebfa780ebd1495095e794731881aef29e7d3 (diff) |
radv/aco: Setup alternate path in RADV to support the experimental ACO compiler
LLVM remains default and ACO can be enabled with RADV_PERFTEST=aco.
Co-authored-by: Daniel Schürmann <[email protected]>
Co-authored-by: Rhys Perry <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader.h')
-rw-r--r-- | src/amd/vulkan/radv_shader.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index 57f9d160ed0..459ff863a91 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -333,6 +333,7 @@ struct radv_shader_binary_legacy { struct radv_shader_binary base; struct ac_shader_config config; unsigned code_size; + unsigned exec_size; unsigned llvm_ir_size; unsigned disasm_size; @@ -390,7 +391,8 @@ radv_shader_compile_to_nir(struct radv_device *device, gl_shader_stage stage, const VkSpecializationInfo *spec_info, const VkPipelineCreateFlags flags, - const struct radv_pipeline_layout *layout); + const struct radv_pipeline_layout *layout, + bool use_aco); void * radv_alloc_shader_memory(struct radv_device *device, @@ -412,6 +414,7 @@ radv_shader_variant_compile(struct radv_device *device, const struct radv_shader_variant_key *key, struct radv_shader_info *info, bool keep_shader_info, + bool use_aco, struct radv_shader_binary **binary_out); struct radv_shader_variant * |