summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-02-29 14:07:29 +1000
committerDave Airlie <airlied@redhat.com>2008-02-29 14:07:29 +1000
commit0e72819629741339af46d0e303f33482acdf0972 (patch)
treecf7528c9a70631b7bc60557aa0f09f7dfcc3f5e1 /tests
parent01dcc47d895997f77c9457558e974d41c23ed4e1 (diff)
drm: change fb api to take a bo handle not the bo pointer.
Diffstat (limited to 'tests')
-rw-r--r--tests/mode/modetest.c2
-rw-r--r--tests/modedemo/demo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/mode/modetest.c b/tests/mode/modetest.c
index ab0cdc9c..a50b0cc5 100644
--- a/tests/mode/modetest.c
+++ b/tests/mode/modetest.c
@@ -291,7 +291,7 @@ int testFrameBufferAdd(int fd, drmModeResPtr res)
goto err;
printf("\tAdding FB\n");
- ret = drmModeAddFB(fd, 800, 600, 32, 8, 0, &bo, &fb);
+ ret = drmModeAddFB(fd, 800, 600, 32, 8, 0, bo->handle, &fb);
if (ret)
goto err_bo;
diff --git a/tests/modedemo/demo.c b/tests/modedemo/demo.c
index db51cd66..00020bde 100644
--- a/tests/modedemo/demo.c
+++ b/tests/modedemo/demo.c
@@ -483,7 +483,7 @@ drmModeFBPtr createFB(int fd, drmModeResPtr res)
goto err;
}
- ret = drmModeAddFB(fd, SIZE_X, SIZE_Y, 32, 32, PITCH * 4, &bo, &fb);
+ ret = drmModeAddFB(fd, SIZE_X, SIZE_Y, 32, 32, PITCH * 4, bo->handle, &fb);
if (ret)
goto err_bo;