Commit 39868bd7 authored by Chris Wilson's avatar Chris Wilson Committed by Dave Airlie

drm: Compact booleans within struct drm_file

Replace the sparse array of booleans with a bitfield.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 1020dc69
...@@ -413,8 +413,12 @@ struct drm_prime_file_private { ...@@ -413,8 +413,12 @@ struct drm_prime_file_private {
/** File private data */ /** File private data */
struct drm_file { struct drm_file {
int always_authenticated; unsigned always_authenticated :1;
int authenticated; unsigned authenticated :1;
unsigned is_master :1; /* this file private is a master for a minor */
/* true when the client has asked us to expose stereo 3D mode flags */
unsigned stereo_allowed :1;
struct pid *pid; struct pid *pid;
kuid_t uid; kuid_t uid;
drm_magic_t magic; drm_magic_t magic;
...@@ -431,13 +435,8 @@ struct drm_file { ...@@ -431,13 +435,8 @@ struct drm_file {
struct file *filp; struct file *filp;
void *driver_priv; void *driver_priv;
int is_master; /* this file private is a master for a minor */
struct drm_master *master; /* master this node is currently associated with struct drm_master *master; /* master this node is currently associated with
N.B. not always minor->master */ N.B. not always minor->master */
/* true when the client has asked us to expose stereo 3D mode flags */
bool stereo_allowed;
/** /**
* fbs - List of framebuffers associated with this file. * fbs - List of framebuffers associated with this file.
* *
......
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