[xorg 3/3] dri2: Reuse unused flags in GetBuffers protocol to pass last SBC

Chris Wilson chris at chris-wilson.co.uk
Mon Jan 19 06:14:26 PST 2015


On Mon, Jan 19, 2015 at 11:00:40AM +0000, Chris Wilson wrote:
> @@ -1104,6 +1107,8 @@ DRI2SwapBuffers(ClientPtr client, DrawablePtr pDraw, CARD64 target_msc,
>       * it as early as possible, just to be sure.
>       */
>      *swap_target = pPriv->swap_count + pPriv->swapsPending + 1;
> +    if (ds->bufferAge)
> +        pSrcBuffer->flags = *swap_target;

I made the cardinal sin of trying to tidy the patch up at the last
moment and moved this hunk before the definition of pSrcBuffer.

Sighs.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the xorg-devel mailing list