abaire / nxdk_pgraph_tests

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

Read nv2a registers before and after test, dump diff #52

Open abaire opened 2 years ago

abaire commented 2 years ago

It'd be useful to show which registers are modified by each test. Add a mechanism to capture the register state before tests are invoked, capture it again afterwards, and dump the delta.

Consider saving the full set of registers and just flagging the changed ones so we can detect non-hermetic test situations where they're inadvertently order dependent.

abaire commented 2 years ago

From Matt's response in XboxDev: https://discord.com/channels/428359196719972353/428359434230693899/936355989148545084

Look at https://github.com/XboxDev/nv2a-trace/blob/7152929ff4cd3ef1c3d711cdb049e94b3eca1edc/Trace.py#L35