summaryrefslogtreecommitdiff
path: root/tests/kms_3d.c
AgeCommit message (Collapse)Author
2018-10-04igt: Check drmModeGetResources()Chris Wilson
If KMS is not supported on the device, drmModeGetResources() will return NULL, often this is an indication that we should not attempt to run the test. Although it would be preferred to use something like igt_require_display() as the canonical check and assert that drmModeGetResources() did not hit an error, it is not always practical as the tests do not utilize the common igt_display abstraction. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
2015-12-04lib/kms+tests: Use cached connector stateDaniel Vetter
Speeds up testcases except for those where we want to exercise the probing itself. The only exceptions left where we do a full probe are - pm_rpm: We use it to make sure the kernel doesn't get things wrong with power domains, so we really want to exercise the full probe paths. And there the only place really is the specific validation done with the data gathered by get_drm_info. - kmstest_force_ functions: Newer kernels should be better at re-probing state when the force sysfs fields change, but better safe than sorry. v2: I also consolidated the start_n_modes and start_connectors while at it - move one of the fixup hunks to this patch that accidentally got misplaced (Thomas). Cc: Thomas Wood <thomas.wood@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-11-16tests/kms_3d: Use XRGB8888 instead of ARGB8888Ville Syrjälä
We don't allow ARGB8888 anymore on primary planes on most platforms, so use XRGB8888 instead as the format. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-11-16tests/kms_3d: Use igt_assert_eq()Ville Syrjälä
Would be nice to see how many stereo modes we managed to extract from the EDID if it doesn't match the expected 13. So use igt_assert_eq() which prints the real count on failure. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-11-11tests: remove unnecessary igt_exit callsThomas Wood
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-09-11convert drm_open_any*() calls to drm_open_driver*(DRIVER_INTEL) calls with cocciMicah Fedke
Apply the new API to all call sites within the test suite using the following semantic patch: // Semantic patch for replacing drm_open_any* with arch-specific drm_open_driver* calls @@ identifier i =~ "\bdrm_open_any\b"; @@ - i() + drm_open_driver(DRIVER_INTEL) @@ identifier i =~ "\bdrm_open_any_master\b"; @@ - i() + drm_open_driver_master(DRIVER_INTEL) @@ identifier i =~ "\bdrm_open_any_render\b"; @@ - i() + drm_open_driver_render(DRIVER_INTEL) @@ identifier i =~ "\b__drm_open_any\b"; @@ - i() + __drm_open_driver(DRIVER_INTEL) Signed-off-by: Micah Fedke <micah.fedke@collabora.co.uk> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-08-21lib: add a single include headerThomas Wood
Add a header that includes all the headers for the library. This allows reorganisation of the library without affecting programs using it and also simplifies the headers that need to be included to use the library. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-05-29tests/kms_3d: Reduce the number of expected stereo 3D modesVille Syrjälä
Currently the test expects to find 15 stereo 3D modes, however the number of stereo modes we get from the current kernel EDID parser is actually 13. The extra two modes we had previously were GTF modes, which are no longer getting added by the kernel since we have corresponding CEA/DMT modes available. So having the GTF modes in the list was not actually intentional. The kernel commit that change the behaviour: commit bfcd74d2aeda25a78f7cc92f80650218b1bce0ca Author: Ville Syrjälä <ville.syrjala@linux.intel.com> Date: Thu Apr 2 17:02:11 2015 +0300 drm/edid: Add DMT modes with ID > 0x50 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90368 Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-03-12tiling: Convert framebuffer helpers to use fb modifiersTvrtko Ursulin
This converts the IGT API only, underneath legacy set_tiling is still used. v2: One got away in kms_flip. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-12-04lib: remove igt_edid.hThomas Wood
This has been replaced by igt_kms_get_base_edid(). Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-12-04tests: use base edidThomas Wood
Use the base edid for testing, which includes several different display modes. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-11-06docs: add some test descriptionsThomas Wood
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-09-30test/kms, pm: use drm_open_any_masterImre Deak
These tests require DRM master right, so make sure they have it from the beginning. This gives an early indication if another DRM master is running and makes the given test skip (with a proper explanation of the reason) instead of exiting with error. Signed-off-by: Imre Deak <imre.deak@intel.com>
2014-09-05tests/kms_3d: skip if connectors cannot be forcedThomas Wood
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-09-05tests: add kms_3d testThomas Wood
Add a test to verify creation and use of 3D stereo modes. v2: update for API changes Signed-off-by: Thomas Wood <thomas.wood@intel.com>