summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-10-16 15:08:26 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-10-16 15:08:26 +0200
commit74ac5de14ebb77aeb39d698e9e8d188c9d9abd76 (patch)
tree5489e1d53dcafdc0373a26e15b7d55154d10fc3f
parentd66e924680a3504aa1feb9c228145a95d1a16b1e (diff)
Adapt to libdrm buffer object API changes.
-rw-r--r--src/i830_memory.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c
index 2ddc4545..bdfbba67 100644
--- a/src/i830_memory.c
+++ b/src/i830_memory.c
@@ -260,7 +260,7 @@ i830_free_memory(ScrnInfoPtr pScrn, i830_memory *mem)
if (mem->bo.size != 0) {
I830Ptr pI830 = I830PTR(pScrn);
- drmBOUnReference(pI830->drmSubFD, &mem->bo);
+ drmBOUnreference(pI830->drmSubFD, &mem->bo);
if (pI830->bo_list == mem)
pI830->bo_list = mem->next;
if (mem->next)
@@ -744,8 +744,8 @@ i830_allocate_memory_bo(ScrnInfoPtr pScrn, const char *name,
if (flags & ALLOW_SHARING)
mask |= DRM_BO_FLAG_SHAREABLE;
- ret = drmBOCreate(pI830->drmSubFD, 0, size, align / GTT_PAGE_SIZE, NULL,
- drm_bo_type_dc, mask, 0, &mem->bo);
+ ret = drmBOCreate(pI830->drmSubFD, size, align / GTT_PAGE_SIZE, NULL,
+ mask, 0, &mem->bo);
if (ret) {
xfree(mem->name);
xfree(mem);
@@ -762,7 +762,7 @@ i830_allocate_memory_bo(ScrnInfoPtr pScrn, const char *name,
/* Bind it if we currently control the VT */
if (pScrn->vtSema) {
if (!i830_bind_memory(pScrn, mem)) {
- drmBOUnReference(pI830->drmSubFD, &mem->bo);
+ drmBOUnreference(pI830->drmSubFD, &mem->bo);
xfree(mem->name);
xfree(mem);
return NULL;