vkd3d-shader: Emit NoContraction for MAD/DFMA.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2021-06-17 13:38:51 +02:00
parent 5c971f216e
commit 8589a425fe
1 changed files with 3 additions and 0 deletions

View File

@ -7633,6 +7633,9 @@ static void vkd3d_dxbc_compiler_emit_ext_glsl_instruction(struct vkd3d_dxbc_comp
vkd3d_dxbc_compiler_get_constant_uint(compiler, 31), val_id);
}
if (glsl_inst == GLSLstd450Fma && (instruction->flags & VKD3DSI_PRECISE_XYZW))
vkd3d_spirv_build_op_decorate(builder, val_id, SpvDecorationNoContraction, NULL, 0);
vkd3d_dxbc_compiler_emit_store_dst(compiler, dst, val_id);
}