[PATCH 2/2] DRI2SwapBuffers: Fix uninitialized target SBC.

2014-04-18 Thread Jamey Sharp
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,

Re: [PATCH 2/2] DRI2SwapBuffers: Fix uninitialized target SBC.

2014-04-18 Thread Keith Packard
Jamey Sharp ja...@minilop.net writes: 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