From 85697d76bec42281db4fb60760ede2444cf16a70 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 18 Oct 2024 23:18:54 +0200 Subject: [PATCH] vkd3d-shader/glsl: Implement VKD3DSIH_UMAX and VKD3DSIH_UMIN. --- libs/vkd3d-shader/glsl.c | 2 ++ tests/hlsl/max-min.shader_test | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/glsl.c b/libs/vkd3d-shader/glsl.c index f63d87ae..55b76e59 100644 --- a/libs/vkd3d-shader/glsl.c +++ b/libs/vkd3d-shader/glsl.c @@ -1482,9 +1482,11 @@ static void vkd3d_glsl_handle_instruction(struct vkd3d_glsl_generator *gen, break; case VKD3DSIH_IMAX: case VKD3DSIH_MAX: + case VKD3DSIH_UMAX: shader_glsl_intrinsic(gen, ins, "max"); break; case VKD3DSIH_MIN: + case VKD3DSIH_UMIN: shader_glsl_intrinsic(gen, ins, "min"); break; case VKD3DSIH_IMUL: diff --git a/tests/hlsl/max-min.shader_test b/tests/hlsl/max-min.shader_test index 3022a8e0..57fc028e 100644 --- a/tests/hlsl/max-min.shader_test +++ b/tests/hlsl/max-min.shader_test @@ -101,7 +101,7 @@ uint4 main() : sv_target [test] uniform 0 uint4 1 2 0 0 -todo(glsl) draw quad +draw quad probe (0, 0) rgbaui (2, 1, 2, 1) [rtv 0]