diff options
author | Zou Nan hai <nanhai.zou@intel.com> | 2007-09-26 10:00:41 +0800 |
---|---|---|
committer | Zou Nan hai <nanhai.zou@intel.com> | 2007-09-26 10:00:41 +0800 |
commit | 395b3bf6f95b35a84a74d4baf7e04bc67cf3771c (patch) | |
tree | d2c2503c54372c7d9703bc83634870ec13f97ecb /src/mesa/drivers | |
parent | f388d62b39e9273dd8aac425da54015af91192d8 (diff) |
fix a bug in 965 ARB_occlusion_query,
fd.o bug #12132
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_context.c b/src/mesa/drivers/dri/i965/intel_context.c index 4a95087d78..f3ec2b2eee 100644 --- 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); - drmCommandRead(intel->driFd, DRM_I830_MMIO, &io, sizeof(io)); + drmCommandWrite(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); - drmCommandRead(intel->driFd, DRM_I830_MMIO, &io, sizeof(io)); + drmCommandWrite(intel->driFd, DRM_I830_MMIO, &io, sizeof(io)); q->Result = tmp - q->Result; q->Ready = GL_TRUE; intel->stats_wm--; |