From a70a9987181a09258406cc0d8ff5e34acc000371 Mon Sep 17 00:00:00 2001 From: Daniel Schürmann Date: Tue, 17 Sep 2019 14:35:22 +0200 Subject: radv/aco: Setup alternate path in RADV to support the experimental ACO compiler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LLVM remains default and ACO can be enabled with RADV_PERFTEST=aco. Co-authored-by: Daniel Schürmann Co-authored-by: Rhys Perry Reviewed-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_shader.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/amd/vulkan/radv_shader.h') 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 * -- cgit v1.2.3