intel: sync to vblank by default
authorJesse Barnes <jbarnes@hobbes.lan>
Thu, 31 Jul 2008 18:50:37 +0000 (11:50 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 31 Jul 2008 18:50:37 +0000 (11:50 -0700)
Effectively default to vblank_mode=3 on Intel to avoid tearing by default.
Users wanting to go "as fast as possible" (despite not being able to see frames
faster than their refresh rate allows) can still set the vblank_mode manually.

src/mesa/drivers/dri/intel/intel_screen.c

index 5233e58fc962b6433318a9a7993f334bfd5b4e72..5dded4b16737351285cd9cb8e395ee2ed203037d 100644 (file)
@@ -55,7 +55,7 @@ PUBLIC const char __driConfigOptions[] =
    DRI_CONF_BEGIN
    DRI_CONF_SECTION_PERFORMANCE
       DRI_CONF_FTHROTTLE_MODE(DRI_CONF_FTHROTTLE_IRQS)
-      DRI_CONF_VBLANK_MODE(DRI_CONF_VBLANK_DEF_INTERVAL_0)
+      DRI_CONF_VBLANK_MODE(DRI_CONF_VBLANK_ALWAYS_SYNC)
       /* Options correspond to DRI_CONF_BO_REUSE_DISABLED,
        * DRI_CONF_BO_REUSE_ALL
        */