tests/gem_caching: only disable on vintage i965g/gm
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Oct 2012 16:57:40 +0000 (18:57 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Oct 2012 17:01:30 +0000 (19:01 +0200)
Hooray for confusing macros!

Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
tests/gem_cacheing.c

index c49932f..ccc8ef1 100644 (file)
@@ -115,14 +115,20 @@ int main(int argc, char **argv)
 
        fd = drm_open_any();
 
-       if (!gem_has_cacheing(fd))
+       if (!gem_has_cacheing(fd)) {
+               printf("no set_caching support detected\n");
                return 77;
+       }
 
        devid = intel_get_drm_devid(fd);
        if (IS_GEN2(devid)) /* chipset only handles cached -> uncached */
                flags &= ~TEST_READ;
-       if (IS_965(devid)) /* chipset is completely fubar */
+       if (IS_BROADWATER(devid) || IS_CRESTLINE(devid)) {
+               /* chipset is completely fubar */
+               printf("coherency broken on i965g/gm\n");
                flags = 0;
+       }
+
        if (flags == 0)
                return 77;