gallium/radeon: set GTT WC on tiled textures
authorMarek Olšák <marek.olsak@amd.com>
Mon, 11 Apr 2016 18:24:34 +0000 (20:24 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 12 Apr 2016 12:29:48 +0000 (14:29 +0200)
Just for consistency. This should have no effect, because OpenGL textures
always go to VRAM.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
src/gallium/drivers/radeon/r600_buffer_common.c

index ae4b57904f4e8b55119069a57b45960e3756729d..47514e91d2340d60bd6050914a74a360a7492ae5 100644 (file)
@@ -160,7 +160,8 @@ bool r600_init_resource(struct r600_common_screen *rscreen,
            rtex->surface.level[0].mode >= RADEON_SURF_MODE_1D) {
                res->domains = RADEON_DOMAIN_VRAM;
                flags &= ~RADEON_FLAG_CPU_ACCESS;
-               flags |= RADEON_FLAG_NO_CPU_ACCESS;
+               flags |= RADEON_FLAG_NO_CPU_ACCESS |
+                        RADEON_FLAG_GTT_WC;
        }
 
        /* If VRAM is just stolen system memory, allow both VRAM and GTT,