diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_texture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_texture.c b/src/gallium/drivers/radeonsi/si_texture.c index eb17f6c82c4..de3cbb2bb88 100644 --- a/src/gallium/drivers/radeonsi/si_texture.c +++ b/src/gallium/drivers/radeonsi/si_texture.c @@ -199,7 +199,8 @@ static unsigned si_texture_get_offset(struct si_screen *sscreen, /* Each texture is an array of slices. Each slice is an array * of mipmap levels. */ - return box->z * tex->surface.u.gfx9.surf_slice_size + + return tex->surface.u.gfx9.surf_offset + + box->z * tex->surface.u.gfx9.surf_slice_size + tex->surface.u.gfx9.offset[level] + (box->y / tex->surface.blk_h * tex->surface.u.gfx9.surf_pitch + |