yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Merge pull request #3664 from ReinUsesLisp/fe3h-black-squares

Revert "gl_shader_decompiler: Implement merges with bitfieldInsert"
This commit is contained in:
Mat M 2020-04-15 03:14:28 -04:00 committed by GitHub
commit 13331a3a32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1821,13 +1821,15 @@ private:
Expression HMergeH0(Operation operation) { Expression HMergeH0(Operation operation) {
const std::string dest = VisitOperand(operation, 0).AsUint(); const std::string dest = VisitOperand(operation, 0).AsUint();
const std::string src = VisitOperand(operation, 1).AsUint(); const std::string src = VisitOperand(operation, 1).AsUint();
return {fmt::format("bitfieldInsert({}, {}, 0, 16)", dest, src), Type::Uint}; return {fmt::format("vec2(unpackHalf2x16({}).x, unpackHalf2x16({}).y)", src, dest),
Type::HalfFloat};
} }
Expression HMergeH1(Operation operation) { Expression HMergeH1(Operation operation) {
const std::string dest = VisitOperand(operation, 0).AsUint(); const std::string dest = VisitOperand(operation, 0).AsUint();
const std::string src = VisitOperand(operation, 1).AsUint(); const std::string src = VisitOperand(operation, 1).AsUint();
return {fmt::format("bitfieldInsert({}, {}, 16, 16)", dest, src), Type::Uint}; return {fmt::format("vec2(unpackHalf2x16({}).x, unpackHalf2x16({}).y)", dest, src),
Type::HalfFloat};
} }
Expression HPack2(Operation operation) { Expression HPack2(Operation operation) {