mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
gpu: keep the old signal strategy for null pointer
previous commits changes the behaviour of interrupt when meeting invalid params. Regresses to the same behaviour as before needs more hwtest
This commit is contained in:
parent
48470e57fc
commit
30ab0fa45d
1 changed files with 8 additions and 4 deletions
|
@ -416,10 +416,14 @@ inline void Write(u32 addr, const T data) {
|
||||||
LOG_TRACE(HW_GPU, "MemoryFill from 0x%08x to 0x%08x", config.GetStartAddress(),
|
LOG_TRACE(HW_GPU, "MemoryFill from 0x%08x to 0x%08x", config.GetStartAddress(),
|
||||||
config.GetEndAddress());
|
config.GetEndAddress());
|
||||||
|
|
||||||
if (!is_second_filler) {
|
// It seems that it won't signal interrupt if "address_start" is zero.
|
||||||
GSP_GPU::SignalInterrupt(GSP_GPU::InterruptId::PSC0);
|
// TODO: hwtest this
|
||||||
} else {
|
if (config.GetStartAddress() != 0) {
|
||||||
GSP_GPU::SignalInterrupt(GSP_GPU::InterruptId::PSC1);
|
if (!is_second_filler) {
|
||||||
|
GSP_GPU::SignalInterrupt(GSP_GPU::InterruptId::PSC0);
|
||||||
|
} else {
|
||||||
|
GSP_GPU::SignalInterrupt(GSP_GPU::InterruptId::PSC1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset "trigger" flag and set the "finish" flag
|
// Reset "trigger" flag and set the "finish" flag
|
||||||
|
|
Loading…
Reference in a new issue