From 6c5be08269d912e54453157f47ec081acf28f75e Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 28 Oct 2024 11:07:40 -0400 Subject: [PATCH] agx: pack agx_cf_binding dramatically reduces shader info size. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/asahi/compiler/agx_compile.h b/src/asahi/compiler/agx_compile.h index ae7656d7504..6b0aca552ee 100644 --- a/src/asahi/compiler/agx_compile.h +++ b/src/asahi/compiler/agx_compile.h @@ -11,10 +11,10 @@ struct agx_cf_binding { /* Base coefficient register */ - unsigned cf_base; + uint8_t cf_base; /* Slot being bound */ - gl_varying_slot slot; + gl_varying_slot slot : 8; /* First component bound. * @@ -30,6 +30,8 @@ struct agx_cf_binding { /* Perspective correct interpolation */ bool perspective : 1; + + uint8_t pad; }; /* Conservative bound, * 4 due to offsets (TODO: maybe worth eliminating