summaryrefslogtreecommitdiff
path: root/tests/kms_plane_cursor.c
AgeCommit message (Collapse)Author
2021-10-28tests/kms_plane_cursor: igt_require_pipe_crc for test_initMark Yacoub
[Why] test_init uses CRC in debugfs which is not supported by some drivers. [How] igt_require_pipe_crc before igt_pipe_crc_new is called. Test: igt@kms_plane_cursor@pipe-A-overlay-size-64 on ChromeOS Jacuzzi (MTK) Signed-off-by: Mark Yacoub <markyacoub@chromium.org> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2021-05-19tests/kms_plane_cursor: Reset the state before exiting the testBhanuprakash Modem
Before starting the next subtest, clean up the states to default values, those are assumed by other tests. Cc: Imre Deak <imre.deak@intel.com> Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
2021-01-28tests/kms_plane_cursor:added subtest descriptionArundhati Hagaragi
Added description for all subtests Signed-off-by: Arundhati Hagaragi <arundhati.hagaragi@intel.com> Cc: Gupta, Nidhi1 <nidhi1.gupta@intel.com> Cc: B S, Karthik <Karthik.B.S@intel.com> Reviewed-by: Kunal Joshi <kunal1.joshi@intel.com>
2020-08-06tests: use an empty brace initializerCarlos Santa
In some sandboxes the toolchain complains about missing braces around initializer, however, using an empty initializer is enough to shut out the compiler. ../tests/kms_plane_cursor.c: In function '__real_main_302': ../tests/kms_plane_cursor.c:305:2 error: missing braces around initializer [-Werror=missing-braces] data_t data = { 0 }; v2: Use an empty initializer { } instead of { 0 } <Petri Latvala> Signed-off-by: Carlos Santa <carlos.santa@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2020-07-07lib/igt_fb: remove extra parameters from igt_put_cairo_ctxMelissa Wen
The function igt_put_cairo_ctx currently requires three parameters, but only one of them is used in it. This patch removes the useless parameters, making the code more readable and cohesive. It also applies the change to all occurrences of the function in the code. Signed-off-by: Melissa Wen <melissa.srw@gmail.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
2019-12-03tests/i915/kms: remove igt_skip_on_simulation()Swati Sharma
Removing igt_skip_on_simulation() from all the kms tests since this feature is not supported anymore. v2: Rebase Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Signed-off-by: Karthik B S <karthik.b.s@intel.com> Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
2019-04-15tests: Add kms_plane_cursor testsNicholas Kazlauskas
Tests various cursor plane interactions with primary and overlay planes. Correctness is verified by comparing CRC values to reference buffers drawn on the primary plane. There are existing generic multi-plane interaction tests but these don't test positional output on overlapping planes or extensively cover edge and corner cases for offseting and positioning planes based on DRM parameters. On hardware without dedicated cursor planes (such as AMDGPU) these tests are helpful for verifying software calculations done for positioning the cursor plane. Cc: Leo Li <sunpeng.li@amd.com> Cc: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Reviewed-by: Leo Li <sunpeng.li@amd.com>