mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
softgpu: Minor opt, ignore unused z_stride.
This commit is contained in:
parent
58a4376998
commit
0be891c7ff
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user