Mesa (master): winsys/intel: fix dereferencing of opaque type due to pipe_reference changes

Roland Scheidegger sroland at kemper.freedesktop.org
Wed Dec 9 18:52:02 PST 2009


Module: Mesa
Branch: master
Commit: 71f4267ac23f52dcc94590cb94c3e0ce451662aa
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=71f4267ac23f52dcc94590cb94c3e0ce451662aa

Author: Roland Scheidegger <sroland at vmware.com>
Date:   Thu Dec 10 03:51:35 2009 +0100

winsys/intel: fix dereferencing of opaque type due to pipe_reference changes

---

 src/gallium/winsys/drm/intel/gem/intel_drm_fence.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/winsys/drm/intel/gem/intel_drm_fence.c b/src/gallium/winsys/drm/intel/gem/intel_drm_fence.c
index b6248a3..e8b5874 100644
--- a/src/gallium/winsys/drm/intel/gem/intel_drm_fence.c
+++ b/src/gallium/winsys/drm/intel/gem/intel_drm_fence.c
@@ -39,7 +39,7 @@ intel_drm_fence_reference(struct intel_winsys *iws,
    struct intel_drm_fence *old = (struct intel_drm_fence *)*ptr;
    struct intel_drm_fence *f = (struct intel_drm_fence *)fence;
 
-   if (pipe_reference(&(*ptr)->reference, &f->reference)) {
+   if (pipe_reference(&((struct intel_drm_fence *)(*ptr))->reference, &f->reference)) {
       if (old->bo)
          drm_intel_bo_unreference(old->bo);
       FREE(old);



More information about the mesa-commit mailing list