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
639212d0
Commit
639212d0
authored
Jun 03, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/gem: implement stub hooks for GEM object open/close
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
f6d4e621
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
drivers/gpu/drm/nouveau/nouveau_drv.c
drivers/gpu/drm/nouveau/nouveau_drv.c
+2
-0
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+3
-0
drivers/gpu/drm/nouveau/nouveau_gem.c
drivers/gpu/drm/nouveau/nouveau_gem.c
+20
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_drv.c
View file @
639212d0
...
...
@@ -426,6 +426,8 @@ static struct drm_driver driver = {
.
gem_init_object
=
nouveau_gem_object_new
,
.
gem_free_object
=
nouveau_gem_object_del
,
.
gem_open_object
=
nouveau_gem_object_open
,
.
gem_close_object
=
nouveau_gem_object_close
,
.
name
=
DRIVER_NAME
,
.
desc
=
DRIVER_DESC
,
...
...
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
639212d0
...
...
@@ -1329,6 +1329,9 @@ extern int nouveau_gem_new(struct drm_device *, int size, int align,
uint32_t
tile_flags
,
struct
nouveau_bo
**
);
extern
int
nouveau_gem_object_new
(
struct
drm_gem_object
*
);
extern
void
nouveau_gem_object_del
(
struct
drm_gem_object
*
);
extern
int
nouveau_gem_object_open
(
struct
drm_gem_object
*
,
struct
drm_file
*
);
extern
void
nouveau_gem_object_close
(
struct
drm_gem_object
*
,
struct
drm_file
*
);
extern
int
nouveau_gem_ioctl_new
(
struct
drm_device
*
,
void
*
,
struct
drm_file
*
);
extern
int
nouveau_gem_ioctl_pushbuf
(
struct
drm_device
*
,
void
*
,
...
...
drivers/gpu/drm/nouveau/nouveau_gem.c
View file @
639212d0
...
...
@@ -59,6 +59,26 @@ nouveau_gem_object_del(struct drm_gem_object *gem)
kfree
(
gem
);
}
int
nouveau_gem_object_open
(
struct
drm_gem_object
*
gem
,
struct
drm_file
*
file_priv
)
{
struct
nouveau_fpriv
*
fpriv
=
nouveau_fpriv
(
file_priv
);
if
(
!
fpriv
->
vm
)
return
0
;
return
0
;
}
void
nouveau_gem_object_close
(
struct
drm_gem_object
*
gem
,
struct
drm_file
*
file_priv
)
{
struct
nouveau_fpriv
*
fpriv
=
nouveau_fpriv
(
file_priv
);
if
(
!
fpriv
->
vm
)
return
;
}
int
nouveau_gem_new
(
struct
drm_device
*
dev
,
int
size
,
int
align
,
uint32_t
domain
,
uint32_t
tile_mode
,
uint32_t
tile_flags
,
...
...
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