aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2012-08-29 12:11:04 +0200
committerMichel Dänzer <[email protected]>2012-09-06 15:38:45 +0200
commit396af00ffe376bb0ffe8a60960604b733b19f2ca (patch)
treeaa3ec7a2283c6717a66ebb7e79f3046399feaef0
parentcebbdd4ac23725963207bf6f8fc7101150e6065f (diff)
radeonsi: Untiled textures are linear aligned, not linear general.
Signed-off-by: Michel Dänzer <[email protected]> Reviewed-by: Christian König <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/r600_texture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/r600_texture.c b/src/gallium/drivers/radeonsi/r600_texture.c
index 5b831fdbfce..0b908c8898d 100644
--- a/src/gallium/drivers/radeonsi/r600_texture.c
+++ b/src/gallium/drivers/radeonsi/r600_texture.c
@@ -523,7 +523,7 @@ struct pipe_resource *si_texture_create(struct pipe_screen *screen,
{
struct r600_screen *rscreen = (struct r600_screen*)screen;
struct radeon_surface surface;
- unsigned array_mode = 0;
+ unsigned array_mode = V_009910_ARRAY_LINEAR_ALIGNED;
int r;
#if 0
@@ -589,7 +589,7 @@ struct pipe_resource *si_texture_from_handle(struct pipe_screen *screen,
struct r600_screen *rscreen = (struct r600_screen*)screen;
struct pb_buffer *buf = NULL;
unsigned stride = 0;
- unsigned array_mode = 0;
+ unsigned array_mode = V_009910_ARRAY_LINEAR_ALIGNED;
enum radeon_bo_layout micro, macro;
struct radeon_surface surface;
int r;
@@ -614,7 +614,7 @@ struct pipe_resource *si_texture_from_handle(struct pipe_screen *screen,
else if (micro == RADEON_LAYOUT_TILED)
array_mode = V_009910_ARRAY_1D_TILED_THIN1;
else
- array_mode = 0;
+ array_mode = V_009910_ARRAY_LINEAR_ALIGNED;
r = r600_init_surface(&surface, templ, array_mode);
if (r) {