From 198291f45b0a3e77ef6235b7f7e23dc6ac6a8f32 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 31 Jul 2023 15:54:27 +0200 Subject: [PATCH] radv: add radv_tcs_epilog_key Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_aco_shader_info.h | 8 ++++++++ src/amd/vulkan/radv_shader.h | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/src/amd/vulkan/radv_aco_shader_info.h b/src/amd/vulkan/radv_aco_shader_info.h index 0b71631..ed01e4d 100644 --- a/src/amd/vulkan/radv_aco_shader_info.h +++ b/src/amd/vulkan/radv_aco_shader_info.h @@ -86,6 +86,14 @@ radv_aco_convert_vs_prolog_key(struct aco_vs_prolog_info *aco_info, const struct } static inline void +radv_aco_convert_tcs_epilog_key(struct aco_tcs_epilog_info *aco_info, const struct radv_tcs_epilog_key *radv, + const struct radv_shader_args *radv_args) +{ + ASSIGN_FIELD(primitive_mode); + ASSIGN_FIELD(tes_reads_tessfactors); +} + +static inline void radv_aco_convert_ps_epilog_key(struct aco_ps_epilog_info *aco_info, const struct radv_ps_epilog_key *radv, const struct radv_shader_args *radv_args) { diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index 11d7e06..70b5854 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -482,6 +482,11 @@ struct radv_vs_prolog_key { gl_shader_stage next_stage; }; +struct radv_tcs_epilog_key { + enum tess_primitive_mode primitive_mode; + bool tes_reads_tessfactors; +}; + enum radv_shader_binary_type { RADV_BINARY_TYPE_LEGACY, RADV_BINARY_TYPE_RTLD }; struct radv_shader_binary { -- 2.7.4