Skip to contentSkip to conversation

i-g-t: Update kms_panel_fitting to work on other platforms

PATCH In review Chandra Konduru 2 participants 2 messages May 11, 2015 – May 12, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i-g-t: Update kms_panel_fitting to work on other platforms

From: chandra konduru <[email protected]>

kms_panel_fitting currently enabled for SKL only, but as panel_fitters are available on prior platforms, enable this kms test for them too.

---
 tests/kms_panel_fitting.c |    8 --------
 1 file changed, 8 deletions(-)
tests/kms_panel_fitting.c +0 -8
index 4dc3bff..2d079b4 100644
@@ -43,8 +43,6 @@ typedef struct {
 	int image_w;
 	int image_h;
 
-	int num_scalers;
-
 	struct igt_fb fb1;
 	struct igt_fb fb2;
 	struct igt_fb fb3;
@@ -176,10 +174,6 @@ static void test_panel_fitting(data_t *d)
 	enum pipe pipe;
 	int valid_tests = 0;
 
-	igt_require(d->display.has_universal_planes);
-	igt_require(d->num_scalers);
-	igt_require(d->num_scalers);
-
 	for_each_connected_output(display, output) {
 		drmModeModeInfo *mode, native_mode;
 
@@ -261,8 +255,6 @@ igt_simple_main
 	igt_display_init(&data.display, data.drm_fd);
 	data.devid = intel_get_drm_devid(data.drm_fd);
 
-	data.num_scalers = intel_gen(data.devid) >= 9 ? 2 : 0;
-
 	test_panel_fitting(&data);
 
 	igt_display_fini(&data.display);
Signature · 6 lines
1.7.9.5

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 7 lines · Chandra Konduru

From: chandra konduru <[email protected]>

kms_panel_fitting currently enabled for SKL only, but as panel_fitters are available on prior platforms, enable this kms test for them too.

Makes sense, applied.

Thanks, Daniel

Quoted 44 lines
---
 tests/kms_panel_fitting.c |    8 --------
 1 file changed, 8 deletions(-)
tests/kms_panel_fitting.c +0 -8
index 4dc3bff..2d079b4 100644
@@ -43,8 +43,6 @@ typedef struct {
 	int image_w;
 	int image_h;
 
-	int num_scalers;
-
 	struct igt_fb fb1;
 	struct igt_fb fb2;
 	struct igt_fb fb3;
@@ -176,10 +174,6 @@ static void test_panel_fitting(data_t *d)
 	enum pipe pipe;
 	int valid_tests = 0;
 
-	igt_require(d->display.has_universal_planes);
-	igt_require(d->num_scalers);
-	igt_require(d->num_scalers);
-
 	for_each_connected_output(display, output) {
 		drmModeModeInfo *mode, native_mode;
 
@@ -261,8 +255,6 @@ igt_simple_main
 	igt_display_init(&data.display, data.drm_fd);
 	data.devid = intel_get_drm_devid(data.drm_fd);
 
-	data.num_scalers = intel_gen(data.devid) >= 9 ? 2 : 0;
-
 	test_panel_fitting(&data);
 
 	igt_display_fini(&data.display);
Signature · 6 lines
1.7.9.5

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx