aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/r600_texture.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-02-16 00:11:58 +0100
committerMarek Olšák <[email protected]>2017-03-30 14:44:33 +0200
commitbd1da6b33975d7fb3be6b2150899e1002c666ef7 (patch)
treed2e7f8096fee074ab505865158cbe6f6cfed91ef /src/gallium/drivers/radeon/r600_texture.c
parent3685a12bad497bd979abf94d2c64ed9dcf1cdc5a (diff)
radeonsi/gfx9: add radeon_surf.gfx9.surf_offset
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_texture.c')
-rw-r--r--src/gallium/drivers/radeon/r600_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index f1b2cd96bcf..2e66dd0fd4e 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -555,7 +555,7 @@ static boolean r600_texture_get_handle(struct pipe_screen* screen,
}
if (rscreen->chip_class >= GFX9) {
- offset = 0;
+ offset = rtex->surface.u.gfx9.surf_offset;
stride = rtex->surface.u.gfx9.surf_pitch *
rtex->surface.bpe;
slice_size = rtex->surface.u.gfx9.surf_slice_size;