Skip to content
Browse files

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

Texture data may be corrupted in this case due to missing
fences synchronization.
  • Loading branch information...
AlessandroVetere authored and lightningterror committed Aug 16, 2019
1 parent 63982bf commit 6feb59fef51411469802aab58855d73f652f9d85
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugins/GSdx/Renderers/OpenGL/GSTextureOGL.cpp
@@ -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);

0 comments on commit 6feb59f

Please sign in to comment.
You can’t perform that action at this time.