@@ -3847,6 +3847,17 @@ static const struct intel_color_funcs tgl_color_funcs = {
.get_config = skl_get_config,
};
+static const struct intel_color_funcs xelpd_color_funcs = {
+ .color_check = icl_color_check,
+ .color_commit_noarm = icl_color_commit_noarm,
+ .color_commit_arm = icl_color_commit_arm,
+ .load_luts = icl_load_luts,
+ .read_luts = icl_read_luts,
+ .lut_equal = icl_lut_equal,
+ .read_csc = icl_read_csc,
+ .get_config = skl_get_config,
+};
+
static const struct intel_color_funcs icl_color_funcs = {
.color_check = icl_color_check,
.color_commit_noarm = icl_color_commit_noarm,
@@ -4278,7 +4289,9 @@ void intel_color_init_hooks(struct intel_display *display)
else
display->funcs.color = &i9xx_color_funcs;
} else {
- if (DISPLAY_VER(display) >= 12)
+ if (DISPLAY_VER(display) >= 13)
+ display->funcs.color = &xelpd_color_funcs;
+ else if (DISPLAY_VER(display) == 12)
display->funcs.color = &tgl_color_funcs;
else if (DISPLAY_VER(display) == 11)
display->funcs.color = &icl_color_funcs;