ac: Move ac_nir_config struct to ac_nir.h

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32966>
This commit is contained in:
Timur Kristóf
2025-01-09 20:02:37 -06:00
parent 4cad0bc438
commit 1191408d4b
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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);