summaryrefslogtreecommitdiff
path: root/tests/mode/modetest.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@aurora.(none)>2008-01-10 05:03:13 +0100
committerJakob Bornecrantz <jakob@aurora.(none)>2008-01-10 05:03:13 +0100
commit0a4df3372aec219298e3787f6f377941bc51bfcb (patch)
tree4f39a17102927474030d399a5aac99efd3fa9a04 /tests/mode/modetest.c
parente04d942ee8e74fce90e332446e740a100d782033 (diff)
Updated test mode and added modedemo
Diffstat (limited to 'tests/mode/modetest.c')
-rw-r--r--tests/mode/modetest.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/mode/modetest.c b/tests/mode/modetest.c
index bd8372dc..c1f291b2 100644
--- a/tests/mode/modetest.c
+++ b/tests/mode/modetest.c
@@ -278,7 +278,15 @@ int testFrameBufferAdd(int fd, drmModeResPtr res)
printf("\tCreating BO\n");
/* TODO */
- ret = 1;
+ ret = drmBOCreate(fd, 800 * 600 * 4, 0, 0,
+ DRM_BO_FLAG_READ |
+ DRM_BO_FLAG_WRITE |
+ DRM_BO_FLAG_MEM_TT |
+ DRM_BO_FLAG_MEM_VRAM |
+ DRM_BO_FLAG_NO_EVICT,
+ DRM_BO_HINT_DONT_FENCE, &bo);
+
+ printf("\tgot %i\n", ret);
if (ret)
goto err;