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
c20ab3e1
Commit
c20ab3e1
authored
Aug 25, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvd9/disp: stub some more api hooks so we don't oops on resume
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
ff920bfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
drivers/gpu/drm/nouveau/nvd0_display.c
drivers/gpu/drm/nouveau/nvd0_display.c
+12
-0
No files found.
drivers/gpu/drm/nouveau/nvd0_display.c
View file @
c20ab3e1
...
...
@@ -522,6 +522,16 @@ static const struct drm_crtc_funcs nvd0_crtc_func = {
.
destroy
=
nvd0_crtc_destroy
,
};
static
void
nvd0_cursor_set_pos
(
struct
nouveau_crtc
*
nv_crtc
,
int
x
,
int
y
)
{
}
static
void
nvd0_cursor_set_offset
(
struct
nouveau_crtc
*
nv_crtc
,
uint32_t
offset
)
{
}
static
int
nvd0_crtc_create
(
struct
drm_device
*
dev
,
int
index
)
{
...
...
@@ -536,6 +546,8 @@ nvd0_crtc_create(struct drm_device *dev, int index)
nv_crtc
->
index
=
index
;
nv_crtc
->
set_dither
=
nvd0_crtc_set_dither
;
nv_crtc
->
set_scale
=
nvd0_crtc_set_scale
;
nv_crtc
->
cursor
.
set_offset
=
nvd0_cursor_set_offset
;
nv_crtc
->
cursor
.
set_pos
=
nvd0_cursor_set_pos
;
for
(
i
=
0
;
i
<
256
;
i
++
)
{
nv_crtc
->
lut
.
r
[
i
]
=
i
<<
8
;
nv_crtc
->
lut
.
g
[
i
]
=
i
<<
8
;
...
...
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