Skip to content
Permalink
Browse files

Merge pull request #2759 from Sonicadvance1/pvr_workaround2

Work around PowerVR's shader compiler.
  • Loading branch information...
Sonicadvance1 committed Jul 22, 2015
2 parents 6ee5ce3 + c1df6d7 commit 8bd108426e5ee049d4158e33c57b9563f41108ba
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/Core/VideoCommon/PixelShaderGen.cpp
@@ -923,9 +923,9 @@ static inline void WriteStage(T& out, pixel_shader_uid_data* uid_data, int n, AP
out.SetConstantsUsed(C_COLORS+ac.dest, C_COLORS+ac.dest);


out.Write("\ttevin_a = int4(%s, %s)&255;\n", tevCInputTable[cc.a], tevAInputTable[ac.a]);
out.Write("\ttevin_b = int4(%s, %s)&255;\n", tevCInputTable[cc.b], tevAInputTable[ac.b]);
out.Write("\ttevin_c = int4(%s, %s)&255;\n", tevCInputTable[cc.c], tevAInputTable[ac.c]);
out.Write("\ttevin_a = int4(%s, %s)&int4(255, 255, 255, 255);\n", tevCInputTable[cc.a], tevAInputTable[ac.a]);
out.Write("\ttevin_b = int4(%s, %s)&int4(255, 255, 255, 255);\n", tevCInputTable[cc.b], tevAInputTable[ac.b]);
out.Write("\ttevin_c = int4(%s, %s)&int4(255, 255, 255, 255);\n", tevCInputTable[cc.c], tevAInputTable[ac.c]);
out.Write("\ttevin_d = int4(%s, %s);\n", tevCInputTable[cc.d], tevAInputTable[ac.d]);

out.Write("\t// color combine\n");

0 comments on commit 8bd1084

Please sign in to comment.
You can’t perform that action at this time.