diff options
author | Dave Airlie <[email protected]> | 2010-10-13 11:02:52 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-10-13 15:55:47 +1000 |
commit | fa797f12b3e1e82020eb7bc8fd0181baa7515efe (patch) | |
tree | c0ec7ffef1fba0cdbb2b4cad4929bee50674d439 /src/gallium/drivers/r600/r600_texture.c | |
parent | 6a0066a69f6873a53d45684205926e8f5b73ddb2 (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.c | 4 |
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 e825aeee350..5bdfd499397 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); |