From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4734E10E30A for ; Mon, 11 Sep 2023 15:10:08 +0000 (UTC) Message-ID: <3ec1a44b-52f1-c3a4-0cc0-f1a6a2230bbb@intel.com> Date: Mon, 11 Sep 2023 20:40:02 +0530 MIME-Version: 1.0 Content-Language: en-US To: "Modem, Bhanuprakash" , igt-dev@lists.freedesktop.org References: <20230908175039.1291593-1-swati2.sharma@intel.com> <20230908175039.1291593-4-swati2.sharma@intel.com> From: "Sharma, Swati2" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [igt-dev] [PATCH i-g-t 3/5] tests/intel/kms_pm_dc: Use linear modifier to set primary plane List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: On 11-Sep-23 8:15 PM, Modem, Bhanuprakash wrote: > Hi Swati, > > On Fri-08-09-2023 11:20 pm, Swati Sharma wrote: >> To setup primary plane, use DRM_FORMAT_MOD_LINEAR instead of >> I915_FORMAT_MOD_X_TILED. >> >> Signed-off-by: Swati Sharma >> --- >>   tests/intel/kms_pm_dc.c | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c >> index 895fe4b4c..b5779eaa5 100644 >> --- a/tests/intel/kms_pm_dc.c >> +++ b/tests/intel/kms_pm_dc.c >> @@ -231,7 +231,7 @@ static void setup_primary(data_t *data) >>       igt_create_color_fb(data->drm_fd, >>                   data->mode->hdisplay, data->mode->vdisplay, >>                   DRM_FORMAT_XRGB8888, >> -                I915_FORMAT_MOD_X_TILED, >> +                DRM_FORMAT_MOD_LINEAR, > > Any special reason for this change? For DC states validation, it doesn't matter with which modifier we are creating fb. With this change we can make this test independent of x-tiling support. > > - Bhanu > >>                   1.0, 1.0, 1.0, >>                   &data->fb_white); >>       igt_plane_set_fb(primary, &data->fb_white);