diff options
author | Dave Airlie <airlied@redhat.com> | 2017-03-08 10:50:56 +1000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2017-06-19 11:18:35 +0200 |
commit | ee8f904ab0d590c741e640e9548c472e6a58b3cc (patch) | |
tree | c4cf02264d66dcfee59dbb0e6a4175ae563101e0 | |
parent | 78abd5221f7efd87383aa357590efff083449aa3 (diff) |
qxl: call provider init
This prevents crashes when multiple QXL devices are configured in a VM.
https://bugzilla.redhat.com/show_bug.cgi?id=1428340
-rw-r--r-- | src/qxl_drmmode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qxl_drmmode.c b/src/qxl_drmmode.c index ff164cd..a2f84b1 100644 --- a/src/qxl_drmmode.c +++ b/src/qxl_drmmode.c @@ -938,6 +938,9 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int cpp) for (i = 0; i < drmmode->mode_res->count_connectors; i++) drmmode_output_init(pScrn, drmmode, i); +#if XF86_CRTC_VERSION >= 5 + xf86ProviderSetup(pScrn, NULL, "qxl"); +#endif xf86InitialConfiguration(pScrn, TRUE); return TRUE; |