diff options
author | Kenneth Graunke <[email protected]> | 2019-10-03 12:16:50 -0400 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-10-05 13:19:37 +0000 |
commit | 396b41095944ea3675d30c0d47ca8c01db2b4c8f (patch) | |
tree | 807a7eee77b471057965f353292666979995e243 /src/glx | |
parent | 72beda4fb451d35fdda60f015f370c24af114ccf (diff) |
dri: Avoid swapbuffer throttling in glXCopySubBufferMESA
We were supplying __DRI2_THROTTLE_SWAPBUFFER, rather than the obvious
choice of __DRI2_THROTTLE_COPYSUBBUFFER. This meant that we hit the
swap-based frame throttling. glXCopySubBuffer doesn't seem like it's
intended to be a frame boundary, so we'd like to avoid this throttling.
Tested-by: Michel Dänzer <[email protected]> # DRI3 only
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/dri2_glx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index d2a9c881357..9c222d81312 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -599,7 +599,7 @@ __dri2CopySubBuffer(__GLXDRIdrawable *pdraw, int x, int y, flags = __DRI2_FLUSH_DRAWABLE; if (flush) flags |= __DRI2_FLUSH_CONTEXT; - dri2Flush(psc, ctx, priv, flags, __DRI2_THROTTLE_SWAPBUFFER); + dri2Flush(psc, ctx, priv, flags, __DRI2_THROTTLE_COPYSUBBUFFER); region = XFixesCreateRegion(psc->base.dpy, &xrect, 1); DRI2CopyRegion(psc->base.dpy, pdraw->xDrawable, region, |