From 8e0273162432b940970816a9c138ea8fb1c526e4 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 8 Nov 2021 10:36:30 -0500 Subject: [PATCH] pan/bi: Add secondary staging count Useful for instructions with two independent sets of staging registers (like dual source blending or dual texturing). Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/compiler.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index b3e8a4808cc..b4f37f4c3de 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -409,7 +409,10 @@ typedef struct { }; /* TEXC, ATOM_CX: # of staging registers used */ - uint32_t sr_count; + struct { + uint32_t sr_count; + uint32_t sr_count_2; + }; }; /* Modifiers specific to particular instructions are thrown in a union */