Commit c6388964 authored by Kenneth Graunke's avatar Kenneth Graunke

modesetting: Drop dumb_bo::map_count field and dead unmap code.

The drm kernel API for dumb BOs apparently doesn't include an unmap
ioctl, so we can't do much here.  It looks like this code was copied
from libkms, which was also unfinished.

We may as well delete the dead variable that simply gets incremented
and never read.
Signed-off-by: Kenneth Graunke's avatarKenneth Graunke <>
Tested-by: Jason Ekstrand's avatarJason Ekstrand <>
Reviewed-by: Keith Packard's avatarKeith Packard <>
parent 87cc0c0d
......@@ -74,7 +74,6 @@ dumb_bo_map(int fd, struct dumb_bo *bo)
void *map;
if (bo->ptr) {
return 0;
......@@ -93,15 +92,6 @@ dumb_bo_map(int fd, struct dumb_bo *bo)
return 0;
#if 0
static int
dumb_bo_unmap(int fd, struct dumb_bo *bo)
return 0;
dumb_bo_destroy(int fd, struct dumb_bo *bo)
......@@ -33,7 +33,6 @@ struct dumb_bo {
uint32_t handle;
uint32_t size;
void *ptr;
int map_count;
uint32_t pitch;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment