From 4a9faaae175254c2b2b9becddf9263fd9e8c588e Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Wed, 22 Jan 2025 15:33:48 +0100 Subject: [PATCH] ir3: add ir3_compiler::has_alias Flag to detect support for alias.rt/alias.tex available in a7xx. Signed-off-by: Job Noorman Part-of: --- src/freedreno/ir3/ir3_compiler.c | 5 +++++ src/freedreno/ir3/ir3_compiler.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/freedreno/ir3/ir3_compiler.c b/src/freedreno/ir3/ir3_compiler.c index 74b642ca178..ed21a7fa436 100644 --- a/src/freedreno/ir3/ir3_compiler.c +++ b/src/freedreno/ir3/ir3_compiler.c @@ -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; diff --git a/src/freedreno/ir3/ir3_compiler.h b/src/freedreno/ir3/ir3_compiler.h index 0d702a6ec16..95b0a88844c 100644 --- a/src/freedreno/ir3/ir3_compiler.h +++ b/src/freedreno/ir3/ir3_compiler.h @@ -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; };