[igt-dev] [V5 i-g-t 2/5] lib/igt_kms: s/is_i915_device/is_intel_device

Bhanuprakash Modem bhanuprakash.modem at intel.com
Thu Jun 29 15:03:21 UTC 2023


As few helpers supports both i915 & xe, update the checks to
support both drivers.

s/is_i915_device/is_intel_device

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 lib/igt_kms.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 23cfccff8..de38b8fcc 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -5808,7 +5808,7 @@ bool igt_max_bpc_constraint(igt_display_t *display, enum pipe pipe,
 	for_each_connector_mode(output) {
 		igt_output_override_mode(output, &connector->modes[j__]);
 
-		if (is_i915_device(display->drm_fd) &&
+		if (is_intel_device(display->drm_fd) &&
 		    !igt_check_bigjoiner_support(display))
 			continue;
 
@@ -6010,7 +6010,7 @@ bool intel_pipe_output_combo_valid(igt_display_t *display)
 	int combo = 0;
 	igt_output_t *output;
 
-	if (!is_i915_device(display->drm_fd))
+	if (!is_intel_device(display->drm_fd))
 		return true;
 
 	for_each_connected_output(display, output) {
-- 
2.40.0



More information about the igt-dev mailing list