diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-06-29 05:44:03 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:40 +0200 |
commit | 2e5af95541adf581364ee3864be57f9b2b9a230f (patch) | |
tree | 939e3d203ecc1ea98fae168745004c28cdb9b007 /src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp | |
parent | shader: Account for 33-bit IADD3 scenario (diff) | |
download | yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar.gz yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar.bz2 yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar.lz yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar.xz yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar.zst yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp index d5424301b..580063fa9 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_context_get_set.cpp @@ -61,14 +61,14 @@ void GetCbuf(EmitContext& ctx, std::string_view ret, const IR::Value& binding, : fmt ::format("bitfieldExtract({},int({}),{})", cbuf_cast, bit_offset, num_bits)}; if (!component_indexing_bug) { - const auto result{fmt::format(extraction, swizzle)}; + const auto result{fmt::format(fmt::runtime(extraction), swizzle)}; ctx.Add("{}={};", ret, result); return; } const auto cbuf_offset{fmt::format("{}>>2", offset_var)}; for (u32 i = 0; i < 4; ++i) { const auto swizzle_string{fmt::format(".{}", "xyzw"[i])}; - const auto result{fmt::format(extraction, swizzle_string)}; + const auto result{fmt::format(fmt::runtime(extraction), swizzle_string)}; ctx.Add("if(({}&3)=={}){}={};", cbuf_offset, i, ret, result); } } |