From babbf11d52e728f8b0c22454a7ec4c371bae4497 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sun, 29 Sep 2024 20:04:35 +0200 Subject: [PATCH] vkd3d-shader/glsl: Implement VKD3DSIH_ISHR. --- libs/vkd3d-shader/glsl.c | 3 +++ tests/hlsl/bitwise-assignment.shader_test | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/glsl.c b/libs/vkd3d-shader/glsl.c index f585d142..33dac05a 100644 --- a/libs/vkd3d-shader/glsl.c +++ b/libs/vkd3d-shader/glsl.c @@ -828,6 +828,9 @@ static void vkd3d_glsl_handle_instruction(struct vkd3d_glsl_generator *gen, case VKD3DSIH_ISHL: shader_glsl_binop(gen, ins, "<<"); break; + case VKD3DSIH_ISHR: + shader_glsl_binop(gen, ins, ">>"); + break; case VKD3DSIH_LTO: shader_glsl_relop(gen, ins, "<", "lessThan"); break; diff --git a/tests/hlsl/bitwise-assignment.shader_test b/tests/hlsl/bitwise-assignment.shader_test index 9c273246..df89297e 100644 --- a/tests/hlsl/bitwise-assignment.shader_test +++ b/tests/hlsl/bitwise-assignment.shader_test @@ -35,7 +35,7 @@ float4 main() : SV_TARGET [test] uniform 0 uint4 1 0 0 0 -todo(glsl) draw quad +draw quad probe (0, 0) rgba (2, -6, 2, -6) [pixel shader]