From dd2e11da5f2e9b3adccc35f69dcc26ef7cdbde1d Mon Sep 17 00:00:00 2001 From: Carlo Caione Date: Fri, 1 Sep 2017 12:47:23 +0200 Subject: [PATCH] Don't advertise any PRIME offloading capabilities without acceleration Acceleration is required even for display offloading. Trying to enable display offloading without acceleration resulted in a crash. https://bugs.freedesktop.org/show_bug.cgi?id=101220 Signed-off-by: Carlo Caione --- src/nv_driver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nv_driver.c b/src/nv_driver.c index 32062eb..6598d28 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -1367,6 +1367,9 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL) pNv->ShadowFB = TRUE; pNv->wfb_enabled = FALSE; pNv->tiled_scanout = FALSE; + pScrn->capabilities &= ~(RR_Capability_SourceOutput | + RR_Capability_SourceOffload | + RR_Capability_SinkOutput); pScrn->displayWidth = nv_pitch_align(pNv, pScrn->virtualX, pScrn->depth); -- 2.13.3