diff options
author | Michel Dänzer <[email protected]> | 2013-01-17 19:15:15 +0100 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2013-01-21 14:10:52 +0100 |
commit | 90d919fcd0ef5a09a462871cc6b2174db6e82411 (patch) | |
tree | d426a2172c3d9bc1f862cf4e9d75155f79a9b221 /src/gallium | |
parent | a076c272e29bdb6dd32f7f7cabbc735d619f89b4 (diff) |
radeonsi: Fix 1D tiling mode index for non-scanout resources.
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index f7fe603f115..ee353edb816 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -1524,7 +1524,10 @@ static unsigned si_tile_mode_index(struct r600_resource_texture *rtex, unsigned case RADEON_SURF_MODE_LINEAR_ALIGNED: return 8; case RADEON_SURF_MODE_1D: - return 9; + if (rtex->surface.flags & RADEON_SURF_SCANOUT) + return 9; + else + return 13; case RADEON_SURF_MODE_2D: if (rtex->surface.flags & RADEON_SURF_SCANOUT) { switch (util_format_get_blocksize(rtex->real_format)) { |