From: Roland Scheidegger Date: Thu, 10 Dec 2009 02:51:35 +0000 (+0100) Subject: winsys/intel: fix dereferencing of opaque type due to pipe_reference changes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71f4267ac23f52dcc94590cb94c3e0ce451662aa;p=mesa.git winsys/intel: fix dereferencing of opaque type due to pipe_reference changes --- 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 b6248a3bcf7..e8b58742ab7 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);