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
d7117e0d
Commit
d7117e0d
authored
Feb 07, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv50: enable page flipping
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
1d3fac0c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_display.c
+10
-1
drivers/gpu/drm/nouveau/nouveau_state.c
drivers/gpu/drm/nouveau/nouveau_state.c
+1
-1
drivers/gpu/drm/nouveau/nv50_graph.c
drivers/gpu/drm/nouveau/nv50_graph.c
+1
-6
No files found.
drivers/gpu/drm/nouveau/nouveau_display.c
View file @
d7117e0d
...
...
@@ -297,6 +297,14 @@ nouveau_crtc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb,
mutex_lock
(
&
chan
->
mutex
);
/* Emit a page flip */
if
(
dev_priv
->
card_type
>=
NV_50
)
{
ret
=
nv50_display_flip_next
(
crtc
,
fb
,
chan
);
if
(
ret
)
{
nouveau_channel_put
(
&
chan
);
goto
fail_unreserve
;
}
}
ret
=
nouveau_page_flip_emit
(
chan
,
old_bo
,
new_bo
,
s
,
&
fence
);
nouveau_channel_put
(
&
chan
);
if
(
ret
)
...
...
@@ -347,6 +355,7 @@ nouveau_finish_page_flip(struct nouveau_channel *chan,
}
list_del
(
&
s
->
head
);
if
(
ps
)
*
ps
=
*
s
;
kfree
(
s
);
...
...
drivers/gpu/drm/nouveau/nouveau_state.c
View file @
d7117e0d
...
...
@@ -1118,7 +1118,7 @@ int nouveau_ioctl_getparam(struct drm_device *dev, void *data,
getparam
->
value
=
1
;
break
;
case
NOUVEAU_GETPARAM_HAS_PAGEFLIP
:
getparam
->
value
=
(
dev_priv
->
card_type
<
NV_
50
)
;
getparam
->
value
=
(
dev_priv
->
card_type
<
NV_
C0
)
?
1
:
0
;
break
;
case
NOUVEAU_GETPARAM_GRAPH_UNITS
:
/* NV40 and NV50 versions are quite different, but register
...
...
drivers/gpu/drm/nouveau/nv50_graph.c
View file @
d7117e0d
...
...
@@ -409,12 +409,7 @@ static int
nv50_graph_nvsw_mthd_page_flip
(
struct
nouveau_channel
*
chan
,
u32
class
,
u32
mthd
,
u32
data
)
{
struct
nouveau_page_flip_state
s
;
if
(
!
nouveau_finish_page_flip
(
chan
,
&
s
))
{
/* XXX - Do something here */
}
nouveau_finish_page_flip
(
chan
,
NULL
);
return
0
;
}
...
...
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