diff options
Diffstat (limited to 'src/gbm/main/gbm.c')
-rw-r--r-- | src/gbm/main/gbm.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c index 20ff3f280a7..75fc5d47c72 100644 --- a/src/gbm/main/gbm.c +++ b/src/gbm/main/gbm.c @@ -104,32 +104,6 @@ gbm_device_destroy(struct gbm_device *gbm) gbm->destroy(gbm); } -struct gbm_device * -_gbm_mesa_get_device(int fd) -{ - struct gbm_device *gbm = NULL; - struct stat buf; - dev_t dev; - int i; - - if (fd < 0 || fstat(fd, &buf) < 0 || !S_ISCHR(buf.st_mode)) { - errno = EINVAL; - return NULL; - } - - for (i = 0; i < device_num; ++i) { - dev = devices[i]->stat.st_rdev; - if (major(dev) == major(buf.st_rdev) && - minor(dev) == minor(buf.st_rdev)) { - gbm = devices[i]; - gbm->refcount++; - break; - } - } - - return gbm; -} - /** Create a gbm device for allocating buffers * * The file descriptor passed in is used by the backend to communicate with |