mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d-shader: Translate min/max instructions.
This commit is contained in:
@@ -1788,6 +1788,8 @@ static enum GLSLstd450 vkd3d_dxbc_compiler_map_ext_glsl_instruction(
|
|||||||
glsl_insts[] =
|
glsl_insts[] =
|
||||||
{
|
{
|
||||||
{VKD3DSIH_MAD, GLSLstd450Fma},
|
{VKD3DSIH_MAD, GLSLstd450Fma},
|
||||||
|
{VKD3DSIH_MAX, GLSLstd450FMax},
|
||||||
|
{VKD3DSIH_MIN, GLSLstd450FMin},
|
||||||
{VKD3DSIH_RSQ, GLSLstd450InverseSqrt},
|
{VKD3DSIH_RSQ, GLSLstd450InverseSqrt},
|
||||||
};
|
};
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
@@ -2135,6 +2137,8 @@ void vkd3d_dxbc_compiler_handle_instruction(struct vkd3d_dxbc_compiler *compiler
|
|||||||
vkd3d_dxbc_compiler_emit_alu_instruction(compiler, instruction);
|
vkd3d_dxbc_compiler_emit_alu_instruction(compiler, instruction);
|
||||||
break;
|
break;
|
||||||
case VKD3DSIH_MAD:
|
case VKD3DSIH_MAD:
|
||||||
|
case VKD3DSIH_MAX:
|
||||||
|
case VKD3DSIH_MIN:
|
||||||
case VKD3DSIH_RSQ:
|
case VKD3DSIH_RSQ:
|
||||||
vkd3d_dxbc_compiler_emit_ext_glsl_instruction(compiler, instruction);
|
vkd3d_dxbc_compiler_emit_ext_glsl_instruction(compiler, instruction);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user