aco: Remove unneeded stage related info fields.

Cleanup of various fields with redundant information.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23597>
This commit is contained in:
Timur Kristóf
2023-06-12 15:58:19 +02:00
committed by Marge Bot
parent bc971ba2c7
commit 3b21c59fc3
3 changed files with 0 additions and 18 deletions
-6
View File
@@ -80,14 +80,11 @@ struct aco_ps_epilog_info {
struct aco_shader_info {
enum ac_hw_stage hw_stage;
uint8_t wave_size;
bool is_ngg;
bool has_ngg_culling;
bool has_ngg_early_prim_export;
bool image_2d_view_of_3d;
unsigned workgroup_size;
struct {
bool as_es;
bool as_ls;
bool tcs_in_out_eq;
uint64_t tcs_temp_only_input_mask;
bool has_prolog;
@@ -96,9 +93,6 @@ struct aco_shader_info {
uint32_t num_lds_blocks;
unsigned tess_input_vertices;
} tcs;
struct {
bool as_es;
} tes;
struct {
bool has_epilog;
struct ac_arg epilog_pc;
-4
View File
@@ -90,17 +90,13 @@ radv_aco_convert_shader_info(struct aco_shader_info *aco_info, const struct radv
const enum amd_gfx_level gfx_level)
{
ASSIGN_FIELD(wave_size);
ASSIGN_FIELD(is_ngg);
ASSIGN_FIELD(has_ngg_culling);
ASSIGN_FIELD(has_ngg_early_prim_export);
ASSIGN_FIELD(workgroup_size);
ASSIGN_FIELD(vs.as_es);
ASSIGN_FIELD(vs.as_ls);
ASSIGN_FIELD(vs.tcs_in_out_eq);
ASSIGN_FIELD(vs.tcs_temp_only_input_mask);
ASSIGN_FIELD(vs.has_prolog);
ASSIGN_FIELD(tcs.num_lds_blocks);
ASSIGN_FIELD(tes.as_es);
ASSIGN_FIELD(ps.has_epilog);
ASSIGN_FIELD(ps.num_interp);
ASSIGN_FIELD(ps.spi_ps_input);
@@ -107,19 +107,11 @@ si_fill_aco_shader_info(struct si_shader *shader, struct aco_shader_info *info)
info->hw_stage = si_select_hw_stage(stage, key, gfx_level);
if (stage <= MESA_SHADER_GEOMETRY && key->ge.as_ngg && !key->ge.as_es) {
info->is_ngg = true;
info->has_ngg_culling = key->ge.opt.ngg_culling;
info->has_ngg_early_prim_export = gfx10_ngg_export_prim_early(shader);
}
switch (stage) {
case MESA_SHADER_VERTEX:
info->vs.as_es = key->ge.as_es;
info->vs.as_ls = key->ge.as_ls;
break;
case MESA_SHADER_TESS_EVAL:
info->tes.as_es = key->ge.as_es;
break;
case MESA_SHADER_FRAGMENT:
info->ps.num_interp = si_get_ps_num_interp(shader);
info->ps.spi_ps_input = shader->config.spi_ps_input_ena;