diff options
author | Alan Hourihane <[email protected]> | 2008-02-22 00:18:54 +0000 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2008-02-22 00:20:27 +0000 |
commit | 1c718c0d78cf4eae9e02b03a0abbec384db948a6 (patch) | |
tree | 6eb984875b15b05b0a0683f9e4bf5838b5da66ae /src/mesa/drivers/dri/i965 | |
parent | 758b99894170c1c18370b370eb33dda7d0d14a8d (diff) |
Use drm_i915_sarea instead of drmI830Sarea and remove i830_common.h
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_context.c | 17 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_context.h | 4 |
2 files changed, 10 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_context.c b/src/mesa/drivers/dri/i965/intel_context.c index 459039a8879..c39c0c2f0f2 100644 --- a/src/mesa/drivers/dri/i965/intel_context.c +++ b/src/mesa/drivers/dri/i965/intel_context.c @@ -49,7 +49,6 @@ #include "intel_chipset.h" #include "i830_dri.h" -#include "i830_common.h" #include "intel_tex.h" #include "intel_span.h" @@ -325,14 +324,14 @@ static void intelBeginQuery(GLcontext *ctx, GLenum target, struct gl_query_object *q) { struct intel_context *intel = intel_context( ctx ); - drmI830MMIO io = { - .read_write = MMIO_READ, + struct drm_i915_mmio io = { + .read_write = I915_MMIO_READ, .reg = MMIO_REGS_PS_DEPTH_COUNT, .data = &q->Result }; intel->stats_wm++; intelFinish(&intel->ctx); - drmCommandWrite(intel->driFd, DRM_I830_MMIO, &io, sizeof(io)); + drmCommandWrite(intel->driFd, DRM_I915_MMIO, &io, sizeof(io)); } static void @@ -340,13 +339,13 @@ intelEndQuery(GLcontext *ctx, GLenum target, struct gl_query_object *q) { struct intel_context *intel = intel_context( ctx ); GLuint64EXT tmp; - drmI830MMIO io = { - .read_write = MMIO_READ, + struct drm_i915_mmio io = { + .read_write = I915_MMIO_READ, .reg = MMIO_REGS_PS_DEPTH_COUNT, .data = &tmp }; intelFinish(&intel->ctx); - drmCommandWrite(intel->driFd, DRM_I830_MMIO, &io, sizeof(io)); + drmCommandWrite(intel->driFd, DRM_I915_MMIO, &io, sizeof(io)); q->Result = tmp - q->Result; q->Ready = GL_TRUE; intel->stats_wm--; @@ -463,7 +462,7 @@ GLboolean intelInitContext( struct intel_context *intel, GLcontext *shareCtx = (GLcontext *) sharedContextPrivate; __DRIscreenPrivate *sPriv = driContextPriv->driScreenPriv; intelScreenPrivate *intelScreen = (intelScreenPrivate *)sPriv->private; - volatile drmI830Sarea *saPriv = (drmI830Sarea *) + volatile struct drm_i915_sarea *saPriv = (struct drm_i915_sarea *) (((GLubyte *)sPriv->pSAREA)+intelScreen->sarea_priv_offset); if (!_mesa_initialize_context(&intel->ctx, @@ -739,7 +738,7 @@ static void intelContendedLock( struct intel_context *intel, GLuint flags ) { __DRIdrawablePrivate *dPriv = intel->driDrawable; __DRIscreenPrivate *sPriv = intel->driScreen; - volatile drmI830Sarea * sarea = intel->sarea; + volatile struct drm_i915_sarea * sarea = intel->sarea; int me = intel->hHWContext; drmGetLock(intel->driFd, intel->hHWContext, flags); diff --git a/src/mesa/drivers/dri/i965/intel_context.h b/src/mesa/drivers/dri/i965/intel_context.h index 6c7fd8c12f2..6b69c9c8661 100644 --- a/src/mesa/drivers/dri/i965/intel_context.h +++ b/src/mesa/drivers/dri/i965/intel_context.h @@ -37,7 +37,7 @@ #include "intel_screen.h" #include "intel_tex_obj.h" -#include "i830_common.h" +#include "i915_drm.h" #include "tnl/t_vertex.h" #define TAG(x) intel##x @@ -205,7 +205,7 @@ struct intel_context __DRIdrawablePrivate *driReadDrawable; __DRIscreenPrivate *driScreen; intelScreenPrivate *intelScreen; - volatile drmI830Sarea *sarea; + volatile struct drm_i915_sarea *sarea; GLuint lastStamp; |