From db91fff40d1bcf45ffa3a78ded27cd494c04938b Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Wed, 28 Apr 2021 12:37:06 +0200 Subject: [PATCH] panfrost: Pack pan_blit_surface fields It should speed up a bit hash calculation and allow us to add extra info without changing the structure size. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig --- src/panfrost/lib/pan_blitter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/panfrost/lib/pan_blitter.c b/src/panfrost/lib/pan_blitter.c index 69d442c7103..0f9ef149168 100644 --- a/src/panfrost/lib/pan_blitter.c +++ b/src/panfrost/lib/pan_blitter.c @@ -63,9 +63,9 @@ blit_type_to_reg_fmt(nir_alu_type in) } struct pan_blit_surface { - gl_frag_result loc; - nir_alu_type type; - bool ms; + gl_frag_result loc : 4; + nir_alu_type type : 8; + bool ms : 1; }; struct pan_blit_shader_key {