summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-01-16 10:55:25 -0700
committerBrian Paul <[email protected]>2012-01-24 14:12:14 -0700
commit7d1ddec92168e9b6ead0da80b18364a75f9a85e6 (patch)
treeb6ea2d9bad4e6401f9dda0b205484a4759bdabb4 /src/mesa/drivers/dri/radeon
parent14da67d9b9b9e30740ef1687c3952a0b5e8b0a54 (diff)
mesa: use gl_renderbuffer::Map for all depth/stencil accesses
Instead of using the obsolete gl_renderbuffer::Data field. Color buffer are still accessed through GetRow/PutRow().
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_span.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_span.c b/src/mesa/drivers/dri/radeon/radeon_span.c
index e3bdc36f954..569aca92ce4 100644
--- a/src/mesa/drivers/dri/radeon/radeon_span.c
+++ b/src/mesa/drivers/dri/radeon/radeon_span.c
@@ -74,8 +74,8 @@ static void radeonSetSpanFunctions(struct radeon_renderbuffer *rrb);
int minx = 0, miny = 0; \
int maxx = rb->Width; \
int maxy = rb->Height; \
- void *buf = rb->Data; \
- int pitch = rb->RowStride * rrb->cpp; \
+ void *buf = rb->Map; \
+ int pitch = rb->RowStrideBytes; \
GLuint p; \
(void)p;
@@ -178,8 +178,9 @@ radeon_renderbuffer_map(struct gl_context *ctx, struct gl_renderbuffer *rb)
GL_MAP_READ_BIT | GL_MAP_WRITE_BIT,
&map, &stride);
- rb->Data = map;
+ rb->Map = map;
rb->RowStride = stride / _mesa_get_format_bytes(rb->Format);
+ rb->RowStrideBytes = stride;
radeonSetSpanFunctions(rrb);
}
@@ -195,8 +196,9 @@ radeon_renderbuffer_unmap(struct gl_context *ctx, struct gl_renderbuffer *rb)
rb->GetRow = NULL;
rb->PutRow = NULL;
- rb->Data = NULL;
+ rb->Map = NULL;
rb->RowStride = 0;
+ rb->RowStrideBytes = 0;
}
static void