Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e2e767ab
Commit
e2e767ab
authored
Sep 13, 2010
by
Chris Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/i915: Remove redundant initialisation of crtc->pipe
Signed-off-by:
Chris Wilson
<
chris@chris-wilson.co.uk
>
parent
e65d9305
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_display.c
+2
-4
No files found.
drivers/gpu/drm/i915/intel_display.c
View file @
e2e767ab
...
@@ -5178,8 +5178,6 @@ static void intel_crtc_init(struct drm_device *dev, int pipe)
...
@@ -5178,8 +5178,6 @@ static void intel_crtc_init(struct drm_device *dev, int pipe)
drm_crtc_init
(
dev
,
&
intel_crtc
->
base
,
&
intel_crtc_funcs
);
drm_crtc_init
(
dev
,
&
intel_crtc
->
base
,
&
intel_crtc_funcs
);
drm_mode_crtc_set_gamma_size
(
&
intel_crtc
->
base
,
256
);
drm_mode_crtc_set_gamma_size
(
&
intel_crtc
->
base
,
256
);
intel_crtc
->
pipe
=
pipe
;
intel_crtc
->
plane
=
pipe
;
for
(
i
=
0
;
i
<
256
;
i
++
)
{
for
(
i
=
0
;
i
<
256
;
i
++
)
{
intel_crtc
->
lut_r
[
i
]
=
i
;
intel_crtc
->
lut_r
[
i
]
=
i
;
intel_crtc
->
lut_g
[
i
]
=
i
;
intel_crtc
->
lut_g
[
i
]
=
i
;
...
@@ -5189,9 +5187,9 @@ static void intel_crtc_init(struct drm_device *dev, int pipe)
...
@@ -5189,9 +5187,9 @@ static void intel_crtc_init(struct drm_device *dev, int pipe)
/* Swap pipes & planes for FBC on pre-965 */
/* Swap pipes & planes for FBC on pre-965 */
intel_crtc
->
pipe
=
pipe
;
intel_crtc
->
pipe
=
pipe
;
intel_crtc
->
plane
=
pipe
;
intel_crtc
->
plane
=
pipe
;
if
(
IS_MOBILE
(
dev
)
&&
(
IS_I9XX
(
dev
)
&&
!
IS_I965G
(
dev
)
))
{
if
(
IS_MOBILE
(
dev
)
&&
IS_GEN3
(
dev
))
{
DRM_DEBUG_KMS
(
"swapping pipes & planes for FBC
\n
"
);
DRM_DEBUG_KMS
(
"swapping pipes & planes for FBC
\n
"
);
intel_crtc
->
plane
=
((
pipe
==
0
)
?
1
:
0
)
;
intel_crtc
->
plane
=
!
pipe
;
}
}
BUG_ON
(
pipe
>=
ARRAY_SIZE
(
dev_priv
->
plane_to_crtc_mapping
)
||
BUG_ON
(
pipe
>=
ARRAY_SIZE
(
dev_priv
->
plane_to_crtc_mapping
)
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment