aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/planetest/atomictest.c')
-rw-r--r--tests/planetest/atomictest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/planetest/atomictest.c b/tests/planetest/atomictest.c
index 5fec911a..891d242c 100644
--- a/tests/planetest/atomictest.c
+++ b/tests/planetest/atomictest.c
@@ -47,7 +47,7 @@ int main(int argc, char *argv[])
47 struct sp_plane **plane = NULL; 47 struct sp_plane **plane = NULL;
48 struct sp_crtc *test_crtc; 48 struct sp_crtc *test_crtc;
49 fd_set fds; 49 fd_set fds;
50 drmModePropertySetPtr pset; 50 drmModeAtomicReqPtr pset;
51 drmEventContext event_context = { 51 drmEventContext event_context = {
52 .version = DRM_EVENT_CONTEXT_VERSION, 52 .version = DRM_EVENT_CONTEXT_VERSION,
53 .page_flip_handler = page_flip_handler, 53 .page_flip_handler = page_flip_handler,
@@ -100,7 +100,7 @@ int main(int argc, char *argv[])
100 fill_bo(plane[i]->bo, 0xFF, 0xFF, 0xFF, 0xFF); 100 fill_bo(plane[i]->bo, 0xFF, 0xFF, 0xFF, 0xFF);
101 } 101 }
102 102
103 pset = drmModePropertySetAlloc(); 103 pset = drmModeAtomicAlloc();
104 if (!pset) { 104 if (!pset) {
105 printf("Failed to allocate the property set\n"); 105 printf("Failed to allocate the property set\n");
106 goto out; 106 goto out;
@@ -124,8 +124,8 @@ int main(int argc, char *argv[])
124 } 124 }
125 } 125 }
126 126
127 ret = drmModePropertySetCommit(dev->fd, 127 ret = drmModeAtomicCommit(dev->fd, pset,
128 DRM_MODE_PAGE_FLIP_EVENT, NULL, pset); 128 DRM_MODE_PAGE_FLIP_EVENT, NULL);
129 if (ret) { 129 if (ret) {
130 printf("failed to commit properties ret=%d\n", ret); 130 printf("failed to commit properties ret=%d\n", ret);
131 goto out; 131 goto out;
@@ -139,7 +139,7 @@ int main(int argc, char *argv[])
139 drmHandleEvent(dev->fd, &event_context); 139 drmHandleEvent(dev->fd, &event_context);
140 } 140 }
141 141
142 drmModePropertySetFree(pset); 142 drmModeAtomicFree(pset);
143 143
144 for (i = 0; i < num_test_planes; i++) 144 for (i = 0; i < num_test_planes; i++)
145 put_sp_plane(plane[i]); 145 put_sp_plane(plane[i]);