Skip to content
  • Chris Wilson's avatar
    evictions: Limit the number of minor eviction surfaces to fit in RAM · 8c475e0b
    Chris Wilson authored
    
    
    We allocate more surfaces than used in a single pass in order to stress
    the eviction code between batches. The intent here is not to exercise
    swapping, and we fail to check that there is enough swap+memory to hold
    all our surfaces. So limit the number of surfaces we allocate to fit
    into RAM, and then require that the number of surfaces we need for
    testing is less than the number of surfaces we can allocate.
    
    Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    8c475e0b