r600g: untiled window-system buffers should be LINEAR_ALIGNED
authorMarek Olšák <maraeo@gmail.com>
Mon, 12 Nov 2012 23:36:00 +0000 (00:36 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 13 Nov 2012 14:00:37 +0000 (15:00 +0100)
though I guess the DDX allocates them as LINEAR_GENERAL

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/r600_texture.c

index 7e48f2766a73896faec58f5b353e7e8759ddec89..42010bf778539dc803180f834c7f4450fe9f6d3b 100644 (file)
@@ -604,7 +604,7 @@ struct pipe_resource *r600_texture_from_handle(struct pipe_screen *screen,
        else if (micro == RADEON_LAYOUT_TILED)
                array_mode = V_0280A0_ARRAY_1D_TILED_THIN1;
        else
-               array_mode = 0;
+               array_mode = V_038000_ARRAY_LINEAR_ALIGNED;
 
        r = r600_init_surface(rscreen, &surface, templ, array_mode, false);
        if (r) {