diff options
author | Joachim Breuer <git@jmbreuer.net> | 2022-04-12 19:35:21 +0200 |
---|---|---|
committer | Joachim Breuer <git@jmbreuer.net> | 2022-04-12 20:06:36 +0200 |
commit | ca70ff93dd8bbf35104d0f48b23a81aebf58bfac (patch) | |
tree | 4254a11be9de731e4743e9b3d00d29c7c399c841 | |
parent | 9d0ddb12cb74a04ccd007ad884137a4fdaf39b44 (diff) |
Default to one head if there is no NUM_HEADS option
-rw-r--r-- | src/qxl_driver.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c index 009e79a..2c38e2d 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -1005,6 +1005,10 @@ qxl_pre_init_common(ScrnInfoPtr pScrn) get_bool_option (qxl->options, OPTION_DEBUG_RENDER_FALLBACKS, "QXL_DEBUG_RENDER_FALLBACKS"); qxl->num_heads = get_int_option (qxl->options, OPTION_NUM_HEADS, "QXL_NUM_HEADS"); + if (qxl->num_heads == 0) { + xf86DrvMsg (scrnIndex, X_INFO, "QXL_NUM_HEADS not configured, defaulting to 1\n"); + qxl->num_heads = 1; + } qxl->deferred_fps = get_int_option(qxl->options, OPTION_SPICE_DEFERRED_FPS, "XSPICE_DEFERRED_FPS"); if (qxl->deferred_fps > 0) |