projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f388d62
)
fix a bug in 965 ARB_occlusion_query,
author
Zou Nan hai
<nanhai.zou@intel.com>
Wed, 26 Sep 2007 02:00:41 +0000
(10:00 +0800)
committer
Zou Nan hai
<nanhai.zou@intel.com>
Wed, 26 Sep 2007 02:00:41 +0000
(10:00 +0800)
fd.o bug #12132
src/mesa/drivers/dri/i965/intel_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/intel_context.c
b/src/mesa/drivers/dri/i965/intel_context.c
index 4a95087d78fffd48c2938b83dcdfd1dcfc20b53b..f3ec2b2eeef94d066b154a3cc70930053b1e9e6f 100644
(file)
--- a/
src/mesa/drivers/dri/i965/intel_context.c
+++ b/
src/mesa/drivers/dri/i965/intel_context.c
@@
-271,7
+271,7
@@
intelBeginQuery(GLcontext *ctx, GLenum target, struct gl_query_object *q)
};
intel->stats_wm++;
intelFinish(&intel->ctx);
- drmCommand
Read
(intel->driFd, DRM_I830_MMIO, &io, sizeof(io));
+ drmCommand
Write
(intel->driFd, DRM_I830_MMIO, &io, sizeof(io));
}
static void
@@
-285,7
+285,7
@@
intelEndQuery(GLcontext *ctx, GLenum target, struct gl_query_object *q)
.data = &tmp
};
intelFinish(&intel->ctx);
- drmCommand
Read
(intel->driFd, DRM_I830_MMIO, &io, sizeof(io));
+ drmCommand
Write
(intel->driFd, DRM_I830_MMIO, &io, sizeof(io));
q->Result = tmp - q->Result;
q->Ready = GL_TRUE;
intel->stats_wm--;