diff options
author | Jamey Sharp <jamey@minilop.net> | 2014-04-18 12:22:19 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-04-21 11:24:32 -0700 |
commit | 138bf5ac9703b410a6066c303feea067680edf5a (patch) | |
tree | d6867d335442d76b85efc772ac71734e37724856 /randr | |
parent | 4927af4475bc7d020190d9f468c90366525c1109 (diff) |
DRI2SwapBuffers: Fix uninitialized target SBC.
Fixes Piglit test "swapbuffersmsc-return swap_interval 0".
Ensure that *swap_target gets initialized on any 'return Success' path,
even if the swap request can't be completed by the driver and the server
falls back to a simple blit. That path can also be triggered by setting
swap_interval to 0, which disables sync to vertical retrace.
We originally found this bug because for some reason SDL2 automatically
sets swap_interval to 0, when we were trying to test OML_sync_control in
an SDL2 test application. We then discovered that the above-mentioned
Piglit test has been failing for the same reason since it was
introduced.
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>
Diffstat (limited to 'randr')
0 files changed, 0 insertions, 0 deletions