summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-06-15 17:09:11 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-06-25 09:43:55 +0200
commit484e27542d79f78e467004fec5a5192ac6006b34 (patch)
tree28743e01099b714f3bfb725c4daf1cf24f83370b
parent44d444acaa8cfd61ea25c82fb7c3bff5f41f0835 (diff)
tests/kms_fbc_crc: Don't force fbc on old platforms
It's simply a bit too scary on pre-gen6 and imo not worth the bother really until someone starts to implement all the hacks an w/a required on these platforms. On later platforms the issues are just with correctness and performance hence no risk for hanging machines. Cc: Paulo Zanoni <przanoni@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
-rw-r--r--tests/kms_fbc_crc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c
index d9642243..f2a86a69 100644
--- a/tests/kms_fbc_crc.c
+++ b/tests/kms_fbc_crc.c
@@ -562,7 +562,8 @@ igt_main
igt_require_f(!strstr(buf, "unsupported on this chipset"),
"FBC not supported\n");
- igt_set_module_param_int("enable_fbc", 1);
+ if (intel_gen(data.devid) >= 6)
+ igt_set_module_param_int("enable_fbc", 1);
data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096);
igt_assert(data.bufmgr);