diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-28 11:29:13 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-28 13:16:12 +0000 |
commit | 003f26a571cd0a0eda2499b4ae350c34bdb39b72 (patch) | |
tree | 3d86cfdec3750ab21837303c91b354b0d3fc4e0d /src | |
parent | 671e4b44b2b2809e032a3d2a9b45ecf3af547100 (diff) |
sna: And be pessimistic when checking aperture limits
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/kgem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 8659765f..0f5b9abb 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -4646,6 +4646,7 @@ static bool aperture_check(struct kgem *kgem, unsigned num_pages) if (!kgem->has_llc) aperture.aper_available_size -= 2 * kgem->nexec * PAGE_SIZE; + aperture.aper_available_size -= aperture.aper_size - aperture.aper_available_size; if (num_pages < aperture.aper_available_size / PAGE_SIZE) return true; } |