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
ff209c23
Commit
ff209c23
authored
May 08, 2018
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/gr/gf100-: virtualise rop_mapping
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
9d8a80df
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
82 additions
and
70 deletions
+82
-70
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c
+4
-2
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h
+3
-2
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf104.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf108.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf108.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf110.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf110.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c
+60
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf119.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf119.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c
+1
-60
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110b.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk208.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk208.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk20a.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk20a.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm200.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm200.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp107.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp107.c
+1
-0
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c
View file @
ff209c23
...
...
@@ -1105,7 +1105,7 @@ gf100_grctx_generate_r4060a8(struct gf100_gr *gr)
}
void
gf100_grctx_generate_r
418bb8
(
struct
gf100_gr
*
gr
)
gf100_grctx_generate_r
op_mapping
(
struct
gf100_gr
*
gr
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
u32
data
[
6
]
=
{},
data2
[
2
]
=
{};
...
...
@@ -1241,6 +1241,8 @@ gf100_grctx_generate_floorsweep(struct gf100_gr *gr)
if
(
func
->
r4060a8
)
func
->
r4060a8
(
gr
);
func
->
rop_mapping
(
gr
);
}
void
...
...
@@ -1272,7 +1274,6 @@ gf100_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gf100_grctx_generate_r418bb8
(
gr
);
gf100_grctx_generate_r406800
(
gr
);
gf100_gr_icmd
(
gr
,
grctx
->
icmd
);
...
...
@@ -1424,4 +1425,5 @@ gf100_grctx = {
.
sm_id
=
gf100_grctx_generate_sm_id
,
.
tpc_nr
=
gf100_grctx_generate_tpc_nr
,
.
r4060a8
=
gf100_grctx_generate_r4060a8
,
.
rop_mapping
=
gf100_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h
View file @
ff209c23
...
...
@@ -54,6 +54,7 @@ struct gf100_grctx_func {
void
(
*
sm_id
)(
struct
gf100_gr
*
,
int
gpc
,
int
tpc
,
int
sm
);
void
(
*
tpc_nr
)(
struct
gf100_gr
*
,
int
gpc
);
void
(
*
r4060a8
)(
struct
gf100_gr
*
);
void
(
*
rop_mapping
)(
struct
gf100_gr
*
);
};
extern
const
struct
gf100_grctx_func
gf100_grctx
;
...
...
@@ -64,11 +65,11 @@ void gf100_grctx_generate_pagepool(struct gf100_grctx *);
void
gf100_grctx_generate_attrib
(
struct
gf100_grctx
*
);
void
gf100_grctx_generate_unkn
(
struct
gf100_gr
*
);
void
gf100_grctx_generate_floorsweep
(
struct
gf100_gr
*
);
void
gf100_grctx_generate_r418bb8
(
struct
gf100_gr
*
);
void
gf100_grctx_generate_r406800
(
struct
gf100_gr
*
);
void
gf100_grctx_generate_sm_id
(
struct
gf100_gr
*
,
int
,
int
,
int
);
void
gf100_grctx_generate_tpc_nr
(
struct
gf100_gr
*
,
int
);
void
gf100_grctx_generate_r4060a8
(
struct
gf100_gr
*
);
void
gf100_grctx_generate_rop_mapping
(
struct
gf100_gr
*
);
extern
const
struct
gf100_grctx_func
gf108_grctx
;
void
gf108_grctx_generate_attrib
(
struct
gf100_grctx
*
);
...
...
@@ -79,6 +80,7 @@ extern const struct gf100_grctx_func gf110_grctx;
extern
const
struct
gf100_grctx_func
gf117_grctx
;
void
gf117_grctx_generate_attrib
(
struct
gf100_grctx
*
);
void
gf117_grctx_generate_rop_mapping
(
struct
gf100_gr
*
);
extern
const
struct
gf100_grctx_func
gf119_grctx
;
...
...
@@ -89,7 +91,6 @@ void gk104_grctx_generate_bundle(struct gf100_grctx *);
void
gk104_grctx_generate_pagepool
(
struct
gf100_grctx
*
);
void
gk104_grctx_generate_patch_ltc
(
struct
gf100_grctx
*
);
void
gk104_grctx_generate_unkn
(
struct
gf100_gr
*
);
void
gk104_grctx_generate_r418bb8
(
struct
gf100_gr
*
);
void
gm107_grctx_generate_bundle
(
struct
gf100_grctx
*
);
void
gm107_grctx_generate_pagepool
(
struct
gf100_grctx
*
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf104.c
View file @
ff209c23
...
...
@@ -99,4 +99,5 @@ gf104_grctx = {
.
sm_id
=
gf100_grctx_generate_sm_id
,
.
tpc_nr
=
gf100_grctx_generate_tpc_nr
,
.
r4060a8
=
gf100_grctx_generate_r4060a8
,
.
rop_mapping
=
gf100_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf108.c
View file @
ff209c23
...
...
@@ -797,4 +797,5 @@ gf108_grctx = {
.
sm_id
=
gf100_grctx_generate_sm_id
,
.
tpc_nr
=
gf100_grctx_generate_tpc_nr
,
.
r4060a8
=
gf100_grctx_generate_r4060a8
,
.
rop_mapping
=
gf100_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf110.c
View file @
ff209c23
...
...
@@ -350,4 +350,5 @@ gf110_grctx = {
.
sm_id
=
gf100_grctx_generate_sm_id
,
.
tpc_nr
=
gf100_grctx_generate_tpc_nr
,
.
r4060a8
=
gf100_grctx_generate_r4060a8
,
.
rop_mapping
=
gf100_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c
View file @
ff209c23
...
...
@@ -179,6 +179,65 @@ gf117_grctx_pack_ppc[] = {
* PGRAPH context implementation
******************************************************************************/
void
gf117_grctx_generate_rop_mapping
(
struct
gf100_gr
*
gr
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
u32
data
[
6
]
=
{},
data2
[
2
]
=
{};
u8
tpcnr
[
GPC_MAX
];
u8
shift
,
ntpcv
;
int
gpc
,
tpc
,
i
;
/* calculate first set of magics */
memcpy
(
tpcnr
,
gr
->
tpc_nr
,
sizeof
(
gr
->
tpc_nr
));
gpc
=
-
1
;
for
(
tpc
=
0
;
tpc
<
gr
->
tpc_total
;
tpc
++
)
{
do
{
gpc
=
(
gpc
+
1
)
%
gr
->
gpc_nr
;
}
while
(
!
tpcnr
[
gpc
]);
tpcnr
[
gpc
]
--
;
data
[
tpc
/
6
]
|=
gpc
<<
((
tpc
%
6
)
*
5
);
}
for
(;
tpc
<
32
;
tpc
++
)
data
[
tpc
/
6
]
|=
7
<<
((
tpc
%
6
)
*
5
);
/* and the second... */
shift
=
0
;
ntpcv
=
gr
->
tpc_total
;
while
(
!
(
ntpcv
&
(
1
<<
4
)))
{
ntpcv
<<=
1
;
shift
++
;
}
data2
[
0
]
=
(
ntpcv
<<
16
);
data2
[
0
]
|=
(
shift
<<
21
);
data2
[
0
]
|=
(((
1
<<
(
0
+
5
))
%
ntpcv
)
<<
24
);
for
(
i
=
1
;
i
<
7
;
i
++
)
data2
[
1
]
|=
((
1
<<
(
i
+
5
))
%
ntpcv
)
<<
((
i
-
1
)
*
5
);
/* GPC_BROADCAST */
nvkm_wr32
(
device
,
0x418bb8
,
(
gr
->
tpc_total
<<
8
)
|
gr
->
screen_tile_row_offset
);
for
(
i
=
0
;
i
<
6
;
i
++
)
nvkm_wr32
(
device
,
0x418b08
+
(
i
*
4
),
data
[
i
]);
/* GPC_BROADCAST.TP_BROADCAST */
nvkm_wr32
(
device
,
0x41bfd0
,
(
gr
->
tpc_total
<<
8
)
|
gr
->
screen_tile_row_offset
|
data2
[
0
]);
nvkm_wr32
(
device
,
0x41bfe4
,
data2
[
1
]);
for
(
i
=
0
;
i
<
6
;
i
++
)
nvkm_wr32
(
device
,
0x41bf00
+
(
i
*
4
),
data
[
i
]);
/* UNK78xx */
nvkm_wr32
(
device
,
0x4078bc
,
(
gr
->
tpc_total
<<
8
)
|
gr
->
screen_tile_row_offset
);
for
(
i
=
0
;
i
<
6
;
i
++
)
nvkm_wr32
(
device
,
0x40780c
+
(
i
*
4
),
data
[
i
]);
}
void
gf117_grctx_generate_attrib
(
struct
gf100_grctx
*
info
)
{
...
...
@@ -241,7 +300,6 @@ gf117_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gk104_grctx_generate_r418bb8
(
gr
);
gf100_grctx_generate_r406800
(
gr
);
for
(
i
=
0
;
i
<
8
;
i
++
)
...
...
@@ -276,4 +334,5 @@ gf117_grctx = {
.
sm_id
=
gf100_grctx_generate_sm_id
,
.
tpc_nr
=
gf100_grctx_generate_tpc_nr
,
.
r4060a8
=
gf100_grctx_generate_r4060a8
,
.
rop_mapping
=
gf117_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf119.c
View file @
ff209c23
...
...
@@ -520,4 +520,5 @@ gf119_grctx = {
.
sm_id
=
gf100_grctx_generate_sm_id
,
.
tpc_nr
=
gf100_grctx_generate_tpc_nr
,
.
r4060a8
=
gf100_grctx_generate_r4060a8
,
.
rop_mapping
=
gf100_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c
View file @
ff209c23
...
...
@@ -892,65 +892,6 @@ gk104_grctx_generate_unkn(struct gf100_gr *gr)
nvkm_mask
(
device
,
0x419c00
,
0x00000008
,
0x00000008
);
}
void
gk104_grctx_generate_r418bb8
(
struct
gf100_gr
*
gr
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
u32
data
[
6
]
=
{},
data2
[
2
]
=
{};
u8
tpcnr
[
GPC_MAX
];
u8
shift
,
ntpcv
;
int
gpc
,
tpc
,
i
;
/* calculate first set of magics */
memcpy
(
tpcnr
,
gr
->
tpc_nr
,
sizeof
(
gr
->
tpc_nr
));
gpc
=
-
1
;
for
(
tpc
=
0
;
tpc
<
gr
->
tpc_total
;
tpc
++
)
{
do
{
gpc
=
(
gpc
+
1
)
%
gr
->
gpc_nr
;
}
while
(
!
tpcnr
[
gpc
]);
tpcnr
[
gpc
]
--
;
data
[
tpc
/
6
]
|=
gpc
<<
((
tpc
%
6
)
*
5
);
}
for
(;
tpc
<
32
;
tpc
++
)
data
[
tpc
/
6
]
|=
7
<<
((
tpc
%
6
)
*
5
);
/* and the second... */
shift
=
0
;
ntpcv
=
gr
->
tpc_total
;
while
(
!
(
ntpcv
&
(
1
<<
4
)))
{
ntpcv
<<=
1
;
shift
++
;
}
data2
[
0
]
=
(
ntpcv
<<
16
);
data2
[
0
]
|=
(
shift
<<
21
);
data2
[
0
]
|=
(((
1
<<
(
0
+
5
))
%
ntpcv
)
<<
24
);
for
(
i
=
1
;
i
<
7
;
i
++
)
data2
[
1
]
|=
((
1
<<
(
i
+
5
))
%
ntpcv
)
<<
((
i
-
1
)
*
5
);
/* GPC_BROADCAST */
nvkm_wr32
(
device
,
0x418bb8
,
(
gr
->
tpc_total
<<
8
)
|
gr
->
screen_tile_row_offset
);
for
(
i
=
0
;
i
<
6
;
i
++
)
nvkm_wr32
(
device
,
0x418b08
+
(
i
*
4
),
data
[
i
]);
/* GPC_BROADCAST.TP_BROADCAST */
nvkm_wr32
(
device
,
0x41bfd0
,
(
gr
->
tpc_total
<<
8
)
|
gr
->
screen_tile_row_offset
|
data2
[
0
]);
nvkm_wr32
(
device
,
0x41bfe4
,
data2
[
1
]);
for
(
i
=
0
;
i
<
6
;
i
++
)
nvkm_wr32
(
device
,
0x41bf00
+
(
i
*
4
),
data
[
i
]);
/* UNK78xx */
nvkm_wr32
(
device
,
0x4078bc
,
(
gr
->
tpc_total
<<
8
)
|
gr
->
screen_tile_row_offset
);
for
(
i
=
0
;
i
<
6
;
i
++
)
nvkm_wr32
(
device
,
0x40780c
+
(
i
*
4
),
data
[
i
]);
}
void
gk104_grctx_generate_main
(
struct
gf100_gr
*
gr
,
struct
gf100_grctx
*
info
)
{
...
...
@@ -975,7 +916,6 @@ gk104_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gk104_grctx_generate_r418bb8
(
gr
);
gf100_grctx_generate_r406800
(
gr
);
for
(
i
=
0
;
i
<
8
;
i
++
)
...
...
@@ -1018,4 +958,5 @@ gk104_grctx = {
.
patch_ltc
=
gk104_grctx_generate_patch_ltc
,
.
sm_id
=
gf100_grctx_generate_sm_id
,
.
tpc_nr
=
gf100_grctx_generate_tpc_nr
,
.
rop_mapping
=
gf117_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c
View file @
ff209c23
...
...
@@ -833,4 +833,5 @@ gk110_grctx = {
.
patch_ltc
=
gk104_grctx_generate_patch_ltc
,
.
sm_id
=
gf100_grctx_generate_sm_id
,
.
tpc_nr
=
gf100_grctx_generate_tpc_nr
,
.
rop_mapping
=
gf117_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110b.c
View file @
ff209c23
...
...
@@ -94,4 +94,5 @@ gk110b_grctx = {
.
patch_ltc
=
gk104_grctx_generate_patch_ltc
,
.
sm_id
=
gf100_grctx_generate_sm_id
,
.
tpc_nr
=
gf100_grctx_generate_tpc_nr
,
.
rop_mapping
=
gf117_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk208.c
View file @
ff209c23
...
...
@@ -555,4 +555,5 @@ gk208_grctx = {
.
patch_ltc
=
gk104_grctx_generate_patch_ltc
,
.
sm_id
=
gf100_grctx_generate_sm_id
,
.
tpc_nr
=
gf100_grctx_generate_tpc_nr
,
.
rop_mapping
=
gf117_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk20a.c
View file @
ff209c23
...
...
@@ -43,7 +43,6 @@ gk20a_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gk104_grctx_generate_r418bb8
(
gr
);
gf100_grctx_generate_r406800
(
gr
);
for
(
i
=
0
;
i
<
8
;
i
++
)
...
...
@@ -83,4 +82,5 @@ gk20a_grctx = {
.
alpha_nr
=
0x648
,
.
sm_id
=
gf100_grctx_generate_sm_id
,
.
tpc_nr
=
gf100_grctx_generate_tpc_nr
,
.
rop_mapping
=
gf117_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
View file @
ff209c23
...
...
@@ -961,7 +961,6 @@ gm107_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gk104_grctx_generate_r418bb8
(
gr
);
gf100_grctx_generate_r406800
(
gr
);
nvkm_wr32
(
device
,
0x4064d0
,
0x00000001
);
...
...
@@ -1005,4 +1004,5 @@ gm107_grctx = {
.
alpha_nr
=
0x1000
,
.
sm_id
=
gm107_grctx_generate_sm_id
,
.
tpc_nr
=
gf100_grctx_generate_tpc_nr
,
.
rop_mapping
=
gf117_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm200.c
View file @
ff209c23
...
...
@@ -77,7 +77,6 @@ gm200_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gk104_grctx_generate_r418bb8
(
gr
);
for
(
i
=
0
;
i
<
8
;
i
++
)
nvkm_wr32
(
device
,
0x4064d0
+
(
i
*
0x04
),
0x00000000
);
...
...
@@ -115,4 +114,5 @@ gm200_grctx = {
.
alpha_nr_max
=
0x1800
,
.
alpha_nr
=
0x1000
,
.
sm_id
=
gm107_grctx_generate_sm_id
,
.
rop_mapping
=
gf117_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c
View file @
ff209c23
...
...
@@ -40,7 +40,6 @@ gm20b_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gk104_grctx_generate_r418bb8
(
gr
);
for
(
i
=
0
;
i
<
8
;
i
++
)
nvkm_wr32
(
device
,
0x4064d0
+
(
i
*
0x04
),
0x00000000
);
...
...
@@ -84,4 +83,5 @@ gm20b_grctx = {
.
alpha_nr_max
=
0xc00
,
.
alpha_nr
=
0x800
,
.
sm_id
=
gm107_grctx_generate_sm_id
,
.
rop_mapping
=
gf117_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c
View file @
ff209c23
...
...
@@ -139,7 +139,6 @@ gp100_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gk104_grctx_generate_r418bb8
(
gr
);
for
(
i
=
0
;
i
<
8
;
i
++
)
nvkm_wr32
(
device
,
0x4064d0
+
(
i
*
0x04
),
0x00000000
);
...
...
@@ -174,4 +173,5 @@ gp100_grctx = {
.
alpha_nr_max
=
0xc00
,
.
alpha_nr
=
0x800
,
.
sm_id
=
gm107_grctx_generate_sm_id
,
.
rop_mapping
=
gf117_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c
View file @
ff209c23
...
...
@@ -95,4 +95,5 @@ gp102_grctx = {
.
alpha_nr_max
=
0xc00
,
.
alpha_nr
=
0x800
,
.
sm_id
=
gm107_grctx_generate_sm_id
,
.
rop_mapping
=
gf117_grctx_generate_rop_mapping
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp107.c
View file @
ff209c23
...
...
@@ -45,4 +45,5 @@ gp107_grctx = {
.
alpha_nr_max
=
0xc00
,
.
alpha_nr
=
0x800
,
.
sm_id
=
gm107_grctx_generate_sm_id
,
.
rop_mapping
=
gf117_grctx_generate_rop_mapping
,
};
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