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; };