From 630dd4087d50f6db3b9d4e9fc42ca159b6d39446 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 3 Oct 2012 18:57:40 +0200 Subject: [PATCH] tests/gem_caching: only disable on vintage i965g/gm Hooray for confusing macros! Acked-by: Chris Wilson --- tests/gem_cacheing.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/gem_cacheing.c b/tests/gem_cacheing.c index c49932f2..ccc8ef14 100644 --- a/tests/gem_cacheing.c +++ b/tests/gem_cacheing.c @@ -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;