From f5a09926868d81d81f1029c7ca6077af0974b9ba Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 18 Jun 2025 21:25:37 +0200 Subject: [PATCH] render/vulkan: fix multiplication order for output color matrix This had the same bug as the texture side, but I forgot to fix it. See: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4988#note_2867416 Fixes: f3524de98095 ("render, render/vulkan: add primaries to wlr_buffer_pass_options") --- render/vulkan/pass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/vulkan/pass.c b/render/vulkan/pass.c index ab044f6a0..290d8e2ca 100644 --- a/render/vulkan/pass.c +++ b/render/vulkan/pass.c @@ -219,7 +219,7 @@ static bool render_pass_submit(struct wlr_render_pass *wlr_pass) { float xyz_to_dst_primaries[9]; matrix_invert(xyz_to_dst_primaries, dst_primaries_to_xyz); - wlr_matrix_multiply(matrix, srgb_to_xyz, xyz_to_dst_primaries); + wlr_matrix_multiply(matrix, xyz_to_dst_primaries, srgb_to_xyz); } else { wlr_matrix_identity(matrix); }