r300g: debug_print on startup whether we can use hyper-z
authorMarek Olšák <maraeo@gmail.com>
Wed, 4 Aug 2010 09:34:54 +0000 (11:34 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 5 Aug 2010 17:05:11 +0000 (19:05 +0200)
src/gallium/winsys/radeon/drm/radeon_drm.c

index e7057ca593b34f377603642cb608a3a1edb80a3d..3604827700336b1ba6bd110481d6e5db8be617d5 100644 (file)
@@ -152,12 +152,14 @@ static void do_ioctls(int fd, struct radeon_libdrm_winsys* winsys)
 
     debug_printf("radeon: Successfully grabbed chipset info from kernel!\n"
                  "radeon: DRM version: %d.%d.%d ID: 0x%04x GB: %d Z: %d\n"
-                 "radeon: GART size: %d MB VRAM size: %d MB\n",
+                 "radeon: GART size: %d MB VRAM size: %d MB\n"
+                 "radeon: HyperZ: %s\n",
                  version->version_major, version->version_minor,
                  version->version_patchlevel, winsys->pci_id,
                  winsys->gb_pipes, winsys->z_pipes,
                  winsys->gart_size / 1024 / 1024,
-                 winsys->vram_size / 1024 / 1024);
+                 winsys->vram_size / 1024 / 1024,
+                 winsys->hyperz ? "YES" : "NO");
 
     drmFreeVersion(version);
 }