From 7a01325200f10a55b6dac7e3a7a8dddd288d5f3d Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Wed, 3 May 2023 19:32:20 +0200 Subject: [PATCH] ir3/a7xx: Disable shared consts for a7xx a7xx introduced a new way to upload shared consts with old one becoming unavailable, use fallback mechanism until we implement the new shared consts. Signed-off-by: Danylo Piliaiev Part-of: --- src/freedreno/ir3/ir3_compiler.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/freedreno/ir3/ir3_compiler.c b/src/freedreno/ir3/ir3_compiler.c index 61cc68a..eb0001a 100644 --- a/src/freedreno/ir3/ir3_compiler.c +++ b/src/freedreno/ir3/ir3_compiler.c @@ -197,9 +197,16 @@ ir3_compiler_create(struct fd_device *dev, const struct fd_dev_id *dev_id, compiler->has_dp2acc = dev_info->a6xx.has_dp2acc; compiler->has_dp4acc = dev_info->a6xx.has_dp4acc; - compiler->shared_consts_base_offset = 504; - compiler->shared_consts_size = 8; - compiler->geom_shared_consts_size_quirk = 16; + if (compiler->gen == 6) { + compiler->shared_consts_base_offset = 504; + compiler->shared_consts_size = 8; + compiler->geom_shared_consts_size_quirk = 16; + } else { + /* A7XX TODO: properly use new shared consts mechanism */ + compiler->shared_consts_base_offset = -1; + compiler->shared_consts_size = 0; + compiler->geom_shared_consts_size_quirk = 0; + } compiler->has_fs_tex_prefetch = dev_info->a6xx.has_fs_tex_prefetch; } else { -- 2.7.4