Skip to content

Commit

Permalink
rendervulkan: add back VK_FORMAT_R8G8B8A8_UNORM
Browse files Browse the repository at this point in the history
This format is used for the cursor. Regressed by 8b70637 ("Use
VK_FORMAT_B8G8R8A8_UNORM no swizzle for DRM_FORMAT_ARGB8888").

    gamescope: ../src/rendervulkan.cpp:369: bool CVulkanTexture::BInit(uint32_t, uint32_t, VkFormat, CVulkanTexture::createFlags, wlr_dmabuf_attributes*): Assertion drmFormat != DRM_FORMAT_INVALID' failed.
  • Loading branch information
emersion committed Jul 25, 2021
1 parent 5d12da3 commit c9e8634
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rendervulkan.cpp
Expand Up @@ -149,6 +149,8 @@ struct {
} s_DRMVKFormatTable[] = {
{ DRM_FORMAT_XRGB8888, VK_FORMAT_B8G8R8A8_UNORM, false, false },
{ DRM_FORMAT_ARGB8888, VK_FORMAT_B8G8R8A8_UNORM, false, true },
{ DRM_FORMAT_XRGB8888, VK_FORMAT_R8G8B8A8_UNORM, true, false },
{ DRM_FORMAT_ARGB8888, VK_FORMAT_R8G8B8A8_UNORM, true, true },
{ DRM_FORMAT_NV12, VK_FORMAT_G8_B8R8_2PLANE_420_UNORM, false, false },
{ DRM_FORMAT_INVALID, VK_FORMAT_UNDEFINED, false, false },
};
Expand Down

0 comments on commit c9e8634

Please sign in to comment.