From: Alexandros Frantzis <alexandros.frant...@collabora.com> Improve the surface format support in the Wayland Vulkan WSI, by automating the matching between wl_drm and Vulkan formats.
The patchset is conceptually split into three parts: * PATCH 1-4: Move the vk_format utilities/scripts to a more accessible location (vulkan/util), add some needed functionality and refactor them to make them more reusable. * PATCH 5: Create wl_drm_format utilities/scripts to describe wl_drm formats in a way compatible with vk_format, reusing functionality from the vk_format utilities. The wl_drm_format functionality is internal to the WSI so it is placed in the vulkan/wsi directory (not in vulkan/util) but we can revisit this decision. * PATCH 6: Use the vk and wl_drm format descriptions to automate format matching in the Wayland WSI code. Alexandros Frantzis (6): vulkan/util: Move vk_format from amd/vulkan to vulkan/util vulkan/util: Add missing header in vk_format.h vulkan/util: Make all the vk_format descriptions available in a table vulkan/util: Make the vk_format table creation scripts more reusable vulkan/wsi: Introduce wl_drm_format table creation utilities vulkan/wsi/wayland: Use vk and wl_drm format descriptions to automate format matching src/amd/vulkan/Makefile.am | 10 +- src/amd/vulkan/Makefile.sources | 2 - src/vulkan/Makefile.am | 19 ++- src/vulkan/Makefile.sources | 10 +- src/{amd/vulkan => vulkan/util}/vk_format.h | 4 +- .../vulkan => vulkan/util}/vk_format_layout.csv | 0 src/{amd/vulkan => vulkan/util}/vk_format_parse.py | 4 +- src/{amd/vulkan => vulkan/util}/vk_format_table.py | 68 +++++--- src/vulkan/wsi/wl_drm_format.h | 68 ++++++++ src/vulkan/wsi/wl_drm_format_layout.csv | 39 +++++ src/vulkan/wsi/wl_drm_format_table.py | 84 +++++++++ src/vulkan/wsi/wsi_common_wayland.c | 188 +++++++++++---------- 12 files changed, 364 insertions(+), 132 deletions(-) rename src/{amd/vulkan => vulkan/util}/vk_format.h (98%) rename src/{amd/vulkan => vulkan/util}/vk_format_layout.csv (100%) rename src/{amd/vulkan => vulkan/util}/vk_format_parse.py (98%) rename src/{amd/vulkan => vulkan/util}/vk_format_table.py (77%) create mode 100644 src/vulkan/wsi/wl_drm_format.h create mode 100644 src/vulkan/wsi/wl_drm_format_layout.csv create mode 100644 src/vulkan/wsi/wl_drm_format_table.py -- 2.13.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev