mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-12 09:09:47 +12:00
[PICA] Add depth buffer format reg
This commit is contained in:
parent
c02cf794fe
commit
f9669ce79c
2 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,7 @@ namespace PICAInternalRegs {
|
||||||
BlendColour = 0x103,
|
BlendColour = 0x103,
|
||||||
AlphaTestConfig = 0x104,
|
AlphaTestConfig = 0x104,
|
||||||
DepthAndColorMask = 0x107,
|
DepthAndColorMask = 0x107,
|
||||||
|
DepthBufferFormat = 0x116,
|
||||||
ColourBufferFormat = 0x117,
|
ColourBufferFormat = 0x117,
|
||||||
DepthBufferLoc = 0x11C,
|
DepthBufferLoc = 0x11C,
|
||||||
ColourBufferLoc = 0x11D,
|
ColourBufferLoc = 0x11D,
|
||||||
|
|
|
@ -77,6 +77,12 @@ void GPU::writeInternalReg(u32 index, u32 value, u32 mask) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case DepthBufferFormat: {
|
||||||
|
u32 fmt = value & 0x3;
|
||||||
|
renderer.setDepthFormat(fmt);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case FramebufferSize: {
|
case FramebufferSize: {
|
||||||
const u32 width = value & 0x7ff;
|
const u32 width = value & 0x7ff;
|
||||||
const u32 height = ((value >> 12) & 0x3ff) + 1;
|
const u32 height = ((value >> 12) & 0x3ff) + 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue