aboutsummaryrefslogtreecommitdiff
path: root/render/vulkan/texture.c
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2023-10-21 21:04:04 -0400
committerSimon Ser <contact@emersion.fr>2023-12-04 15:13:31 +0000
commiteab89d6c76f6fbd497145137c1f7dadd142f2f58 (patch)
tree5f16497d7704a999fa65aaaadc046232014969b9 /render/vulkan/texture.c
parent6287b610253d63fdb456564743b02f76919b17fb (diff)
render/vulkan: track and use _UNORM variants of _SRGB formats
Later commits will start using _SRGB image views again, where appropriate.
Diffstat (limited to 'render/vulkan/texture.c')
-rw-r--r--render/vulkan/texture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/vulkan/texture.c b/render/vulkan/texture.c
index 20aa12f1..036d5f73 100644
--- a/render/vulkan/texture.c
+++ b/render/vulkan/texture.c
@@ -374,7 +374,8 @@ struct wlr_vk_texture_view *vulkan_texture_get_or_create_view(struct wlr_vk_text
static void texture_set_format(struct wlr_vk_texture *texture,
const struct wlr_vk_format *format) {
texture->format = format;
- texture->transform = !format->is_ycbcr && format->is_srgb ?
+ texture->transform = !format->is_ycbcr &&
+ (format->vk_srgb && false /* temporary */) ?
WLR_VK_TEXTURE_TRANSFORM_IDENTITY : WLR_VK_TEXTURE_TRANSFORM_SRGB;
const struct wlr_pixel_format_info *format_info =