xserver-multidpi/hw
Jamey Sharp 4927af4475 DRI2SwapBuffers: Don't reuse swap_target variable.
swap_target is an out-parameter that needs to be set to the value that
SBC will take on after this SwapBuffers request completes.

However, it was also being used as a temporary variable to hold the MSC
at which the SwapBuffers request got scheduled to occur. This confusion
makes it harder to reason about whether swap_target is being set
correctly for its out-parameter usage. (Hint: It isn't.)

For the latter use, it makes more sense to use the existing target_msc
variable, which already has the right value unless target_msc, divisor,
and remainder are all 0, in which case we can set it using swap_interval
as usual.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
2014-04-21 11:23:58 -07:00
..
dmx Build fbcmap_mi.c once, rather than once for each DDX 2014-03-27 14:34:06 +00:00
kdrive kdrive: Ignore failure to chown console tty to current user 2014-04-18 16:30:17 -07:00
vfb Build fbcmap_mi.c once, rather than once for each DDX 2014-03-27 14:34:06 +00:00
xfree86 DRI2SwapBuffers: Don't reuse swap_target variable. 2014-04-21 11:23:58 -07:00
xnest Build fbcmap_mi.c once, rather than once for each DDX 2014-03-27 14:34:06 +00:00
xquartz XQuartz: Ensure we wait for the server thread to terminate 2014-04-06 05:32:03 -07:00
xwayland Xwayland DDX 2014-04-03 15:19:22 -07:00
xwin Build fbcmap_mi.c once, rather than once for each DDX 2014-03-27 14:34:06 +00:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00