2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

gl_shader_decompiler: Fixup AMD's slow path type

This commit is contained in:
ReinUsesLisp 2019-08-30 18:32:17 -03:00
parent 6c449793b8
commit 03276e7490

View file

@ -830,7 +830,7 @@ private:
final_offset); final_offset);
const std::string result = code.GenerateTemporary(); const std::string result = code.GenerateTemporary();
code.AddLine("float {};", result); code.AddLine("uint {};", result);
for (u32 swizzle = 0; swizzle < 4; ++swizzle) { for (u32 swizzle = 0; swizzle < 4; ++swizzle) {
code.AddLine("if (({} & 3) == {}) {} = {}{};", final_offset, swizzle, result, code.AddLine("if (({} & 3) == {}) {} = {}{};", final_offset, swizzle, result,
pack, GetSwizzle(swizzle)); pack, GetSwizzle(swizzle));