[amdgpu/device] Ignore black surface flip

This commit is contained in:
DH 2023-06-30 17:10:22 +03:00
parent 1c480cd3f3
commit e3444b4fc2

View file

@ -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;