summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2007-10-29 13:27:02 +0000
committerMichel Dänzer <[email protected]>2007-10-29 13:27:59 +0000
commit50cecddc4acc8faa5f803625472beb92fa7d227b (patch)
tree6e2ce953e4d3e3342c41db616d206f5fe6cec08e /src/mesa
parent177f6398e5d71fab249f8f7ee73e7197881bef84 (diff)
driFenceType: Really return fence type, not flags.
This typo could lead to the i915tex driver waiting for an EXE only fence as RW, causing it to abort with an error.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/common/dri_bufmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/dri_bufmgr.c b/src/mesa/drivers/dri/common/dri_bufmgr.c
index eaa4fb09c70..ebeed9a2030 100644
--- a/src/mesa/drivers/dri/common/dri_bufmgr.c
+++ b/src/mesa/drivers/dri/common/dri_bufmgr.c
@@ -115,7 +115,7 @@ driFenceType(DriFenceObject * fence)
unsigned ret;
_glthread_LOCK_MUTEX(bmMutex);
- ret = fence->fence.flags;
+ ret = fence->fence.type;
_glthread_UNLOCK_MUTEX(bmMutex);
return ret;