sna: Last ditch attempt to make extra large batches fit

Graphics / X.Org / xf86-video-intel - Chris Wilson [chris-wilson.co.uk] - 15 September 2014 05:41 UTC

If we have unfortunate fragmentation, e.g. a cursor is pinned in the middle of an aperture, we can struggle to fit large objects, especially fenced objects on gen2/gen3. We do have one last trick up our sleeves that we can try: disable all of the outputs and cursors and try submitting the batch in as pristine an aperture as we can arrange. We can only hope that the subsequent restoration of the outputs is more conducive to future batches (and so not lead us into continual flicker).

d470f0f sna: Last ditch attempt to make extra large batches fit
src/sna/kgem.c | 25 +++++++++++++++++++++++--
src/sna/sna.h | 2 ++
src/sna/sna_display.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 71 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share