vk: add bumpmap flag to pipeline hash

Fixes disappearing pause menu text and green wooden boxes in Mat
Hoffmann's Pro BMX
Issue #878
This commit is contained in:
Flyinghead 2023-09-23 11:13:14 +02:00
parent dddd712f08
commit 39a212140a
2 changed files with 2 additions and 0 deletions

View File

@ -403,6 +403,7 @@ private:
hash |= (pp->isp.ZWriteDis << 20) | (pp->isp.CullMode << 21) | ((autosort ? 6 : pp->isp.DepthMode) << 23);
hash |= ((u32)gpuPalette << 26) | ((u32)pass << 27) | ((u32)pp->isNaomi2() << 29);
hash |= (u32)(!settings.platform.isNaomi2() && config::NativeDepthInterpolation) << 30;
hash |= (u32)(pp->tcw.PixelFmt == PixelBumpMap) << 31;
return hash;
}

View File

@ -272,6 +272,7 @@ private:
hash |= (pp->isp.ZWriteDis << 20) | (pp->isp.CullMode << 21) | (pp->isp.DepthMode << 23);
hash |= ((u32)sortTriangles << 26) | ((u32)gpuPalette << 27) | ((u32)pp->isNaomi2() << 28);
hash |= (u32)(!settings.platform.isNaomi2() && config::NativeDepthInterpolation) << 29;
hash |= (u32)(pp->tcw.PixelFmt == PixelBumpMap) << 30;
return hash;
}