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>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10548>
This commit is contained in:
Boris Brezillon 2021-04-28 12:37:06 +02:00 committed by Marge Bot
parent bf0f96f893
commit 45c615fd05
1 changed files with 3 additions and 3 deletions

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 {