summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2013-03-28 08:44:48 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2013-04-02 06:54:10 -0400
commit6b5df7bb359b548b65033b16ac539bf3dd91793a (patch)
treea4d283de10caea06bd538d2af890ee03d6ca8578
parent3cbd14b93925c70f32a132082a8eae59380ec4bf (diff)
Add new DebugRenderFallbacks option
This option defaults to off. When enabled, uxa_set_fallback_debug() is set to true. Later on more debug information may be turned on conditional on this option.
-rw-r--r--src/qxl.h2
-rw-r--r--src/qxl_driver.c14
2 files changed, 10 insertions, 6 deletions
diff --git a/src/qxl.h b/src/qxl.h
index 2d170a9..1425648 100644
--- a/src/qxl.h
+++ b/src/qxl.h
@@ -104,6 +104,7 @@ enum {
OPTION_ENABLE_IMAGE_CACHE = 0,
OPTION_ENABLE_FALLBACK_CACHE,
OPTION_ENABLE_SURFACES,
+ OPTION_DEBUG_RENDER_FALLBACKS,
OPTION_NUM_HEADS,
OPTION_SPICE_DEFERRED_FPS,
#ifdef XSPICE
@@ -277,6 +278,7 @@ struct _qxl_screen_t
int enable_image_cache;
int enable_fallback_cache;
int enable_surfaces;
+ int debug_render_fallbacks;
FrameTimer * frames_timer;
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index ae898b6..f847c12 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -77,6 +77,8 @@ const OptionInfoRec DefaultOptions[] =
"EnableFallbackCache", OPTV_BOOLEAN, { 1 }, FALSE },
{ OPTION_ENABLE_SURFACES,
"EnableSurfaces", OPTV_BOOLEAN, { 1 }, FALSE },
+ { OPTION_DEBUG_RENDER_FALLBACKS,
+ "DebugRenderFallbacks", OPTV_BOOLEAN, { 0 }, FALSE },
{ OPTION_NUM_HEADS,
"NumHeads", OPTV_INTEGER, { 4 }, FALSE },
{ OPTION_SPICE_DEFERRED_FPS,
@@ -742,9 +744,7 @@ qxl_screen_init (SCREEN_INIT_ARGS_DECL)
qxl_uxa_init (qxl, pScreen);
-#if 0
- uxa_set_fallback_debug(pScreen, TRUE);
-#endif
+ uxa_set_fallback_debug (pScreen, qxl->debug_render_fallbacks);
DamageSetup (pScreen);
@@ -962,11 +962,13 @@ qxl_pre_init_common(ScrnInfoPtr pScrn)
xf86ProcessOptions (scrnIndex, pScrn->options, qxl->options);
qxl->enable_image_cache =
- get_bool_option(qxl->options, OPTION_ENABLE_IMAGE_CACHE, "QXL_ENABLE_IMAGE_CACHE");
+ get_bool_option (qxl->options, OPTION_ENABLE_IMAGE_CACHE, "QXL_ENABLE_IMAGE_CACHE");
qxl->enable_fallback_cache =
- get_bool_option(qxl->options, OPTION_ENABLE_FALLBACK_CACHE, "QXL_ENABLE_FALLBACK_CACHE");
+ get_bool_option (qxl->options, OPTION_ENABLE_FALLBACK_CACHE, "QXL_ENABLE_FALLBACK_CACHE");
qxl->enable_surfaces =
- get_bool_option(qxl->options, OPTION_ENABLE_SURFACES, "QXL_ENABLE_SURFACES");
+ get_bool_option (qxl->options, OPTION_ENABLE_SURFACES, "QXL_ENABLE_SURFACES");
+ qxl->debug_render_fallbacks =
+ 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");