Skip to content
  • Rob Clark's avatar
    freedreno: handle batch flush in resource tracking · 7c008c29
    Rob Clark authored
    In rare cases, we can get into situations where the tracking of read/
    written resources triggers a flush of the current batch.
    
    To handle that, (1) take a reference to the current batch, so it doesn't
    disappear under us, and (2) check after resource tracking whether the
    current batch was flushed.  If it is, we have to re-do the resource
    tracking, but since we have a fresh batch, it should not get flushed the
    second time around.
    
    Closes: #3160
    
    
    Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
    Part-of: <!5634>
    7c008c29