i965: Make a screen::aperture_threshold field.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 31 Mar 2017 05:27:42 +0000 (22:27 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Apr 2017 21:31:55 +0000 (14:31 -0700)
commit6368284a347d511f38109936d6a1b281e69ad782
tree83b1429007113d5fb87c29bc8636047f0c0bc379
parent6079f4f16e7711a02b85bcd4142ad1f24a4e0a9b
i965: Make a screen::aperture_threshold field.

This is the threshold after which drm_intel_bufmgr_check_aperture_space
returns -ENOSPC, signalling that it thinks an execbuf is likely to fail
and we need to roll back and flush the batch.

We'll need this when we rewrite aperture space checking, shortly.
In the meantime, we can also use it in GLX_MESA_query_renderer.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/i965/intel_screen.h