summaryrefslogtreecommitdiff
path: root/tests/i915/kms_flip_scaled_crc.c
AgeCommit message (Collapse)Author
2022-07-01tests/kms_flip_scaled_crc: Validate NN scaling filterSwati Sharma
SCALING_FILTER can be used either as plane scaler property or CRTC scaler property. The value of this property can be one of the following: Default: Driver's default scaling filter Nearest Neighbor: Nearest Neighbor scaling filter If NN is used for scaling, sharpness is preserved whereas if we use default scaling we can see blurriness at edges. v2: -no need to set pipe scaler filter property v3: -addition of new lines to improve readability -use of SPDX licence placeholder -close(data.drm_fd) v4: -instead of creating new i-g-t, tweaked kms_flip_scaled_crc to validate both default and nn scaling filters v5: -removed duplicate block -added platform check for nn v6:(juha): -Don't skip on missing property, assert on where expect to find it. - Allow test to run correctly on all gen9 upwards platforms. - run default and NN filters on same test. Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2022-07-01tests/i915/kms_flip_scaled_crc: Add new tests covering modifiers and ↵Swati Sharma
pixel-formats New test cases are added covering various modifiers and pixel-formats. v2: fixed typo Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2022-07-01tests/i915/kms_flip_scaled_crc: Convert tests to dynamicSwati Sharma
Convert the existing subtests to dynamic subtests at pipe/output level. v2: Refactored code in such a manner that once test has been run successfully on chosen pipe that pipe will not be tested again as this test is testing pipe feature. No need to run separately for each connector using all pipes. v3: Changed seq to avoid modetoset as a dangling ptr v4: On eDP 1080p with 144Hz vrefresh, test fails with cdclk lim, however it passes with 90Hz vrefresh. Added the check to handle this scenario. v5: Minor fixes Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
2022-04-22tests/i915/kms_flip_scaled_crc: Fix error messageJuha-Pekka Heikkila
There was newline missing from skipping message which caused skips to show as incomplete. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/5749 Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2021-12-22tests/i915/kms_flip_scaled_crc: Add upscaling testsSwati Sharma
In this patch, added upscaling tests 960x540->1920x1080. Existing downscaled tests reused for upscaling scenarios. Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
2021-12-22tests/i915/kms_flip_scaled_crc: Rename downscaling testsSwati Sharma
Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
2021-09-16tests/kms: Move Intel specific kms tests to i915 directoryBhanuprakash Modem
As KMS tests on IGT are officially supported on multiple SoCs and there is an active development on it. So, KMS tests are meant to be generic and if we need to test few things specific to Intel, we can use igt_require_intel(). But if the whole test is Intel specific, then the best place for the test would be tests/i915. This patch will * Move all Intel specific kms tests to tests/i915 directory. * Update the tests those are generic but still open the driver as 'drm_open_driver_master(DRIVER_INTEL);'. V2: * Few more tests V3: * Remove cleanups (will submit separate patch later) * Move few more tests to i915 dir (Karthik) V4: * Move kms_big_joiner.c to i915 dir (Karthik) Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Mark Yacoub <markyacoub@chromium.org> Cc: Petri Latvala <petri.latvala@intel.com> Cc: Vidya Srinivas <vidya.srinivas@intel.com> Cc: Karthik B S <karthik.b.s@intel.com> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Mark Yacoub <markyacoub@chromium.org> Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Reviewed-by: Karthik B S <karthik.b.s@intel.com>