From 45e2b51c853471b79004a954ce3092a253b20b77 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Thu, 22 Apr 2010 12:49:03 -0700 Subject: DRI2/GLX: check for vblank_mode in DRI2 GLX code Re-add support for the vblank_mode environment and configuration variable. Useful for benchmarking and app control. --- src/mesa/drivers/dri/common/dri_util.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 16d4cc5e17..8b3d8c27ce 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -31,6 +31,17 @@ #include "dri_util.h" #include "drm_sarea.h" #include "utils.h" +#include "vblank.h" +#include "xmlpool.h" + +PUBLIC const char __dri2ConfigOptions[] = + DRI_CONF_BEGIN + DRI_CONF_SECTION_PERFORMANCE + DRI_CONF_VBLANK_MODE(DRI_CONF_VBLANK_DEF_INTERVAL_1) + DRI_CONF_SECTION_END + DRI_CONF_END; + +static const uint __dri2NConfigOptions = 1; #ifndef GLX_OML_sync_control typedef GLboolean ( * PFNGLXGETMSCRATEOMLPROC) (__DRIdrawable *drawable, int32_t *numerator, int32_t *denominator); -- cgit v1.2.3