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 <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
This commit is contained in:
Boris Brezillon 2021-04-28 12:37:06 +02:00
parent 96f6254d19
commit db91fff40d

View file

@ -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 {