From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 43AFC10E491 for ; Wed, 31 May 2023 08:12:26 +0000 (UTC) Message-ID: <1bcc402e-d861-bf25-fad2-d1f25e74558b@intel.com> Date: Wed, 31 May 2023 13:42:17 +0530 MIME-Version: 1.0 Content-Language: en-US To: juhapekka.heikkila@gmail.com, igt-dev@lists.freedesktop.org References: <20230529121143.327907-1-swati2.sharma@intel.com> <2e738b13-0afb-c049-1fff-c6108a23cdac@gmail.com> From: "Sharma, Swati2" In-Reply-To: <2e738b13-0afb-c049-1fff-c6108a23cdac@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [igt-dev] [PATCH i-g-t v2] tests/kms_rotation_crc: enable and optimize test for sim List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Sure JP. Thanks for the review. Will fix typo before merging. On 31-May-23 1:40 PM, Juha-Pekka Heikkila wrote: > look ok to me. While pushing you could fix typo from commit message, > "PO10" -> "P010". > > Reviewed-by: Juha-Pekka Heikkila > > On 29.5.2023 15.11, Swati Sharma wrote: >> To reduce execution time in simulation dropping RGB565 and PO10 >> formats (coverage is not compromised, we do have NV12 and RGB888 >> formats being validated). >> Also, skipping buffered CRC reusecrcfromlastround() in simulation. >> >> v2: -Add checks inside multiplaneskiproundcheck() and >>       reusecrcfromlastround() (JP) >> >> Signed-off-by: Swati Sharma >> --- >>   tests/kms_rotation_crc.c | 13 +++++++++++++ >>   1 file changed, 13 insertions(+) >> >> diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c >> index 28b4fd27..0a22cc22 100644 >> --- a/tests/kms_rotation_crc.c >> +++ b/tests/kms_rotation_crc.c >> @@ -719,6 +719,16 @@ static bool multiplaneskiproundcheck(data_t >> *data, planeinfos p[2]) >>       if (!igt_plane_has_rotation(p[1].plane, p[1].fbinfo->rotation)) >>           return false; >> +    if (igt_run_in_simulation() && >> +       (multiplaneformatlist[p[0].formatindex] == DRM_FORMAT_P010 || >> +        multiplaneformatlist[p[0].formatindex] == DRM_FORMAT_RGB565)) >> +        return false; >> + >> +    if (igt_run_in_simulation() && >> +       (multiplaneformatlist[p[1].formatindex] == DRM_FORMAT_P010 || >> +        multiplaneformatlist[p[1].formatindex] == DRM_FORMAT_RGB565)) >> +        return false; >> + >>       return true; >>   } >> @@ -765,6 +775,9 @@ static bool reusecrcfromlastround(planeinfos p[2], >> int lastroundp1format, >>                     int lastroundp0rotation, >>                     int lastroundp1rotation) >>   { >> +    if (igt_run_in_simulation()) >> +        return false; >> + >>       if (planarcheck != 1) >>           return false; >