summaryrefslogtreecommitdiff
path: root/src/qxl_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qxl_driver.c')
-rw-r--r--src/qxl_driver.c4
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)