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:
parent
bf0f96f893
commit
45c615fd05
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue