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
Kirill Smelkov
linux
Commits
f66b3d55
Commit
f66b3d55
authored
Jun 16, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv50/disp: fix gamma with page flipping overlay turned on
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
29055440
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_display.c
+14
-3
No files found.
drivers/gpu/drm/nouveau/nv50_display.c
View file @
f66b3d55
...
@@ -409,7 +409,7 @@ nv50_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
...
@@ -409,7 +409,7 @@ nv50_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
struct
nouveau_channel
*
evo
=
dispc
->
sync
;
struct
nouveau_channel
*
evo
=
dispc
->
sync
;
int
ret
;
int
ret
;
ret
=
RING_SPACE
(
evo
,
24
);
ret
=
RING_SPACE
(
evo
,
chan
?
25
:
27
);
if
(
unlikely
(
ret
))
if
(
unlikely
(
ret
))
return
ret
;
return
ret
;
...
@@ -458,8 +458,19 @@ nv50_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
...
@@ -458,8 +458,19 @@ nv50_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
/* queue the flip on the crtc's "display sync" channel */
/* queue the flip on the crtc's "display sync" channel */
BEGIN_RING
(
evo
,
0
,
0x0100
,
1
);
BEGIN_RING
(
evo
,
0
,
0x0100
,
1
);
OUT_RING
(
evo
,
0xfffe0000
);
OUT_RING
(
evo
,
0xfffe0000
);
BEGIN_RING
(
evo
,
0
,
0x0084
,
5
);
if
(
chan
)
{
OUT_RING
(
evo
,
chan
?
0x00000100
:
0x00000010
);
BEGIN_RING
(
evo
,
0
,
0x0084
,
1
);
OUT_RING
(
evo
,
0x00000100
);
}
else
{
BEGIN_RING
(
evo
,
0
,
0x0084
,
1
);
OUT_RING
(
evo
,
0x00000010
);
/* allows gamma somehow, PDISP will bitch at you if
* you don't wait for vblank before changing this..
*/
BEGIN_RING
(
evo
,
0
,
0x00e0
,
1
);
OUT_RING
(
evo
,
0x40000000
);
}
BEGIN_RING
(
evo
,
0
,
0x0088
,
4
);
OUT_RING
(
evo
,
dispc
->
sem
.
offset
);
OUT_RING
(
evo
,
dispc
->
sem
.
offset
);
OUT_RING
(
evo
,
0xf00d0000
|
dispc
->
sem
.
value
);
OUT_RING
(
evo
,
0xf00d0000
|
dispc
->
sem
.
value
);
OUT_RING
(
evo
,
0x74b1e000
);
OUT_RING
(
evo
,
0x74b1e000
);
...
...
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