diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-11 05:18:24 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:35 +0200 |
commit | 8554a644df7ad909e418f3e96016e95abc55712f (patch) | |
tree | 2f87cc57dd6adaaff71f925327de324d106a9255 /src/shader_recompiler/backend/spirv | |
parent | gl_buffer_cache: Use unorm internal formats for snorm texture buffer views (diff) | |
download | yuzu-8554a644df7ad909e418f3e96016e95abc55712f.tar yuzu-8554a644df7ad909e418f3e96016e95abc55712f.tar.gz yuzu-8554a644df7ad909e418f3e96016e95abc55712f.tar.bz2 yuzu-8554a644df7ad909e418f3e96016e95abc55712f.tar.lz yuzu-8554a644df7ad909e418f3e96016e95abc55712f.tar.xz yuzu-8554a644df7ad909e418f3e96016e95abc55712f.tar.zst yuzu-8554a644df7ad909e418f3e96016e95abc55712f.zip |
Diffstat (limited to 'src/shader_recompiler/backend/spirv')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_convert.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_convert.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_convert.cpp index fd74e475f..2c4250a0c 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_convert.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_convert.cpp @@ -205,6 +205,9 @@ Id EmitConvertF32S16(EmitContext& ctx, Id value) { } Id EmitConvertF32S32(EmitContext& ctx, Id value) { + if (ctx.profile.has_broken_signed_operations) { + value = ctx.OpBitcast(ctx.S32[1], value); + } return ctx.OpConvertSToF(ctx.F32[1], value); } @@ -237,6 +240,9 @@ Id EmitConvertF64S16(EmitContext& ctx, Id value) { } Id EmitConvertF64S32(EmitContext& ctx, Id value) { + if (ctx.profile.has_broken_signed_operations) { + value = ctx.OpBitcast(ctx.S32[1], value); + } return ctx.OpConvertSToF(ctx.F64[1], value); } |