Mesa (master): glx/dri2: set the __DRI2_FLUSH_DRAWABLE flag where it should be set
Marek Olšák
mareko at kemper.freedesktop.org
Fri Dec 7 13:23:28 UTC 2012
Module: Mesa
Branch: master
Commit: 5fb2b1f4d4d61ecd812eaedffaf6573fa9b808ee
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5fb2b1f4d4d61ecd812eaedffaf6573fa9b808ee
Author: Marek Olšák <maraeo at gmail.com>
Date: Mon Dec 3 05:15:11 2012 +0100
glx/dri2: set the __DRI2_FLUSH_DRAWABLE flag where it should be set
Sorry, I accidentally omitted this.
It only broke MLAA.
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/glx/dri2_glx.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index a6ab1bd..1b3cf2b 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -557,7 +557,8 @@ __dri2CopySubBuffer(__GLXDRIdrawable *pdraw, int x, int y,
xrect.height = height;
if (psc->f && psc->f->base.version >= 4) {
- unsigned flags = flush ? __DRI2_FLUSH_CONTEXT : 0;
+ unsigned flags = (flush ? __DRI2_FLUSH_CONTEXT : 0) |
+ __DRI2_FLUSH_DRAWABLE;
__DRIcontext *ctx = dri2GetCurrentContext();
if (ctx) {
@@ -815,7 +816,8 @@ dri2SwapBuffers(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor,
__DRI2_THROTTLE_SWAPBUFFER, flush);
} else {
if (psc->f && psc->f->base.version >= 4) {
- unsigned flags = flush ? __DRI2_FLUSH_CONTEXT : 0;
+ unsigned flags = (flush ? __DRI2_FLUSH_CONTEXT : 0) |
+ __DRI2_FLUSH_DRAWABLE;
__DRIcontext *ctx = dri2GetCurrentContext();
if (ctx) {
More information about the mesa-commit
mailing list