Skip to content
  • Emma Anholt's avatar
    freedreno: Fix batch reference handling in flush_resource(). · fd571565
    Emma Anholt authored
    We take references under the lock, but then accessed the lock-requiring
    batch_cache structure without holding the lock.  The batches wouldn't get
    freed and removed from their slots until the last ref goes away so it was
    safe (other than the assert at the end), but writing the simple code is
    shorter and requires fewer assumptions.
    
    Part-of: <mesa/mesa!11439>
    fd571565