gbm: Remove stat and refcount fields from gbm_device
These were unused. Signed-off-by: James Jones <jajones@nvidia.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9902>
This commit is contained in:
parent
4077768f29
commit
c5e849bddf
|
@ -106,9 +106,7 @@ gbm_device_get_format_modifier_plane_count(struct gbm_device *gbm,
|
|||
GBM_EXPORT void
|
||||
gbm_device_destroy(struct gbm_device *gbm)
|
||||
{
|
||||
gbm->refcount--;
|
||||
if (gbm->refcount == 0)
|
||||
gbm->destroy(gbm);
|
||||
gbm->destroy(gbm);
|
||||
}
|
||||
|
||||
/** Create a gbm device for allocating buffers
|
||||
|
@ -139,8 +137,6 @@ gbm_create_device(int fd)
|
|||
return NULL;
|
||||
|
||||
gbm->dummy = gbm_create_device;
|
||||
gbm->stat = buf;
|
||||
gbm->refcount = 1;
|
||||
|
||||
return gbm;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#define INTERNAL_H_
|
||||
|
||||
#include "gbm.h"
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* GCC visibility */
|
||||
#if defined(__GNUC__)
|
||||
|
@ -54,8 +53,6 @@ struct gbm_device {
|
|||
|
||||
int fd;
|
||||
const char *name;
|
||||
unsigned int refcount;
|
||||
struct stat stat;
|
||||
|
||||
void (*destroy)(struct gbm_device *gbm);
|
||||
int (*is_format_supported)(struct gbm_device *gbm,
|
||||
|
|
Loading…
Reference in New Issue