Skip to content
  • Hein-Pieter van Braam-Stewart's avatar
    24e7a54c
    Fix alignment and locking issues with CommandQueueMT · 24e7a54c
    Hein-Pieter van Braam-Stewart authored
    The allocations of commands in CommandQueueMT weren't aligned. This
    commit aligns all accesses on 64bit boundaries regardless of target
    platform. This ensures that all types are aligned.
    
    Lock-wise the semaphores were maked as usable when the command had ran
    but not when the synchronous stub had finished with it. This lead to a
    race condition where sometimes the semaphore got reused before it was
    waited on. We now mark the semaphore as free only once we're done
    waiting on it.
    24e7a54c
    Fix alignment and locking issues with CommandQueueMT
    Hein-Pieter van Braam-Stewart authored
    The allocations of commands in CommandQueueMT weren't aligned. This
    commit aligns all accesses on 64bit boundaries regardless of target
    platform. This ensures that all types are aligned.
    
    Lock-wise the semaphores were maked as usable when the command had ran
    but not when the synchronous stub had finished with it. This lead to a
    race condition where sometimes the semaphore got reused before it was
    waited on. We now mark the semaphore as free only once we're done
    waiting on it.
Loading