mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 23:40:12 +01:00
When WSI is working in prime/dma-buf mode, it has one additional VkBuffer or VkImage where the main VkImage is copied to without any compression or tiling different from linear The batch buffer to do this copy is created in wsi_finish_create_blit_context(). It performs a barrier transitioning the VkImage to VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, performs the copy, and then transitions it back to VK_IMAGE_LAYOUT_PRESENT_SRC_KHR. However, in this prime/dma-buf mode, no display modifiers are involved, which causes compression to be disabled when switching to VK_IMAGE_LAYOUT_PRESENT_SRC_KHR. This change adds an exception to allow the Vkimage to remain compressed because we can handle the compressed-to-uncompressed copy. Doing so fixes an issue that was reported with BMG + integrated GPU and should also improve performance by keeping the VkImage compressed. Cc: mesa-stable Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12354 Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33044> |
||
|---|---|---|
| .. | ||
| amd | ||
| android_stub | ||
| asahi | ||
| broadcom | ||
| c11 | ||
| compiler | ||
| drm-shim | ||
| egl | ||
| etnaviv | ||
| freedreno | ||
| gallium | ||
| gbm | ||
| getopt | ||
| gfxstream | ||
| glx | ||
| gtest | ||
| imagination | ||
| imgui | ||
| intel | ||
| loader | ||
| mapi | ||
| mesa | ||
| microsoft | ||
| nouveau | ||
| panfrost | ||
| tool | ||
| util | ||
| virtio | ||
| vulkan | ||
| x11 | ||
| .clang-format | ||
| meson.build | ||