diff options
author | Christoph Bumiller <[email protected]> | 2009-12-13 14:36:54 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2009-12-13 14:39:19 +0100 |
commit | 079b670111fe41cabf700d089f489d4b116af5eb (patch) | |
tree | d8debb09af7ed594ee0fd893d732156b39ce8312 /src/gallium/drivers/nv50/nv50_transfer.c | |
parent | 7b5a6fa0c87a821835161494987994a781401303 (diff) |
nv50: add proper zslice offset in miptree_surface
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_transfer.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_transfer.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gallium/drivers/nv50/nv50_transfer.c b/src/gallium/drivers/nv50/nv50_transfer.c index 6a98d806d00..104d29a003f 100644 --- a/src/gallium/drivers/nv50/nv50_transfer.c +++ b/src/gallium/drivers/nv50/nv50_transfer.c @@ -119,20 +119,6 @@ nv50_transfer_rect_m2mf(struct pipe_screen *pscreen, } } -static INLINE unsigned -get_zslice_offset(unsigned tile_mode, unsigned z, unsigned pitch, unsigned ny) -{ - unsigned tile_h = get_tile_height(tile_mode); - unsigned tile_d = get_tile_depth(tile_mode); - - /* pitch_2d == to next slice within this volume-tile */ - /* pitch_3d == to next slice in next 2D array of blocks */ - unsigned pitch_2d = tile_h * 64; - unsigned pitch_3d = tile_d * align(ny, tile_h) * pitch; - - return (z % tile_d) * pitch_2d + (z / tile_d) * pitch_3d; -} - static struct pipe_transfer * nv50_transfer_new(struct pipe_screen *pscreen, struct pipe_texture *pt, unsigned face, unsigned level, unsigned zslice, |