1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24#include "ctxgf100.h"
25
26
27
28
29
30static const struct gf100_gr_init
31gk110b_grctx_init_sm_0[] = {
32 { 0x419e04, 1, 0x04, 0x00000000 },
33 { 0x419e08, 1, 0x04, 0x0000001d },
34 { 0x419e0c, 1, 0x04, 0x00000000 },
35 { 0x419e10, 1, 0x04, 0x00001c02 },
36 { 0x419e44, 1, 0x04, 0x0013eff2 },
37 { 0x419e48, 1, 0x04, 0x00000000 },
38 { 0x419e4c, 1, 0x04, 0x0000007f },
39 { 0x419e50, 2, 0x04, 0x00000000 },
40 { 0x419e58, 1, 0x04, 0x00000001 },
41 { 0x419e5c, 3, 0x04, 0x00000000 },
42 { 0x419e68, 1, 0x04, 0x00000002 },
43 { 0x419e6c, 12, 0x04, 0x00000000 },
44 { 0x419eac, 1, 0x04, 0x00001f8f },
45 { 0x419eb0, 1, 0x04, 0x0db00d2f },
46 { 0x419eb8, 1, 0x04, 0x00000000 },
47 { 0x419ec8, 1, 0x04, 0x0001304f },
48 { 0x419f30, 4, 0x04, 0x00000000 },
49 { 0x419f40, 1, 0x04, 0x00000018 },
50 { 0x419f44, 3, 0x04, 0x00000000 },
51 { 0x419f58, 1, 0x04, 0x00000000 },
52 { 0x419f70, 1, 0x04, 0x00006300 },
53 { 0x419f78, 1, 0x04, 0x000000eb },
54 { 0x419f7c, 1, 0x04, 0x00000404 },
55 {}
56};
57
58static const struct gf100_gr_pack
59gk110b_grctx_pack_tpc[] = {
60 { gf117_grctx_init_pe_0 },
61 { gk110_grctx_init_tex_0 },
62 { gk110_grctx_init_mpc_0 },
63 { gk110_grctx_init_l1c_0 },
64 { gk110b_grctx_init_sm_0 },
65 {}
66};
67
68
69
70
71
72const struct gf100_grctx_func
73gk110b_grctx = {
74 .main = gf100_grctx_generate_main,
75 .unkn = gk104_grctx_generate_unkn,
76 .hub = gk110_grctx_pack_hub,
77 .gpc_0 = gk110_grctx_pack_gpc_0,
78 .gpc_1 = gk110_grctx_pack_gpc_1,
79 .zcull = gf100_grctx_pack_zcull,
80 .tpc = gk110b_grctx_pack_tpc,
81 .ppc = gk110_grctx_pack_ppc,
82 .icmd = gk110_grctx_pack_icmd,
83 .mthd = gk110_grctx_pack_mthd,
84 .bundle = gk104_grctx_generate_bundle,
85 .bundle_size = 0x3000,
86 .bundle_min_gpm_fifo_depth = 0x180,
87 .bundle_token_limit = 0x600,
88 .pagepool = gk104_grctx_generate_pagepool,
89 .pagepool_size = 0x8000,
90 .attrib = gf117_grctx_generate_attrib,
91 .attrib_nr_max = 0x324,
92 .attrib_nr = 0x218,
93 .alpha_nr_max = 0x7ff,
94 .alpha_nr = 0x648,
95 .patch_ltc = gk104_grctx_generate_patch_ltc,
96 .sm_id = gf100_grctx_generate_sm_id,
97 .tpc_nr = gf100_grctx_generate_tpc_nr,
98 .rop_mapping = gf117_grctx_generate_rop_mapping,
99 .alpha_beta_tables = gk104_grctx_generate_alpha_beta_tables,
100 .dist_skip_table = gf117_grctx_generate_dist_skip_table,
101 .gpc_tpc_nr = gk104_grctx_generate_gpc_tpc_nr,
102 .r418800 = gk104_grctx_generate_r418800,
103 .r419eb0 = gk110_grctx_generate_r419eb0,
104};
105