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 <kenneth@whitecape.org>
Tested-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Kenneth Graunke 2014-12-09 11:26:39 -08:00
parent 87cc0c0d31
commit c6388964b0
2 changed files with 0 additions and 11 deletions

View File

@ -74,7 +74,6 @@ dumb_bo_map(int fd, struct dumb_bo *bo)
void *map;
if (bo->ptr) {
bo->map_count++;
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)
{
bo->map_count--;
return 0;
}
#endif
int
dumb_bo_destroy(int fd, struct dumb_bo *bo)
{

View File

@ -33,7 +33,6 @@ struct dumb_bo {
uint32_t handle;
uint32_t size;
void *ptr;
int map_count;
uint32_t pitch;
};