From c1991ba785a7db2ec70345db9f3670a2fa5c7894 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Thu, 16 Oct 2025 12:40:13 +0200 Subject: [PATCH] vkd3d-shader/ir: Use VSIR_OP_SATURATE in vsir_program_lower_texcoord(). --- libs/vkd3d-shader/ir.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/vkd3d-shader/ir.c b/libs/vkd3d-shader/ir.c index 534fa7e6b..9e032c65a 100644 --- a/libs/vkd3d-shader/ir.c +++ b/libs/vkd3d-shader/ir.c @@ -1987,7 +1987,7 @@ static enum vkd3d_result vsir_program_lower_texcoord(struct vsir_program *progra unsigned int idx = ins->dst[0].reg.idx[0].offset; struct vkd3d_shader_src_param *srcs; - /* texcoord t# -> mov_sat t#, t# + /* texcoord t# -> saturate t#, t# * Note that the t# destination will subsequently be turned into a temp. */ /* We run before I/O normalization. */ @@ -2001,9 +2001,7 @@ static enum vkd3d_result vsir_program_lower_texcoord(struct vsir_program *progra srcs[0].reg.dimension = VSIR_DIMENSION_VEC4; srcs[0].swizzle = VKD3D_SHADER_NO_SWIZZLE; - ins->dst[0].modifiers |= VKD3DSPDM_SATURATE; - - ins->opcode = VSIR_OP_MOV; + ins->opcode = VSIR_OP_SATURATE; ins->src = srcs; ins->src_count = 1;