diff --git a/GPU/Common/SoftwareTransformCommon.cpp b/GPU/Common/SoftwareTransformCommon.cpp index 5c29975a3d..1d824905b7 100644 --- a/GPU/Common/SoftwareTransformCommon.cpp +++ b/GPU/Common/SoftwareTransformCommon.cpp @@ -558,7 +558,7 @@ void SoftwareTransform::CalcCullParams(float &minZValue, float &maxZValue) const maxZValue = 1.000030517578125f * gstate_c.vpDepthScale; minZValue = -maxZValue; // Scale and offset the Z appropriately, since we baked that into a projection transform. - if (params_.usesHalfZ) { + if (true) { // all backends are "use half z" now maxZValue = maxZValue * 0.5f + 0.5f + gstate_c.vpZOffset * 0.5f; minZValue = minZValue * 0.5f + 0.5f + gstate_c.vpZOffset * 0.5f; } else { diff --git a/GPU/Common/SoftwareTransformCommon.h b/GPU/Common/SoftwareTransformCommon.h index e90a74f2b6..c3e003c551 100644 --- a/GPU/Common/SoftwareTransformCommon.h +++ b/GPU/Common/SoftwareTransformCommon.h @@ -58,8 +58,6 @@ struct SoftwareTransformParams { TextureCacheCommon *texCache; bool allowClear; bool allowSeparateAlphaClear; - bool flippedY; - bool usesHalfZ; }; // Converts an index buffer to make the provoking vertex the last. diff --git a/GPU/D3D11/DrawEngineD3D11.cpp b/GPU/D3D11/DrawEngineD3D11.cpp index cc14e712f3..3e68a83d32 100644 --- a/GPU/D3D11/DrawEngineD3D11.cpp +++ b/GPU/D3D11/DrawEngineD3D11.cpp @@ -406,8 +406,6 @@ void DrawEngineD3D11::Flush() { params.texCache = textureCache_; params.allowClear = true; params.allowSeparateAlphaClear = false; // D3D11 doesn't support separate alpha clears - params.flippedY = false; - params.usesHalfZ = true; if (gstate.getShadeMode() == GE_SHADE_FLAT) { // We need to rotate the index buffer to simulate a different provoking vertex. diff --git a/GPU/GLES/DrawEngineGLES.cpp b/GPU/GLES/DrawEngineGLES.cpp index 4728c57083..e2d715e3d8 100644 --- a/GPU/GLES/DrawEngineGLES.cpp +++ b/GPU/GLES/DrawEngineGLES.cpp @@ -351,8 +351,6 @@ void DrawEngineGLES::Flush() { params.texCache = textureCache_; params.allowClear = true; // Clear in OpenGL respects scissor rects, so we'll use it. params.allowSeparateAlphaClear = true; - params.flippedY = framebufferManager_->UseBufferedRendering(); - params.usesHalfZ = false; // We need correct viewport values in gstate_c already. if (gstate_c.IsDirty(DIRTY_VIEWPORTSCISSOR_STATE)) { diff --git a/GPU/Vulkan/DrawEngineVulkan.cpp b/GPU/Vulkan/DrawEngineVulkan.cpp index 7ba0c615a5..dbaaac7111 100644 --- a/GPU/Vulkan/DrawEngineVulkan.cpp +++ b/GPU/Vulkan/DrawEngineVulkan.cpp @@ -420,8 +420,6 @@ void DrawEngineVulkan::Flush() { IndexBufferProvokingLastToFirst(prim, inds, vertexCount); } } - params.flippedY = true; - params.usesHalfZ = true; // We need to update the viewport early because it's checked for flipping in SoftwareTransform. // We don't have a "DrawStateEarly" in vulkan, so...