softgpu: Minor opt, ignore unused z_stride.

This commit is contained in:
Unknown W. Brackets 2022-10-02 21:31:07 -07:00
parent 58a4376998
commit 0be891c7ff

View File

@ -56,7 +56,7 @@ void ComputePixelFuncID(PixelFuncID *id) {
// Dither happens even in clear mode.
id->dithering = gstate.isDitherEnabled();
id->fbFormat = gstate.FrameBufFormat();
id->useStandardStride = gstate.FrameBufStride() == 512 && gstate.DepthBufStride() == 512;
id->useStandardStride = gstate.FrameBufStride() == 512;
id->applyColorWriteMask = gstate.getColorMask() != 0;
id->clearMode = gstate.isModeClear();
@ -187,6 +187,9 @@ void ComputePixelFuncID(PixelFuncID *id) {
}
}
if (id->useStandardStride && (id->depthTestFunc != GE_COMP_ALWAYS || id->depthWrite))
id->useStandardStride = gstate.DepthBufStride() == 512;
// Cache some values for later convenience.
if (id->dithering) {
for (int y = 0; y < 4; ++y) {