Skip to contentSkip to conversation

tests/kms_color:Color i-g-t

PATCH In review Dhanya Pillai 2 participants 2 messages Dec 29, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/kms_color:Color i-g-t

From: Dhanya <[email protected]>

This patch will verify color correction capability of a display driver. Gamma/CSC/De-gamma for SKL/BXT supported.

---
 tests/.gitignore       |    1 +
 tests/Makefile.sources |    1 +
 tests/kms_color.c      | 1039 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 1041 insertions(+)
 create mode 100644 tests/kms_color.c
tests/.gitignore +1 -0
index 7f20f2b..6fc4782 100644
@@ -130,6 +130,7 @@ gen7_forcewake_mt
 kms_3d
 kms_addfb_basic
 kms_atomic
+kms_color
 kms_crtc_background_color
 kms_cursor_crc
 kms_draw_crc
tests/Makefile.sources +1 -0
index d594038..f2af648 100644
@@ -68,6 +68,7 @@ TESTS_progs_M = \
 	gem_write_read_ring_switch \
 	kms_addfb_basic \
 	kms_atomic \
+	kms_color \
 	kms_cursor_crc \
 	kms_draw_crc \
 	kms_fbc_crc \
tests/kms_color.c new file +1039 -0

1,039 lines not on this page · raw message

Signature · 6 lines
1.9.1

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

Hi Dhanya,

Quoted 2 lines · Dhanya Pillai

This patch will verify color correction capability of a display driver. Gamma/CSC/De-gamma for SKL/BXT supported.

The commit message here seems odd, given this:

Quoted 8 lines
tests/kms_color.c new file +7 -0
+               switch (prop_name) {
+               case gamma_property_8bit:
+                       test_pipe_gamma(data, display, output,
+                                       BDW_8BIT_GAMMA_MAX_VALS, value, pipe1);
+                       break;
[...]
+               case gamma_property_10bit:
+                       test_pipe_gamma(data, display, output, BDW_10BIT_GAMMA_MAX_VALS, value, pipe1);

tests/kms_color.c line 958

Quoted 10 lines
tests/kms_color.c new file +9 -0
+                       break;
[...]
+               case gamma_property_split:
+                       test_pipe_gamma(data, display, output,
+                                       BDW_SPLITGAMMA_MAX_VALS, value, pipe1);
+                       break;
+               case gamma_property_12bit:
+                       test_pipe_gamma(data, display, output,
+                                       BDW_12BIT_GAMMA_MAX_VALS, value, pipe1);
+                       break;

Surely this only works on BDW?

Also, please see my feedback to Lionel's resubmission of the kernel series, as I think there are a lot of tests missing.

Cheers,
Daniel
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx