Skip to content
  • Dave Airlie's avatar
    r600/eg: rework atomic counter emission with flushes · 32529e60
    Dave Airlie authored
    With the current code, we didn't do the space checks prior
    to atomic counter setup emission, but we also didn't add
    atomic counters to the space check so we could get a flush
    later as well.
    
    These flushes would be bad, and lead to problems with
    parallel tests. We have to ensure the atomic counter copy in,
    draw emits and counter copy out are kept in the same command
    submission unit.
    
    This reworks the code to drop some useless masks, make the
    counting separate to the emits, and make the space checker
    handle atomic counter space.
    
    [airlied: want this in 18.2]
    
    Fixes: 06993e4e (r600: add support for hw atomic counters. (v3))
    32529e60