Depth scale functions: Clean up the naming, add a failing test

This commit is contained in:
Henrik Rydgård committed 2023-02-10 14:57:45 +01:00
1 parent d426ce5118
commit d65dae7185
16 files changed
+123 -69

No files matched your search

+1 -1
View File
@@ -454,7 +454,7 @@ void SoftwareTransform::Decode(int prim, u32 vertType, const DecVtxFormat &decVt
if (matchingComponents && stencilNotMasked) {
result->color = transformed[1].color0_32;
// Need to rescale from a [0, 1] float. This is the final transformed value.
result->depth = ToScaledDepthFromIntegerScale((int)(transformed[1].z * 65535.0f));
result->depth = ToScaledDepthFromIntegerScale(gstate_c.UseFlags(), (int)(transformed[1].z * 65535.0f));
result->action = SW_CLEAR;
gpuStats.numClears++;
return;