From: Danylo Piliaiev Date: Wed, 3 May 2023 17:32:20 +0000 (+0200) Subject: ir3/a7xx: Disable shared consts for a7xx X-Git-Tag: upstream/23.3.3~2498 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a01325200f10a55b6dac7e3a7a8dddd288d5f3d;p=platform%2Fupstream%2Fmesa.git 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: --- 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 {