mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
UPSTREAM: drm/file: Uncompact the feature flags
This essentially undoes commit39868bd766Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Oct 29 08:55:58 2013 +0000 drm: Compact booleans within struct drm_file We do lockless access to these flags everywhere, and it's kinda not a great idea to mix lockless and bitfields. Aside from that gcc isn't generating great code for these. If this ever becomes an issue size-wise, I think we need atomic_t here and atomic bitflag ops. Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: David Herrmann <dh.herrmann@gmail.com> Cc: Dave Airlie <airlied@redhat.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181102132543.16486-2-daniel.vetter@ffwll.ch (cherry picked from commit078b7de412) Change-Id: I3643619209bb9e292fb1a3c273f1a52cc4a4de74 Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
committed by
Jeffy Chen
parent
45298c2d6e
commit
15ca5d9432
@@ -164,14 +164,14 @@ struct drm_file {
|
||||
* See also the :ref:`section on primary nodes and authentication
|
||||
* <drm_primary_node>`.
|
||||
*/
|
||||
unsigned authenticated :1;
|
||||
bool authenticated;
|
||||
|
||||
/**
|
||||
* @stereo_allowed:
|
||||
*
|
||||
* True when the client has asked us to expose stereo 3D mode flags.
|
||||
*/
|
||||
unsigned stereo_allowed :1;
|
||||
bool stereo_allowed;
|
||||
|
||||
/**
|
||||
* @universal_planes:
|
||||
@@ -179,10 +179,10 @@ struct drm_file {
|
||||
* True if client understands CRTC primary planes and cursor planes
|
||||
* in the plane list. Automatically set when @atomic is set.
|
||||
*/
|
||||
unsigned universal_planes:1;
|
||||
bool universal_planes;
|
||||
|
||||
/** @atomic: True if client understands atomic properties. */
|
||||
unsigned atomic:1;
|
||||
bool atomic;
|
||||
|
||||
/**
|
||||
* @aspect_ratio_allowed:
|
||||
@@ -190,14 +190,14 @@ struct drm_file {
|
||||
* True, if client can handle picture aspect ratios, and has requested
|
||||
* to pass this information along with the mode.
|
||||
*/
|
||||
unsigned aspect_ratio_allowed:1;
|
||||
bool aspect_ratio_allowed;
|
||||
|
||||
/**
|
||||
* @writeback_connectors:
|
||||
*
|
||||
* True if client understands writeback connectors
|
||||
*/
|
||||
unsigned writeback_connectors:1;
|
||||
bool writeback_connectors;
|
||||
|
||||
/**
|
||||
* @is_master:
|
||||
@@ -208,7 +208,7 @@ struct drm_file {
|
||||
* See also the :ref:`section on primary nodes and authentication
|
||||
* <drm_primary_node>`.
|
||||
*/
|
||||
unsigned is_master:1;
|
||||
bool is_master;
|
||||
|
||||
/**
|
||||
* @master:
|
||||
|
||||
Reference in New Issue
Block a user