mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-29 14:54:16 +01:00
Fake maxwell occlusion query results
This commit is contained in:
parent
a92c26531e
commit
31fb6d30eb
@ -348,13 +348,15 @@ namespace skyline::soc::gm20b::engine::maxwell3d {
|
|||||||
case type::SemaphoreInfo::Op::Counter: {
|
case type::SemaphoreInfo::Op::Counter: {
|
||||||
switch (info.counterType) {
|
switch (info.counterType) {
|
||||||
case type::SemaphoreInfo::CounterType::Zero:
|
case type::SemaphoreInfo::CounterType::Zero:
|
||||||
channelCtx.executor.Submit([=, this, semaphore = *registers.semaphore]() {
|
WriteSemaphoreResult(*registers.semaphore, registers.semaphore->payload);
|
||||||
WriteSemaphoreResult(semaphore, semaphore.payload);
|
break;
|
||||||
});
|
case type::SemaphoreInfo::CounterType::SamplesPassed:
|
||||||
|
// Return a fake result for now
|
||||||
|
WriteSemaphoreResult(*registers.semaphore, 0xffffff);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
//Logger::Warn("Unsupported semaphore counter type: 0x{:X}", static_cast<u8>(info.counterType));
|
Logger::Warn("Unsupported semaphore counter type: 0x{:X}", static_cast<u8>(info.counterType));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user