From 9d0befa198152c9e38af29c51176a760f0e6689b Mon Sep 17 00:00:00 2001 From: KojoZero Date: Fri, 22 May 2026 05:14:11 -0700 Subject: [PATCH] vulkan fixed some shaders --- src/video_core/host_shaders/scaling/vulkan_area_sampling.vert | 3 ++- src/video_core/host_shaders/vulkan_simple_present.frag | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/video_core/host_shaders/scaling/vulkan_area_sampling.vert b/src/video_core/host_shaders/scaling/vulkan_area_sampling.vert index 37c250acd..cfaadad1e 100644 --- a/src/video_core/host_shaders/scaling/vulkan_area_sampling.vert +++ b/src/video_core/host_shaders/scaling/vulkan_area_sampling.vert @@ -17,7 +17,8 @@ layout (push_constant, std140) uniform DrawInfo { }; void main() { - gl_Position = vec4(mat2(modelview_matrix) * vert_position + modelview_matrix[2], 0.0, 1.0); + vec4 position = vec4(vert_position, 0.0, 1.0) * modelview_matrix; + gl_Position = vec4(position.x, position.y, 0.0, 1.0); frag_tex_coord = vert_tex_coord; } diff --git a/src/video_core/host_shaders/vulkan_simple_present.frag b/src/video_core/host_shaders/vulkan_simple_present.frag index 14a3a0ad7..04ab1d8bc 100644 --- a/src/video_core/host_shaders/vulkan_simple_present.frag +++ b/src/video_core/host_shaders/vulkan_simple_present.frag @@ -16,6 +16,7 @@ layout (push_constant, std140) uniform DrawInfo { int screen_id_r; int layer; int reverse_interlaced; + int convert_colors; }; layout (set = 0, binding = 0) uniform sampler2D screen_textures[3];