mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-21 21:40:22 +01:00
panfrost: bypass format-table for null-textures
We directly look up in the format arrays here to save indirections. But do you know what's even faster than a single indirection? Assigning a compile-time constant! So let's use the newly available pack-helper to pack directly what we want here. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25968>
This commit is contained in:
parent
7d3ef1a057
commit
f69b573dfc
1 changed files with 1 additions and 2 deletions
|
|
@ -1704,8 +1704,7 @@ panfrost_emit_null_texture(struct mali_texture_packed *out)
|
|||
cfg.height = 1;
|
||||
cfg.depth = 1;
|
||||
cfg.array_size = 1;
|
||||
cfg.format = PAN_ARCH >= 7 ? panfrost_pipe_format_v7[PIPE_FORMAT_NONE].hw
|
||||
: panfrost_pipe_format_v6[PIPE_FORMAT_NONE].hw;
|
||||
cfg.format = MALI_PACK_FMT(CONSTANT, 0000, L);
|
||||
#if PAN_ARCH <= 7
|
||||
cfg.texel_ordering = MALI_TEXTURE_LAYOUT_LINEAR;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue