mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
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:
parent
96f6254d19
commit
db91fff40d
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue