From 5879eaac185ed1c167fd01aff9b91c7cbe43ab0a Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 3 Sep 2024 08:52:38 -0400 Subject: [PATCH] ir3: Increase compute const size on a7xx Part-of: --- src/freedreno/ir3/ir3_compiler.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/freedreno/ir3/ir3_compiler.c b/src/freedreno/ir3/ir3_compiler.c index 53372cab7f9..fd180ea5266 100644 --- a/src/freedreno/ir3/ir3_compiler.c +++ b/src/freedreno/ir3/ir3_compiler.c @@ -175,11 +175,12 @@ ir3_compiler_create(struct fd_device *dev, const struct fd_dev_id *dev_id, compiler->max_const_safe = 100; /* Compute shaders don't share a const file with the FS. Instead they - * have their own file, which is smaller than the FS one. + * have their own file, which is smaller than the FS one. On a7xx the size + * was doubled. * * TODO: is this true on earlier gen's? */ - compiler->max_const_compute = 256; + compiler->max_const_compute = compiler->gen >= 7 ? 512 : 256; /* TODO: implement clip+cull distances on earlier gen's */ compiler->has_clip_cull = true;