abaire / nxdk_pgraph_tests

Tests to verify xemu handling of various pushbuffer commands
Other
12 stars 8 forks source link

Accidental ordering dependency between texture_format_tests and other tests #10

Closed abaire closed 2 years ago

abaire commented 2 years ago

Running texture_format_tests after any of the untextured pixelshader tests (currently every other tests) will break the test such that it displays a blank quad instead of a textured one.

abaire commented 2 years ago

Looks like it's not actually sending any geometry the second time it runs the test, there are no 0x17fc calls.

abaire commented 2 years ago

Correction, it's sending geometry, but the shader is not getting recompiled so it's using a non-textured shader.

abaire commented 2 years ago

Fixed by setting the depth buffer to z24s8. Not clear why this is necessary or why it triggers the fix, but given that it was broken on both xemu and hardware this is probably just a gap in my knowledge of how to load the shaders properly.