agx: pack agx_cf_binding

dramatically reduces shader info size.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31908>
This commit is contained in:
Alyssa Rosenzweig
2024-10-28 11:07:40 -04:00
parent 5d628e3892
commit 6c5be08269
+4 -2
View File
@@ -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