ir3: add ir3_compiler::has_alias

Flag to detect support for alias.rt/alias.tex available in a7xx.

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31222>
This commit is contained in:
Job Noorman 2025-01-22 15:33:48 +01:00 committed by Marge Bot
parent c5c95f8916
commit 4a9faaae17
2 changed files with 8 additions and 0 deletions

View file

@ -157,6 +157,7 @@ ir3_compiler_create(struct fd_device *dev, const struct fd_dev_id *dev_id,
compiler->bitops_can_write_predicates = false;
compiler->has_branch_and_or = false;
compiler->has_rpt_bary_f = false;
compiler->has_alias = false;
if (compiler->gen >= 6) {
compiler->samgq_workaround = true;
@ -232,6 +233,10 @@ ir3_compiler_create(struct fd_device *dev, const struct fd_dev_id *dev_id,
compiler->has_shfl = true;
compiler->reading_shading_rate_requires_smask_quirk =
dev_info->a7xx.reading_shading_rate_requires_smask_quirk;
if (compiler->gen >= 7) {
compiler->has_alias = true;
}
} else {
compiler->max_const_pipeline = 512;
compiler->max_const_geom = 512;

View file

@ -282,6 +282,9 @@ struct ir3_compiler {
/* True if (rptN) is supported for bary.f. */
bool has_rpt_bary_f;
/* True if alias.tex and alias.rt are supported. */
bool has_alias;
bool reading_shading_rate_requires_smask_quirk;
};