Simon Ser
333e454e98
test: make mock drmModeAtomicAddProperty return cursor
...
For consistency with the original libdrm function.
2019-11-29 11:06:57 +01:00
Simon Ser
d51e2fb2fe
test/libdrm_mock: bump resource limitations
...
Bump the maximum number of layers and properties to allow more aggressive
benchmarking.
2019-10-30 21:16:42 +01:00
Simon Ser
ca0cbbee02
test: add liftoff_mock_commit_count
...
This allows tests to read the number of atomic commits performed by the library.
2019-10-14 18:44:48 +03:00
Simon Ser
d9024483c8
test: make our mock drmModeAtomicReq support more properties
...
We are hitting the 64 properties limit in some new tests.
2019-09-14 20:59:11 +03:00
Simon Ser
060023c6f1
test: fix atomic commit layer compatibility
...
Used wrong index while iterating.
2019-09-13 22:34:34 +03:00
Simon Ser
54bb501cae
test: add liftoff_mock_drm_get_plane
...
Allows to get a mock plane from a plane ID.
2019-09-13 19:46:21 +03:00
Simon Ser
1cd18f9156
test: mock atomic commit improvements
...
Don't fail the commit if FB_ID and CRTC_ID are set to zero. Print the reason
why the commit fails.
2019-09-13 19:44:12 +03:00
Simon Ser
5afeeb531a
Add test framework
...
When testing the library, the libdrm dependency is swapped with a mock libdrm.
The test sets up the mock libdrm's internal state and then runs the test.
2019-09-13 10:33:49 +03:00