Skip to content

Commit 9732026

Browse files
abairemborgerson
authored andcommitted
nv2a: Ignore unsupported depth funcs to match HW
1 parent 26c451f commit 9732026

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hw/xbox/nv2a/pgraph/pgraph.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,8 +1411,10 @@ DEF_METHOD(NV097, SET_BLEND_EQUATION)
14111411

14121412
DEF_METHOD(NV097, SET_DEPTH_FUNC)
14131413
{
1414-
PG_SET_MASK(NV_PGRAPH_CONTROL_0, NV_PGRAPH_CONTROL_0_ZFUNC,
1415-
parameter & 0xF);
1414+
if (parameter >= 0x200 && parameter <= 0x207) {
1415+
PG_SET_MASK(NV_PGRAPH_CONTROL_0, NV_PGRAPH_CONTROL_0_ZFUNC,
1416+
parameter & 0xF);
1417+
}
14161418
}
14171419

14181420
DEF_METHOD(NV097, SET_COLOR_MASK)

0 commit comments

Comments
 (0)