summaryrefslogtreecommitdiff
path: root/tests/kms_getfb.c
AgeCommit message (Collapse)Author
2018-04-04tests/kms_getfb: Use fixtures and subtest groupsDaniel Stone
Make sure we gently skip when required features (CCS, getfb2) are not supported on the running kernel, and clean up properly after ourselves. Signed-off-by: Daniel Stone <daniels@collabora.com> Acked-by: Antonio Argenziano <antonio.argenziano@intel.com>
2018-03-30tests/kms_getfb: Split property-ID get into helperDaniel Stone
We'll want to reuse this, so split it out into a (smaller!) helper. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2018-03-30tests/kms_getfb: Test we reject CCS buffersDaniel Stone
The getfb ioctl only supports returning a single buffer handle (mirroring addfb), which means it should refuse to return us back CCS buffers. This is enforced by the kernel as of b24791fe00f8. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2018-03-22tests/kms_getfb: Add test for getfbDaniel Stone
Add a new test exercising the GetFB API, specifically including its behaviour of always returning new handles even if the client already has a handle to the GEM buffer. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>