mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 09:10:11 +01:00
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
2 changed files with 1 additions and 8 deletions
|
|
@ -106,9 +106,7 @@ gbm_device_get_format_modifier_plane_count(struct gbm_device *gbm,
|
||||||
GBM_EXPORT void
|
GBM_EXPORT void
|
||||||
gbm_device_destroy(struct gbm_device *gbm)
|
gbm_device_destroy(struct gbm_device *gbm)
|
||||||
{
|
{
|
||||||
gbm->refcount--;
|
gbm->destroy(gbm);
|
||||||
if (gbm->refcount == 0)
|
|
||||||
gbm->destroy(gbm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Create a gbm device for allocating buffers
|
/** Create a gbm device for allocating buffers
|
||||||
|
|
@ -139,8 +137,6 @@ gbm_create_device(int fd)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
gbm->dummy = gbm_create_device;
|
gbm->dummy = gbm_create_device;
|
||||||
gbm->stat = buf;
|
|
||||||
gbm->refcount = 1;
|
|
||||||
|
|
||||||
return gbm;
|
return gbm;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@
|
||||||
#define INTERNAL_H_
|
#define INTERNAL_H_
|
||||||
|
|
||||||
#include "gbm.h"
|
#include "gbm.h"
|
||||||
#include <sys/stat.h>
|
|
||||||
|
|
||||||
/* GCC visibility */
|
/* GCC visibility */
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
|
|
@ -54,8 +53,6 @@ struct gbm_device {
|
||||||
|
|
||||||
int fd;
|
int fd;
|
||||||
const char *name;
|
const char *name;
|
||||||
unsigned int refcount;
|
|
||||||
struct stat stat;
|
|
||||||
|
|
||||||
void (*destroy)(struct gbm_device *gbm);
|
void (*destroy)(struct gbm_device *gbm);
|
||||||
int (*is_format_supported)(struct gbm_device *gbm,
|
int (*is_format_supported)(struct gbm_device *gbm,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue