From 4663afd8ab2bd56f9be61c967d76560413d48d3b Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 25 May 2021 13:56:41 -0400 Subject: [PATCH] pan/bi: Don't restrict the register file in non-blend shaders Now that preloading is handled correctly, there's nothing 'special' about R59 and up, so this gets us a few more registers to work with. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_ra.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c index 617bd5a6..e54cfa9 100644 --- a/src/panfrost/bifrost/bi_ra.c +++ b/src/panfrost/bifrost/bi_ra.c @@ -262,11 +262,10 @@ bi_allocate_registers(bi_context *ctx, bool *success) unsigned node_count = bi_max_temp(ctx); struct lcra_state *l = lcra_alloc_equations(node_count); + /* R0-R3 are reserved for the blend input in blend shaders, otherwise + * we can use the whole register file */ uint64_t default_affinity = - /* R0-R3 are reserved for the blend input */ - (ctx->inputs->is_blend) ? BITFIELD64_MASK(16) : - /* R0 - R63, all 32-bit */ - BITFIELD64_MASK(59); + ctx->inputs->is_blend ? BITFIELD64_MASK(16) : ~0ull; bi_foreach_instr_global(ctx, ins) { bi_foreach_dest(ins, d) { -- 2.7.4