summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/r600_texture.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-10-13 11:02:52 +1000
committerDave Airlie <airlied@redhat.com>2010-10-13 15:55:47 +1000
commitfa797f12b3e1e82020eb7bc8fd0181baa7515efe (patch)
treec0ec7ffef1fba0cdbb2b4cad4929bee50674d439 /src/gallium/drivers/r600/r600_texture.c
parent6a0066a69f6873a53d45684205926e8f5b73ddb2 (diff)
r600g: rename pitch in texture to pitch_in_bytes
Diffstat (limited to 'src/gallium/drivers/r600/r600_texture.c')
-rw-r--r--src/gallium/drivers/r600/r600_texture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index e825aeee35..5bdfd49939 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -151,7 +151,7 @@ static void r600_setup_miptree(struct pipe_screen *screen,
size = layer_size * u_minify(ptex->depth0, i);
rtex->offset[i] = offset;
rtex->layer_size[i] = layer_size;
- rtex->pitch[i] = pitch;
+ rtex->pitch_in_bytes[i] = pitch;
offset += size;
}
rtex->size = offset;
@@ -340,7 +340,7 @@ struct pipe_transfer* r600_texture_get_transfer(struct pipe_context *ctx,
trans->transfer.sr = sr;
trans->transfer.usage = usage;
trans->transfer.box = *box;
- trans->transfer.stride = rtex->pitch[sr.level];
+ trans->transfer.stride = rtex->pitch_in_bytes[sr.level];
trans->offset = r600_texture_get_offset(rtex, sr.level, box->z, sr.face);
if (rtex->depth) {
r = r600_texture_depth_flush(ctx, texture);