GSdx-hw OGL: log if tex size gt PBO segment size.

Texture data may be corrupted in this case due to missing
fences synchronization.
This commit is contained in:
Alessandro Vetere 2019-08-16 15:52:37 +02:00 committed by lightningterror
parent 63982bf6b7
commit 6feb59fef5

View File

@ -121,6 +121,11 @@ namespace PboPool {
// Align current transfer on the start of the segment
m_offset = m_seg_size * segment_next;
if (m_size > m_seg_size) {
fprintf(stderr, "BUG: PBO Map size %u is bigger than a single segment %u. Crossing more than one fence is not supported yet, texture data may be corrupted.\n", m_size, m_seg_size);
// TODO Synchronize all crossed fences
}
// protect the left segment
m_fence[segment_current] = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);