anv: Declare anv_layout_to_* as pure functions
authorChad Versace <chad@kiwitree.net>
Tue, 23 Mar 2021 04:23:43 +0000 (21:23 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 8 Apr 2021 14:15:55 +0000 (14:15 +0000)
commit13498cdd346c277456dee0af2775164d6be35703
treeb1e6a7b7385ad45514388b7beaf7aa49fb966830
parent0e3199d912ac159b6b543b0a02276253f2ca1132
anv: Declare anv_layout_to_* as pure functions

Because I want the compiler to eliminate some function calls in
transition_color_buffer() that produce unused return values. Let's hope
the compiler gets the hint.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1466>
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h