Mesa (mesa_7_6_branch): intel: Fix flipped condition in ARB_sync GetSYnciv( GL_SYNC_STATUS).
Eric Anholt
anholt at kemper.freedesktop.org
Wed Oct 28 00:00:18 UTC 2009
Module: Mesa
Branch: mesa_7_6_branch
Commit: 2643a7ba2972ab8284aa911cc92ab0be163cb92f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2643a7ba2972ab8284aa911cc92ab0be163cb92f
Author: Eric Anholt <eric at anholt.net>
Date: Tue Oct 20 14:51:53 2009 -0700
intel: Fix flipped condition in ARB_sync GetSYnciv(GL_SYNC_STATUS).
Bug #24435
(cherry picked from commit d56125a298106d81e10674f1c4b3b43b51a5139d)
---
src/mesa/drivers/dri/intel/intel_syncobj.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_syncobj.c b/src/mesa/drivers/dri/intel/intel_syncobj.c
index 1286fe9..0d7889d 100644
--- a/src/mesa/drivers/dri/intel/intel_syncobj.c
+++ b/src/mesa/drivers/dri/intel/intel_syncobj.c
@@ -114,7 +114,7 @@ static void intel_check_sync(GLcontext *ctx, struct gl_sync_object *s)
{
struct intel_sync_object *sync = (struct intel_sync_object *)s;
- if (sync->bo && drm_intel_bo_busy(sync->bo)) {
+ if (sync->bo && !drm_intel_bo_busy(sync->bo)) {
drm_intel_bo_unreference(sync->bo);
sync->bo = NULL;
s->StatusFlag = 1;
More information about the mesa-commit
mailing list