mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-16 21:51:17 +01:00
[amdgpu/device] Ignore black surface flip
This commit is contained in:
parent
1c480cd3f3
commit
e3444b4fc2
|
|
@ -4023,6 +4023,11 @@ bool amdgpu::device::AmdgpuDevice::handleFlip(
|
|||
|
||||
auto buffer = bridge->buffers[bufferIndex];
|
||||
|
||||
if (bufferIndex == ~static_cast<std::uint32_t>(0)) {
|
||||
// black surface, ignore for now
|
||||
return false;
|
||||
}
|
||||
|
||||
if (buffer.pitch == 0 || buffer.height == 0 || buffer.address == 0) {
|
||||
std::printf("Attempt to flip unallocated buffer\n");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue