diff options
author | Carlo Caione <carlo@endlessm.com> | 2017-09-01 12:47:23 +0200 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2019-10-12 20:45:34 -0400 |
commit | a5f04582cecb1a649bb46b8af9f2889247788d00 (patch) | |
tree | 855bc88046e7c8e9747bd7a9d7a2c0d8e2334058 | |
parent | ec2b45d1bf4c31c5420b48c213bf9ee1656adf9d (diff) | |
download | xorg-driver-xf86-video-nouveau-a5f04582cecb1a649bb46b8af9f2889247788d00.tar.gz |
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 <carlo@endlessm.com>
-rw-r--r-- | src/nv_driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c index 2f8c89c..42eb9db 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -1371,6 +1371,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); |