mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 07:15:30 +03: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: {
|
||||
switch (info.counterType) {
|
||||
case type::SemaphoreInfo::CounterType::Zero:
|
||||
channelCtx.executor.Submit([=, this, semaphore = *registers.semaphore]() {
|
||||
WriteSemaphoreResult(semaphore, semaphore.payload);
|
||||
});
|
||||
WriteSemaphoreResult(*registers.semaphore, registers.semaphore->payload);
|
||||
break;
|
||||
case type::SemaphoreInfo::CounterType::SamplesPassed:
|
||||
// Return a fake result for now
|
||||
WriteSemaphoreResult(*registers.semaphore, 0xffffff);
|
||||
break;
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user