sna: Only instantiate the frontbuffer on the GPU if used

Graphics / X.Org / xf86-video-intel - Chris Wilson [chris-wilson.co.uk] - 13 January 2015 10:30 UTC

If we are a PRIME slave, we never need to allocate any memory for the frontbuffer, so skip the forced allocation during modesets.

3cfde9f sna: Only instantiate the frontbuffer on the GPU if used
src/compat-api.h | 6 ++++
src/sna/sna_display.c | 89 +++++++++++++++++++++++++++++++++----------------
2 files changed, 67 insertions(+), 28 deletions(-)

Upstream: cgit.freedesktop.org


  • Share