nouveau: store bo handle in public struct in bo_ref_handle
authorBen Skeggs <bskeggs@redhat.com>
Wed, 15 Apr 2009 02:44:21 +0000 (12:44 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 15 Apr 2009 02:44:21 +0000 (12:44 +1000)
libdrm/nouveau/nouveau_bo.c

index 023c6be..66466e3 100644 (file)
@@ -404,7 +404,8 @@ nouveau_bo_handle_ref(struct nouveau_device *dev, uint32_t handle,
                nvbo->size = req.size;
                nvbo->handle = req.handle;
        }
+
+       nvbo->base.handle = nvbo->handle;
        return 0;
 }