diff options
author | Marek Olšák <[email protected]> | 2017-11-14 19:31:39 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-11-27 14:44:04 +0100 |
commit | ec15ff78c3ed4a2b39a45ecf74292090fdc99c6e (patch) | |
tree | 402ff736cdafe380b67414ffa659d34e2257ab7b /src/gallium/drivers/radeon/radeon_uvd.c | |
parent | 474b4a919181a155187446ca0e0c0b3522fbdee2 (diff) |
ac: change legacy_surf_level::slice_size to dword units
The next commit will reduce the size even more.
v2: typecast to uint64_t manually
v3: add more typecasts, add asserts
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_uvd.c')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_uvd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index bf7a2ae910b..3e060e2ddba 100644 --- a/src/gallium/drivers/radeon/radeon_uvd.c +++ b/src/gallium/drivers/radeon/radeon_uvd.c @@ -1507,7 +1507,7 @@ static unsigned texture_offset(struct radeon_surf *surface, unsigned layer, default: case RUVD_SURFACE_TYPE_LEGACY: return surface->u.legacy.level[0].offset + - layer * surface->u.legacy.level[0].slice_size; + layer * (uint64_t)surface->u.legacy.level[0].slice_size_dw * 4; break; case RUVD_SURFACE_TYPE_GFX9: return surface->u.gfx9.surf_offset + |