lavapipe: Use common Vulkan format helpers
Drops the vk_format_to_pipe (and it's outdated table) for vk_format_to_pipe_format, aswell as the duplicated vk_format_aspects function. The old format table was missing USCALED and other values, causing incorrect rendering in many games. Fixes rendering in Portal 1, Hat in Time, Half-Life 2 and pretty much every other D3D9 title with DXVK. Fixes: b38879f8 ("vallium: initial import of the vulkan frontend") Signed-off-by:Joshua Ashton <joshua@froggi.es> Reviewed-By:
Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by:
Dave Airlie <airlied@redhat.com> Part-of: <mesa/mesa!11863> (cherry picked from commit 17443727)
- .pick_status.json 1 addition, 1 deletion.pick_status.json
- src/gallium/frontends/lavapipe/lvp_execute.c 8 additions, 8 deletionssrc/gallium/frontends/lavapipe/lvp_execute.c
- src/gallium/frontends/lavapipe/lvp_formats.c 2 additions, 134 deletionssrc/gallium/frontends/lavapipe/lvp_formats.c
- src/gallium/frontends/lavapipe/lvp_image.c 3 additions, 3 deletionssrc/gallium/frontends/lavapipe/lvp_image.c
- src/gallium/frontends/lavapipe/lvp_private.h 32 additions, 23 deletionssrc/gallium/frontends/lavapipe/lvp_private.h