From: Ville Syrjala <ville.syrjala@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [PATCH i-g-t 11/21] tests/intel/kms_psr2_sf: Convert pipes[] to crtcs[]
Date: Fri, 20 Feb 2026 16:01:43 +0200 [thread overview]
Message-ID: <20260220140154.4138-12-ville.syrjala@linux.intel.com> (raw)
In-Reply-To: <20260220140154.4138-1-ville.syrjala@linux.intel.com>
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Convert the pipes[] array to crtcs[] in kms_psr2_sf. The
remainder of the pipe->crtc conversions will be handled
with cocci.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
tests/intel/kms_psr2_sf.c | 66 +++++++++++++++++++--------------------
1 file changed, 33 insertions(+), 33 deletions(-)
diff --git a/tests/intel/kms_psr2_sf.c b/tests/intel/kms_psr2_sf.c
index 31db6760c73e..cb2f2fe70f80 100644
--- a/tests/intel/kms_psr2_sf.c
+++ b/tests/intel/kms_psr2_sf.c
@@ -1157,8 +1157,8 @@ int igt_main()
data_t data = {};
igt_output_t *outputs[IGT_MAX_PIPES * IGT_MAX_PIPES];
int i, y, z;
- int pipes[IGT_MAX_PIPES * IGT_MAX_PIPES];
- int n_pipes = 0;
+ igt_crtc_t *crtcs[IGT_MAX_PIPES * IGT_MAX_PIPES];
+ int n_crtcs = 0;
int coexist_features[IGT_MAX_PIPES * IGT_MAX_PIPES];
const char *append_fbc_subtest[2] = {
"",
@@ -1209,14 +1209,14 @@ int igt_main()
if (!output_supports_pr_psr2_sel_fetch)
continue;
- pipes[n_pipes] = data.pipe;
- outputs[n_pipes] = data.output;
+ crtcs[n_crtcs] = crtc;
+ outputs[n_crtcs] = data.output;
- coexist_features[n_pipes] = 0;
+ coexist_features[n_crtcs] = 0;
if (is_dsc_supported_by_sink(data.drm_fd, data.output))
- coexist_features[n_pipes] |= FEATURE_DSC;
+ coexist_features[n_crtcs] |= FEATURE_DSC;
- n_pipes++;
+ n_crtcs++;
pr_psr2_sel_fetch_supported = true;
}
igt_require_f(pr_psr2_sel_fetch_supported,
@@ -1241,8 +1241,8 @@ int igt_main()
append_fbc_subtest[y],
append_psr_subtest[z],
op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
@@ -1262,8 +1262,8 @@ int igt_main()
append_fbc_subtest[y],
append_psr_subtest[z],
op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
@@ -1283,8 +1283,8 @@ int igt_main()
append_fbc_subtest[y],
append_psr_subtest[z],
op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
@@ -1300,8 +1300,8 @@ int igt_main()
igt_describe("Test that selective fetch works on cursor plane");
igt_subtest_with_dynamic_f("%s%scursor-%s-sf", append_fbc_subtest[y],
append_psr_subtest[z], op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
@@ -1317,8 +1317,8 @@ int igt_main()
"moving cursor plane (no update)");
igt_subtest_with_dynamic_f("%s%scursor-%s-sf", append_fbc_subtest[y],
append_psr_subtest[z], op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
@@ -1334,8 +1334,8 @@ int igt_main()
"plane exceeding partially visible area (no update)");
igt_subtest_with_dynamic_f("%s%scursor-%s-sf", append_fbc_subtest[y],
append_psr_subtest[z], op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
@@ -1351,8 +1351,8 @@ int igt_main()
"exceeding fully visible area (no update)");
igt_subtest_with_dynamic_f("%s%scursor-%s-sf", append_fbc_subtest[y],
append_psr_subtest[z], op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
@@ -1369,8 +1369,8 @@ int igt_main()
igt_describe("Test that selective fetch works on moving overlay plane");
igt_subtest_with_dynamic_f("%s%s%s-sf-dmg-area", append_fbc_subtest[y],
append_psr_subtest[z], op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
@@ -1385,8 +1385,8 @@ int igt_main()
"plane (no update)");
igt_subtest_with_dynamic_f("%s%soverlay-%s-sf", append_fbc_subtest[y],
append_psr_subtest[z], op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
@@ -1402,8 +1402,8 @@ int igt_main()
"plane partially exceeding visible area (no update)");
igt_subtest_with_dynamic_f("%s%soverlay-%s-sf", append_fbc_subtest[y],
append_psr_subtest[z], op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
@@ -1419,8 +1419,8 @@ int igt_main()
"fully exceeding visible area (no update)");
igt_subtest_with_dynamic_f("%s%soverlay-%s-sf", append_fbc_subtest[y],
append_psr_subtest[z], op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
@@ -1437,8 +1437,8 @@ int igt_main()
"with blended overlay plane");
igt_subtest_with_dynamic_f("%s%s%s-sf-dmg-area", append_fbc_subtest[y],
append_psr_subtest[z], op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
@@ -1457,8 +1457,8 @@ int igt_main()
igt_describe("Test that selective fetch works on overlay plane");
igt_subtest_with_dynamic_f("%s%soverlay-%s-sf", append_fbc_subtest[y],
append_psr_subtest[z], op_str(data.op)) {
- for (i = 0; i < n_pipes; i++) {
- data.pipe = pipes[i];
+ for (i = 0; i < n_crtcs; i++) {
+ data.pipe = crtcs[i]->pipe;
data.output = outputs[i];
if (!pipe_output_combo_valid(&data))
--
2.52.0
next prev parent reply other threads:[~2026-02-20 14:02 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-20 14:01 [PATCH i-g-t 00/21] tests/kms: More igt_crtc_t conversions Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 01/21] tests/intel/kms_flip_scaled_crc: Remove unused 'enum pipe pipe' Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 02/21] tests/kms_concurrent: Actually run the test over all connected crtcs Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 03/21] tests/amdgpu/amd_abm: Don't use uninitialized 'pipe' Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 04/21] tests/kms: Use 'enum pipe' over int' Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 05/21] lib/kms: Add igt_crtc_for_crtc_id() Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 06/21] tests/kms_lease: Use igt_crtc_t instead of enum pipe Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 07/21] tests/kms_lease: Pass lease_t to prepare_crtc() Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 08/21] tests/intel/kms_frontbuffer_tracking: Use igt_crtc_t instead of enum pipe Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 09/21] tests/kms_plane_scaling: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 10/21] tests/drm_read: " Ville Syrjala
2026-02-20 14:01 ` Ville Syrjala [this message]
2026-02-20 14:01 ` [PATCH i-g-t 12/21] tests/kms_vblank: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 13/21] tests/kms_plane_multiple: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 14/21] tests/kms_tiled_display: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 15/21] tests/intel/kms_psr: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 16/21] tests/kms_prime: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 17/21] tests/chamelium: " Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 18/21] tests/kms: Use igt_crtc_t instead of enum pipe, part 1 Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 19/21] tests/kms: Use igt_crtc_t instead of enum pipe, part 2 Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 20/21] tests/kms: Use igt_crtc_t instead of enum pipe, part 3 Ville Syrjala
2026-02-20 14:01 ` [PATCH i-g-t 21/21] tests/kms: Use igt_crtc_t instead of enum pipe, part 4 Ville Syrjala
2026-02-20 17:33 ` ✓ Xe.CI.BAT: success for tests/kms: More igt_crtc_t conversions Patchwork
2026-02-20 17:49 ` ✓ i915.CI.BAT: " Patchwork
2026-02-21 1:27 ` ✗ i915.CI.Full: failure " Patchwork
2026-02-21 6:32 ` ✗ Xe.CI.FULL: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260220140154.4138-12-ville.syrjala@linux.intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox