rusticl/mem: cache the pipe_format
authorKarol Herbst <git@karolherbst.de>
Sun, 18 Jun 2023 15:21:27 +0000 (17:21 +0200)
committerKarol Herbst <git@karolherbst.de>
Mon, 19 Jun 2023 12:06:45 +0000 (14:06 +0200)
commit73f86c9b9d16e981905e6c1e09a539aef1c04d71
treeeff00a3d32f71e1612af35c438bfc2be21840819
parentff95349285d08c2879f497da9cee3f68ee8fc93a
rusticl/mem: cache the pipe_format

This moves the expensive to_pipe_format call to image creation time.

Signed-off-by: Karol Herbst <git@karolherbst.de>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Nora Allen <blackcatgames@protonmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23714>
src/gallium/frontends/rusticl/core/context.rs
src/gallium/frontends/rusticl/core/kernel.rs
src/gallium/frontends/rusticl/core/memory.rs