intel: in intel_context struct use typedef for sarea struct
authorTobias Doerffel <tobias.doerffel@gmail.com>
Fri, 14 Aug 2009 14:50:43 +0000 (08:50 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 14 Aug 2009 14:50:52 +0000 (08:50 -0600)
Using drm_i915_sarea_t instead of struct drm_i915_sarea seems to be
a common standard now, therefore fix it also in intel_context
structure. Additionally this silences a compiler warning:

intel_swapbuffers.c: In function `intelFixupVblank':
intel_swapbuffers.c:48: warning: initialization from incompatible pointer type

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
src/mesa/drivers/dri/intel/intel_context.h

index 2b138290821ff783612644f2953b24ba820227f7..0d9db5eb1da46ab1f0c540e696a2a013bcf81cc9 100644 (file)
@@ -312,7 +312,7 @@ struct intel_context
    __DRIdrawablePrivate *driReadDrawable;
    __DRIscreenPrivate *driScreen;
    intelScreenPrivate *intelScreen;
-   volatile struct drm_i915_sarea *sarea;
+   volatile drm_i915_sarea_t *sarea;
 
    GLuint lastStamp;