From 0f087b56d03a32e84ca2f5326fb4dcc2cb142bc9 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 28 Dec 2022 22:46:35 -0500 Subject: [PATCH] agx: Bump preamble_storage_size to 512 nir_opt_preamble is now aware of the internal uniforms we insert, so it can use the whole uniform file available to it. This lets us push more (all?) uniform loads in Dolphin ubershaders to the preamble. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_nir_opt_preamble.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/asahi/compiler/agx_nir_opt_preamble.c b/src/asahi/compiler/agx_nir_opt_preamble.c index b7d67dfef3c..f9b2040cb58 100644 --- a/src/asahi/compiler/agx_nir_opt_preamble.c +++ b/src/asahi/compiler/agx_nir_opt_preamble.c @@ -149,12 +149,7 @@ static const nir_opt_preamble_options preamble_options = { .instr_cost_cb = instr_cost, .rewrite_cost_cb = rewrite_cost, .avoid_instr_cb = avoid_instr, - - /* Storage size 16-bit words. Should be 512, but we push some sysvals ad hoc - * in the backend compiler, so we need to reserve space. When we move UBO and - * VBO lowering to NIR, this can be bumped up to 512. - */ - .preamble_storage_size = 256, + .preamble_storage_size = 512, }; bool