Merge pull request #277 from magumagu/videocommon-fix-tev
VideoCommon: fix rounding in TEV.
This commit is contained in:
commit
9203862a9e
|
@ -876,7 +876,7 @@ static inline void WriteTevRegular(T& out, const char* components, int bias, int
|
||||||
out.Write(" %s ", tevOpTable[op]);
|
out.Write(" %s ", tevOpTable[op]);
|
||||||
out.Write("((((tevin_a.%s*256 + (tevin_b.%s-tevin_a.%s)*(tevin_c.%s+(tevin_c.%s>>7)))%s)%s)>>8)",
|
out.Write("((((tevin_a.%s*256 + (tevin_b.%s-tevin_a.%s)*(tevin_c.%s+(tevin_c.%s>>7)))%s)%s)>>8)",
|
||||||
components, components, components, components, components,
|
components, components, components, components, components,
|
||||||
tevScaleTableLeft[shift], tevLerpBias[2*op+(shift==3)]);
|
tevScaleTableLeft[shift], tevLerpBias[2*op+(shift!=3)]);
|
||||||
out.Write(")%s", tevScaleTableRight[shift]);
|
out.Write(")%s", tevScaleTableRight[shift]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue