[PICA] Add depth buffer format reg

This commit is contained in:
wheremyfoodat 2023-03-03 00:58:36 +02:00
parent c02cf794fe
commit f9669ce79c
2 changed files with 7 additions and 0 deletions

View file

@ -77,6 +77,12 @@ void GPU::writeInternalReg(u32 index, u32 value, u32 mask) {
break;
}
case DepthBufferFormat: {
u32 fmt = value & 0x3;
renderer.setDepthFormat(fmt);
break;
}
case FramebufferSize: {
const u32 width = value & 0x7ff;
const u32 height = ((value >> 12) & 0x3ff) + 1;