intel_gpu_top: Trust the register access is safe
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Mar 2012 14:25:13 +0000 (14:25 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Mar 2012 14:25:13 +0000 (14:25 +0000)
Fixes intel_gpu_top on gen3 which otherwise refuses to do mmio.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tools/intel_gpu_top.c

index 5a016c7..e8f02d0 100644 (file)
@@ -509,7 +509,7 @@ int main(int argc, char **argv)
        }
 
        /* Grab access to the registers */
-       intel_register_access_init(pci_dev, 1);
+       intel_register_access_init(pci_dev, 0);
 
        ring_init(&render_ring);
        if (IS_GEN4(devid) || IS_GEN5(devid))