diff options
author | Brian Paul <[email protected]> | 2005-09-10 00:10:15 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-10 00:10:15 +0000 |
commit | 402b2bea640ebf69f78d8122f98435dd3bbeb7df (patch) | |
tree | bd0ffe2eb7b4e95108208aabf6383e2fa73fd327 /src/mesa/drivers/dri/i915/intel_pixel.c | |
parent | 036a99452d26167b70cadafb97b7e77ebdafd78c (diff) |
Add offset and pitch fields to intelRegion. Remove frontOffset, frontPitch,
backOffset, backPitch, depthOffset, depthPitch, textureOffset fields.
Diffstat (limited to 'src/mesa/drivers/dri/i915/intel_pixel.c')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_pixel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_pixel.c b/src/mesa/drivers/dri/i915/intel_pixel.c index 09eea5022f0..a79bed45fbe 100644 --- a/src/mesa/drivers/dri/i915/intel_pixel.c +++ b/src/mesa/drivers/dri/i915/intel_pixel.c @@ -130,7 +130,7 @@ clip_pixelrect( const GLcontext *ctx, if (*height <= 0) return GL_FALSE; - *size = ((*y + *height - 1) * intel->intelScreen->frontPitch + + *size = ((*y + *height - 1) * intel->intelScreen->front.pitch + (*x + *width - 1) * intel->intelScreen->cpp); return GL_TRUE; @@ -193,7 +193,7 @@ intelTryReadPixels( GLcontext *ctx, __DRIdrawablePrivate *dPriv = intel->driDrawable; int nbox = dPriv->numClipRects; int src_offset = intel->drawOffset; - int src_pitch = intel->intelScreen->frontPitch; + int src_pitch = intel->intelScreen->front.pitch; int dst_offset = intelAgpOffsetFromVirtual( intel, pixels); drm_clip_rect_t *box = dPriv->pClipRects; int i; @@ -318,7 +318,7 @@ static void do_draw_pix( GLcontext *ctx, intelEmitCopyBlitLocked( intel, intel->intelScreen->cpp, src_pitch, src_offset, - intel->intelScreen->frontPitch, + intel->intelScreen->front.pitch, intel->drawOffset, bx - x, by - y, bx, by, |