mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 08:30:10 +01:00
The mesa screenshot layer attempts to use VK_FORMAT_R8G8B8_UNORM by default. Using this, we can directly & efficiently write out to a PNG file without further modifications. However, some GPUs don't support the given format, so for those that don't, we'll attempt to use VK_FORMAT_R8G8B8A8_UNORM, which will require some work to ensure the alpha values are set to opaque to make RGB comparisons easier. If both surface formats fail, a more descriptive failure will be shown. Signed-off-by: Casey Bowman <casey.g.bowman@intel.com> Reviewed-by: Felix DeGrood <felix.j.degrood@intel.com> Reviewed-by: Karmjit Mahil <karmjit.mahil@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33295> |
||
|---|---|---|
| .. | ||
| device-select-layer | ||
| overlay-layer | ||
| registry | ||
| runtime | ||
| screenshot-layer | ||
| util | ||
| vram-report-limit-layer | ||
| wsi | ||
| meson.build | ||
| vulkan-android.sym | ||
| vulkan-icd-android-symbols.txt | ||
| vulkan-icd-symbols.txt | ||
| vulkan.sym | ||
| vulkan_api.def.in | ||