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]