From 1191408d4b7b39b3fba183e709b2dc23dd3ae5b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Thu, 9 Jan 2025 20:02:37 -0600 Subject: [PATCH] ac: Move ac_nir_config struct to ac_nir.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/amd/common/ac_nir.h | 5 +++++ src/amd/common/ac_shader_util.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/amd/common/ac_nir.h b/src/amd/common/ac_nir.h index bcc89ca3431..279b8f060b6 100644 --- a/src/amd/common/ac_nir.h +++ b/src/amd/common/ac_nir.h @@ -39,6 +39,11 @@ enum { AC_EXP_FLAG_VALID_MASK = (1 << 2), }; +struct ac_nir_config { + enum amd_gfx_level gfx_level; + bool uses_aco; +}; + /* TODO: Remove these once radeonsi gathers shader_info before lowering. */ #define AC_VECTOR_ARG_FLAG(name, value) (((name) & 0xf) | ((value) << 4)) #define AC_VECTOR_ARG_UNSET 0 diff --git a/src/amd/common/ac_shader_util.h b/src/amd/common/ac_shader_util.h index b972dc7dd05..ac52c51dc0a 100644 --- a/src/amd/common/ac_shader_util.h +++ b/src/amd/common/ac_shader_util.h @@ -240,11 +240,6 @@ enum ac_descriptor_type AC_DESC_PLANE_2, }; -struct ac_nir_config { - enum amd_gfx_level gfx_level; - bool uses_aco; -}; - unsigned ac_get_spi_shader_z_format(bool writes_z, bool writes_stencil, bool writes_samplemask, bool writes_mrt0_alpha);