summaryrefslogtreecommitdiff
path: root/tests/kms_properties.c
AgeCommit message (Collapse)Author
2017-09-08tests/kms_properties: Require atomic for the atomic invalid props testVille Syrjälä
The invalid props test forgot to check for atomic. Add the required check. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2017-08-04tests/kms_properties: Don't set immutable propertiesDaniel Stone
If the kernel tells us it's immutable, trying to set it probably isn't going to succeed. There was previously a hard-coded list of immutable properties, keyed by name, but we can just test the flag instead, which is more future-proof. Fixes a failure seen with the IN_FORMATS property. v2: Remove the entire list apart from DPMS, replacing it with a test for immutable. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Daniel Vetter <daniel.vetter@intel.com> Cc: Ben Widawsky <ben@bwidawsk.net>
2017-06-07tests/kms_properties: Allow setting all connector properties now.Maarten Lankhorst
i915 connector properties have been converted to atomic, so all properties can now be set. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-04-12tests/kms_properties: Add GET_PROPERTY ioctl sanity checkDaniel Vetter
I've broken this accidentally. Let's make sure this doesn't happen anymore. Testcases suggested by Chris. Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2017-03-15kms_properties: Blacklist legacy link-status connector property.Maarten Lankhorst
This will be fixed by converting all connectors to atomic, but this fails for now. Blacklist it just like crtc_id temporarily. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-02-27kms_properties: Ignore CRTC_ID for the legacy caseMaarten Lankhorst
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-01-31tests/kms_properties: Add support for dynamic number of planesRobert Foss
Add changes reflecting the new support for dynamic number of planes per pipe. Signed-off-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2016-09-08kms_properties: Invalid atomic properties should return -ENOENTMaarten Lankhorst
This was already tested by kms_atomic when passing object id's as properties to set. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2016-09-07kms_properties: Add invalid property test.Maarten Lankhorst
This will attempt to set any property from any type to each mode object, to ensure that only enumerated properties can ever set to a mode object. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2016-08-25tests: Add kms_properties test.Maarten Lankhorst
This is a simple test that only tries to set the current property values back. It exposes the issue that some connector properties only work when set through the legacy path, because i915 doesn't handle atomic connector properties yet. The other way around is true too: The atomic CRTC_ID connector property cannot be set through legacy means yet. This causes the connector tests to fail on i915. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>