summaryrefslogtreecommitdiff
path: root/test/dri2-nouveau.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dri2-nouveau.c')
-rw-r--r--test/dri2-nouveau.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dri2-nouveau.c b/test/dri2-nouveau.c
index 52de35e..bd85dda 100644
--- a/test/dri2-nouveau.c
+++ b/test/dri2-nouveau.c
@@ -49,10 +49,10 @@ static void setup(int fd)
}
}
-static void * init(DRI2Buffer *dri2buf)
+static void * init(DRI2Buffer *dri2buf, int plane)
{
struct nouveau_bo *bo = NULL;
- int ret = nouveau_bo_handle_ref(dev, dri2buf->names[0], &bo);
+ int ret = nouveau_bo_handle_ref(dev, dri2buf->names[plane], &bo);
if (ret) {
ERROR_MSG("nouveau_bo_handle_ref failed: %d", ret);
return NULL;