From c708c56d7b193da0e97b20339401cefc00003878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Wed, 28 Jun 2017 12:28:09 +0200 Subject: [PATCH] libs/vkd3d-shader: Translate ushr instruction. --- libs/vkd3d-shader/spirv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/vkd3d-shader/spirv.c b/libs/vkd3d-shader/spirv.c index 777bda5c..5e7a8c99 100644 --- a/libs/vkd3d-shader/spirv.c +++ b/libs/vkd3d-shader/spirv.c @@ -1760,6 +1760,7 @@ static SpvOp vkd3d_dxbc_compiler_map_alu_instruction(const struct vkd3d_shader_i {VKD3DSIH_IADD, SpvOpIAdd}, {VKD3DSIH_ITOF, SpvOpConvertSToF}, {VKD3DSIH_MUL, SpvOpFMul}, + {VKD3DSIH_USHR, SpvOpShiftRightLogical}, {VKD3DSIH_UTOF, SpvOpConvertUToF}, }; unsigned int i; @@ -2182,6 +2183,7 @@ void vkd3d_dxbc_compiler_handle_instruction(struct vkd3d_dxbc_compiler *compiler case VKD3DSIH_IADD: case VKD3DSIH_ITOF: case VKD3DSIH_MUL: + case VKD3DSIH_USHR: case VKD3DSIH_UTOF: vkd3d_dxbc_compiler_emit_alu_instruction(compiler, instruction); break;