From fc4c9b7a957d71015c7f1fc8e5399e00fcb5ee6d Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sun, 29 Sep 2024 20:09:25 +0200 Subject: [PATCH] vkd3d-shader/glsl: Implement VKD3DSIH_USHR. --- libs/vkd3d-shader/glsl.c | 1 + tests/hlsl/bitwise-assignment.shader_test | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/glsl.c b/libs/vkd3d-shader/glsl.c index 33dac05a..e2bcca56 100644 --- a/libs/vkd3d-shader/glsl.c +++ b/libs/vkd3d-shader/glsl.c @@ -829,6 +829,7 @@ static void vkd3d_glsl_handle_instruction(struct vkd3d_glsl_generator *gen, shader_glsl_binop(gen, ins, "<<"); break; case VKD3DSIH_ISHR: + case VKD3DSIH_USHR: shader_glsl_binop(gen, ins, ">>"); break; case VKD3DSIH_LTO: diff --git a/tests/hlsl/bitwise-assignment.shader_test b/tests/hlsl/bitwise-assignment.shader_test index df89297e..3545fcb8 100644 --- a/tests/hlsl/bitwise-assignment.shader_test +++ b/tests/hlsl/bitwise-assignment.shader_test @@ -15,7 +15,7 @@ float4 main() : SV_TARGET [test] uniform 0 uint4 2 0 0 0 -todo(glsl) draw quad +draw quad probe (0, 0) rgba (8, 8, 0, 0) [pixel shader]