From 8065e764546cbb531054ae03b99b45fc54de80b7 Mon Sep 17 00:00:00 2001 From: Alexandre Demers Date: Tue, 24 Jul 2012 01:59:48 -0400 Subject: [PATCH] adding a env variable to disable VM on r600 if wanted --- src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c index d1ef252..c8a76da 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c @@ -298,6 +298,9 @@ static boolean do_winsys_init(struct radeon_drm_winsys *ws) if (!radeon_get_drm_value(ws->fd, RADEON_INFO_IB_VM_MAX_SIZE, NULL, &ws->info.r600_ib_vm_max_size)) ws->info.r600_virtual_address = FALSE; + /* XXX don't enable virtual address space if explicitly requested by the user since it's broken on at least CAYMAN */ + if (!debug_get_bool_option("R600_VM", FALSE)) + ws->info.r600_virtual_address = FALSE; } } -- 1.7.11.2