mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/ir: Use VSIR_OP_SATURATE in vsir_program_lower_texcoord().
This commit is contained in:
committed by
Henri Verbeet
parent
6633c220b7
commit
c1991ba785
Notes:
Henri Verbeet
2025-10-27 19:10:19 +01:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1798
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user