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
71ce33a2
Commit
71ce33a2
authored
Jan 16, 2017
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/gr: implement chsw_load() method
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
17041c7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/base.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/base.c
+10
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h
+1
-0
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/gr/base.c
View file @
71ce33a2
...
@@ -25,6 +25,15 @@
...
@@ -25,6 +25,15 @@
#include <engine/fifo.h>
#include <engine/fifo.h>
static
bool
nvkm_gr_chsw_load
(
struct
nvkm_engine
*
engine
)
{
struct
nvkm_gr
*
gr
=
nvkm_gr
(
engine
);
if
(
gr
->
func
->
chsw_load
)
return
gr
->
func
->
chsw_load
(
gr
);
return
false
;
}
static
void
static
void
nvkm_gr_tile
(
struct
nvkm_engine
*
engine
,
int
region
,
struct
nvkm_fb_tile
*
tile
)
nvkm_gr_tile
(
struct
nvkm_engine
*
engine
,
int
region
,
struct
nvkm_fb_tile
*
tile
)
{
{
...
@@ -132,6 +141,7 @@ nvkm_gr = {
...
@@ -132,6 +141,7 @@ nvkm_gr = {
.
fini
=
nvkm_gr_fini
,
.
fini
=
nvkm_gr_fini
,
.
intr
=
nvkm_gr_intr
,
.
intr
=
nvkm_gr_intr
,
.
tile
=
nvkm_gr_tile
,
.
tile
=
nvkm_gr_tile
,
.
chsw_load
=
nvkm_gr_chsw_load
,
.
fifo
.
cclass
=
nvkm_gr_cclass_new
,
.
fifo
.
cclass
=
nvkm_gr_cclass_new
,
.
fifo
.
sclass
=
nvkm_gr_oclass_get
,
.
fifo
.
sclass
=
nvkm_gr_oclass_get
,
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h
View file @
71ce33a2
...
@@ -25,6 +25,7 @@ struct nvkm_gr_func {
...
@@ -25,6 +25,7 @@ struct nvkm_gr_func {
/* Returns chipset-specific counts of units packed into an u64.
/* Returns chipset-specific counts of units packed into an u64.
*/
*/
u64
(
*
units
)(
struct
nvkm_gr
*
);
u64
(
*
units
)(
struct
nvkm_gr
*
);
bool
(
*
chsw_load
)(
struct
nvkm_gr
*
);
struct
nvkm_sclass
sclass
[];
struct
nvkm_sclass
sclass
[];
};
};
...
...
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