From bc4aacd21e80519a9291b8b6feb590c0cf3ad826 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 3 Oct 2024 15:50:01 +0200 Subject: [PATCH] vkd3d-shader/glsl: Implement VKD3DSIH_ULT. --- libs/vkd3d-shader/glsl.c | 1 + tests/hlsl/switch.shader_test | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/vkd3d-shader/glsl.c b/libs/vkd3d-shader/glsl.c index 7cb11053..00357db6 100644 --- a/libs/vkd3d-shader/glsl.c +++ b/libs/vkd3d-shader/glsl.c @@ -1248,6 +1248,7 @@ static void vkd3d_glsl_handle_instruction(struct vkd3d_glsl_generator *gen, break; case VKD3DSIH_ILT: case VKD3DSIH_LTO: + case VKD3DSIH_ULT: shader_glsl_relop(gen, ins, "<", "lessThan"); break; case VKD3DSIH_IMAX: diff --git a/tests/hlsl/switch.shader_test b/tests/hlsl/switch.shader_test index 1f657ffe..2a7ff7f0 100644 --- a/tests/hlsl/switch.shader_test +++ b/tests/hlsl/switch.shader_test @@ -610,11 +610,11 @@ float4 main() : sv_target [test] if(sm<4) uniform 0 float4 0 0 3 1 if(sm>=4) uniform 0 uint4 0 0 3 1 -todo(glsl) draw quad +draw quad probe (0, 0) rgba (304.0, 305.0, 306.0, 307.0) if(sm<4) uniform 0 float4 1 0 3 1 if(sm>=4) uniform 0 uint4 1 0 3 1 -todo(glsl) draw quad +draw quad probe (0, 0) rgba (3.0, 4.0, 5.0, 6.0) [require]