From: "Borah, Chaitanya Kumar" <chaitanya.kumar.borah@intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
<igt-dev@lists.freedesktop.org>,
Swati Sharma <swati2.sharma@intel.com>,
Harry Wentland <harry.wentland@amd.com>,
Alex Hung <alex.hung@amd.com>
Subject: Re: [i-g-t] tests/kms_colorop: Use local variable for color pipeline cap
Date: Wed, 2 Sep 2026 11:10:13 +0530 [thread overview]
Message-ID: <8b3a4af9-b040-42f9-8a36-3357f8804107@intel.com> (raw)
In-Reply-To: <20260901165532.jsp45zjicwvdeh7d@kamilkon-DESK.igk.intel.com>
On 9/1/2026 10:25 PM, Kamil Konieczny wrote:
> Hi Borah,,
> On 2026-08-28 at 15:35:29 +0530, Borah, Chaitanya Kumar wrote:
>> Hi Kamil,
>>
>> On 8/27/2026 9:06 PM, Kamil Konieczny wrote:
>>> Hi Chaitanya,
>>> On 2026-08-03 at 13:33:40 +0530, Chaitanya Kumar Borah wrote:
>>>
>>> small nit about subject, please do not use "C code to english",
>>> rather describe what you try to achive, here better:
>>>
>>> [i-g-t] tests/kms_colorop: Get cap color pipeline only once
>>>
>>
>> Noted.
>>
>> Swati, we can perhaps change this while merging if there are no further
>> changes needed.
>
> There is one change needed so please change subject, fix source,
> add any r-b you got and resend.
>
I thought we can avoid a CI cycle by not re-sending since it is just a
commit message change, but I can resend.
==
Chaitanya
> Regards,
> Kamil
>
>>
>> ==
>> Chaitanya
>>
>>> Regards,
>>> Kamil
>>>
>>>> Following the pattern in kms_color_pipeline, set
>>>> DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE once and stash the result in a
>>>> local variable, then propagate it to display->has_plane_color_pipeline
>>>> after the final igt_display_require() (which reinitializes the display
>>>> state). This avoids calling drmSetClientCap() twice.
>>>>
>>>> Cc: Swati Sharma <swati2.sharma@intel.com>
>>>> Cc: Harry Wentland <harry.wentland@amd.com>
>>>> Cc: Alex Hung <alex.hung@amd.com>
>>>> Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
>>>> ---
>>>> tests/kms_colorop.c | 9 +++++----
>>>> 1 file changed, 5 insertions(+), 4 deletions(-)
>>>>
>>>> diff --git a/tests/kms_colorop.c b/tests/kms_colorop.c
>>>> index 16db0b8ad..d573d2ceb 100644
>>>> --- a/tests/kms_colorop.c
>>>> +++ b/tests/kms_colorop.c
>>>> @@ -406,6 +406,7 @@ int igt_main_args("d", long_options, help_str, opt_handler, NULL)
>>>> igt_display_t display;
>>>> int i, j, ret;
>>>> + int has_plane_color_pipeline = 0;
>>>> igt_fixture() {
>>>> display.drm_fd = drm_open_driver_master(DRIVER_ANY);
>>>> @@ -417,15 +418,15 @@ int igt_main_args("d", long_options, help_str, opt_handler, NULL)
>>>> igt_require_f(!ret, "error setting DRM_CLIENT_CAP_WRITEBACK_CONNECTORS\n");
>>>> - igt_display_require(&display, display.drm_fd);
>>>> if (drmSetClientCap(display.drm_fd, DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE, 1) == 0)
>>>> - display.has_plane_color_pipeline = 1;
>>>> + has_plane_color_pipeline = 1;
>>>> +
>>>> + igt_display_require(&display, display.drm_fd);
>>>> kmstest_set_vt_graphics_mode();
>>>> igt_display_require(&display, display.drm_fd);
>>>> - if (drmSetClientCap(display.drm_fd, DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE, 1) == 0)
>>>> - display.has_plane_color_pipeline = 1;
>>>> + display.has_plane_color_pipeline = has_plane_color_pipeline;
>>>> igt_require(display.is_atomic);
>>>> }
>>>> --
>>>> 2.50.1
>>>>
>>
prev parent reply other threads:[~2026-09-02 5:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 8:03 [i-g-t] tests/kms_colorop: Use local variable for color pipeline cap Chaitanya Kumar Borah
2026-08-03 19:33 ` ✗ Xe.CI.FULL: failure for " Patchwork
2026-08-04 13:42 ` ✓ Xe.CI.BAT: success " Patchwork
2026-08-04 14:00 ` ✓ i915.CI.BAT: " Patchwork
2026-08-04 18:18 ` ✓ i915.CI.Full: " Patchwork
2026-08-04 20:37 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-08-27 5:31 ` [i-g-t] " Sharma, Swati2
2026-08-28 0:15 ` Alex Hung
2026-08-28 10:04 ` Borah, Chaitanya Kumar
2026-08-28 15:32 ` Alex Hung
2026-09-01 16:54 ` Kamil Konieczny
2026-09-02 5:39 ` Borah, Chaitanya Kumar
2026-08-27 15:36 ` Kamil Konieczny
2026-08-28 10:05 ` Borah, Chaitanya Kumar
2026-09-01 16:55 ` Kamil Konieczny
2026-09-02 5:40 ` Borah, Chaitanya Kumar [this message]
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=8b3a4af9-b040-42f9-8a36-3357f8804107@intel.com \
--to=chaitanya.kumar.borah@intel.com \
--cc=alex.hung@amd.com \
--cc=harry.wentland@amd.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=swati2.sharma@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.