diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-29 04:55:58 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-11-05 23:27:45 -0500 |
commit | 39868bd7668bd47308b1dfd97c212757caee764f (patch) | |
tree | 01189487886c8285e499630e468c9dc678ac76c3 /include/drm/drmP.h | |
parent | 1020dc6990168a5081ffad620c440e220f05b460 (diff) |
drm: Compact booleans within struct drm_file
Replace the sparse array of booleans with a bitfield.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r-- | include/drm/drmP.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index ea8bff3c8468..b3e4fa213000 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -413,8 +413,12 @@ struct drm_prime_file_private { | |||
413 | 413 | ||
414 | /** File private data */ | 414 | /** File private data */ |
415 | struct drm_file { | 415 | struct drm_file { |
416 | int always_authenticated; | 416 | unsigned always_authenticated :1; |
417 | int authenticated; | 417 | unsigned authenticated :1; |
418 | unsigned is_master :1; /* this file private is a master for a minor */ | ||
419 | /* true when the client has asked us to expose stereo 3D mode flags */ | ||
420 | unsigned stereo_allowed :1; | ||
421 | |||
418 | struct pid *pid; | 422 | struct pid *pid; |
419 | kuid_t uid; | 423 | kuid_t uid; |
420 | drm_magic_t magic; | 424 | drm_magic_t magic; |
@@ -431,13 +435,8 @@ struct drm_file { | |||
431 | struct file *filp; | 435 | struct file *filp; |
432 | void *driver_priv; | 436 | void *driver_priv; |
433 | 437 | ||
434 | int is_master; /* this file private is a master for a minor */ | ||
435 | struct drm_master *master; /* master this node is currently associated with | 438 | struct drm_master *master; /* master this node is currently associated with |
436 | N.B. not always minor->master */ | 439 | N.B. not always minor->master */ |
437 | |||
438 | /* true when the client has asked us to expose stereo 3D mode flags */ | ||
439 | bool stereo_allowed; | ||
440 | |||
441 | /** | 440 | /** |
442 | * fbs - List of framebuffers associated with this file. | 441 | * fbs - List of framebuffers associated with this file. |
443 | * | 442 | * |