mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 18:06:13 +00:00
tests/gem_caching: only disable on vintage i965g/gm
Hooray for confusing macros! Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
2d431fd6b6
commit
630dd4087d
@ -115,14 +115,20 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
fd = drm_open_any();
|
fd = drm_open_any();
|
||||||
|
|
||||||
if (!gem_has_cacheing(fd))
|
if (!gem_has_cacheing(fd)) {
|
||||||
|
printf("no set_caching support detected\n");
|
||||||
return 77;
|
return 77;
|
||||||
|
}
|
||||||
|
|
||||||
devid = intel_get_drm_devid(fd);
|
devid = intel_get_drm_devid(fd);
|
||||||
if (IS_GEN2(devid)) /* chipset only handles cached -> uncached */
|
if (IS_GEN2(devid)) /* chipset only handles cached -> uncached */
|
||||||
flags &= ~TEST_READ;
|
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;
|
flags = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (flags == 0)
|
if (flags == 0)
|
||||||
return 77;
|
return 77;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user