Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Red Hat Inc. |
| 3 | * |
| 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 5 | * copy of this software and associated documentation files (the "Software"), |
| 6 | * to deal in the Software without restriction, including without limitation |
| 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 8 | * and/or sell copies of the Software, and to permit persons to whom the |
| 9 | * Software is furnished to do so, subject to the following conditions: |
| 10 | * |
| 11 | * The above copyright notice and this permission notice shall be included in |
| 12 | * all copies or substantial portions of the Software. |
| 13 | * |
| 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 20 | * OTHER DEALINGS IN THE SOFTWARE. |
| 21 | * |
| 22 | * Authors: Ben Skeggs <bskeggs@redhat.com> |
| 23 | */ |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 24 | #include "ctxgf100.h" |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 25 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 26 | #include <subdev/fb.h> |
| 27 | #include <subdev/mc.h> |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 28 | |
Ben Skeggs | c33b1e8 | 2014-03-03 16:18:55 +1000 | [diff] [blame] | 29 | /******************************************************************************* |
| 30 | * PGRAPH context register lists |
| 31 | ******************************************************************************/ |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 32 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 33 | static const struct gf100_gr_init |
| 34 | gf117_grctx_init_ds_0[] = { |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 35 | { 0x405800, 1, 0x04, 0x0f8000bf }, |
| 36 | { 0x405830, 1, 0x04, 0x02180324 }, |
| 37 | { 0x405834, 1, 0x04, 0x08000000 }, |
| 38 | { 0x405838, 1, 0x04, 0x00000000 }, |
| 39 | { 0x405854, 1, 0x04, 0x00000000 }, |
| 40 | { 0x405870, 4, 0x04, 0x00000001 }, |
| 41 | { 0x405a00, 2, 0x04, 0x00000000 }, |
| 42 | { 0x405a18, 1, 0x04, 0x00000000 }, |
| 43 | {} |
| 44 | }; |
| 45 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 46 | static const struct gf100_gr_init |
| 47 | gf117_grctx_init_pd_0[] = { |
Ben Skeggs | c33b1e8 | 2014-03-03 16:18:55 +1000 | [diff] [blame] | 48 | { 0x406020, 1, 0x04, 0x000103c1 }, |
| 49 | { 0x406028, 4, 0x04, 0x00000001 }, |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 50 | { 0x4064a8, 1, 0x04, 0x00000000 }, |
| 51 | { 0x4064ac, 1, 0x04, 0x00003fff }, |
| 52 | { 0x4064b4, 3, 0x04, 0x00000000 }, |
| 53 | { 0x4064c0, 1, 0x04, 0x801a0078 }, |
| 54 | { 0x4064c4, 1, 0x04, 0x00c9ffff }, |
| 55 | { 0x4064d0, 8, 0x04, 0x00000000 }, |
| 56 | {} |
| 57 | }; |
| 58 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 59 | static const struct gf100_gr_pack |
| 60 | gf117_grctx_pack_hub[] = { |
| 61 | { gf100_grctx_init_main_0 }, |
| 62 | { gf119_grctx_init_fe_0 }, |
| 63 | { gf100_grctx_init_pri_0 }, |
| 64 | { gf100_grctx_init_memfmt_0 }, |
| 65 | { gf117_grctx_init_ds_0 }, |
| 66 | { gf117_grctx_init_pd_0 }, |
| 67 | { gf100_grctx_init_rstr2d_0 }, |
| 68 | { gf100_grctx_init_scc_0 }, |
| 69 | { gf119_grctx_init_be_0 }, |
Ben Skeggs | c33b1e8 | 2014-03-03 16:18:55 +1000 | [diff] [blame] | 70 | {} |
| 71 | }; |
| 72 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 73 | static const struct gf100_gr_init |
| 74 | gf117_grctx_init_setup_0[] = { |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 75 | { 0x418800, 1, 0x04, 0x7006860a }, |
| 76 | { 0x418808, 3, 0x04, 0x00000000 }, |
| 77 | { 0x418828, 1, 0x04, 0x00008442 }, |
| 78 | { 0x418830, 1, 0x04, 0x10000001 }, |
| 79 | { 0x4188d8, 1, 0x04, 0x00000008 }, |
| 80 | { 0x4188e0, 1, 0x04, 0x01000000 }, |
| 81 | { 0x4188e8, 5, 0x04, 0x00000000 }, |
| 82 | { 0x4188fc, 1, 0x04, 0x20100018 }, |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 83 | {} |
| 84 | }; |
| 85 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 86 | static const struct gf100_gr_pack |
| 87 | gf117_grctx_pack_gpc[] = { |
| 88 | { gf100_grctx_init_gpc_unk_0 }, |
| 89 | { gf119_grctx_init_prop_0 }, |
| 90 | { gf119_grctx_init_gpc_unk_1 }, |
| 91 | { gf117_grctx_init_setup_0 }, |
| 92 | { gf100_grctx_init_zcull_0 }, |
| 93 | { gf119_grctx_init_crstr_0 }, |
| 94 | { gf108_grctx_init_gpm_0 }, |
| 95 | { gf100_grctx_init_gcc_0 }, |
Ben Skeggs | c33b1e8 | 2014-03-03 16:18:55 +1000 | [diff] [blame] | 96 | {} |
| 97 | }; |
| 98 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 99 | const struct gf100_gr_init |
| 100 | gf117_grctx_init_pe_0[] = { |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 101 | { 0x419848, 1, 0x04, 0x00000000 }, |
| 102 | { 0x419864, 1, 0x04, 0x00000129 }, |
| 103 | { 0x419888, 1, 0x04, 0x00000000 }, |
Ben Skeggs | 7e19453 | 2014-03-03 16:18:56 +1000 | [diff] [blame] | 104 | {} |
| 105 | }; |
| 106 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 107 | static const struct gf100_gr_init |
| 108 | gf117_grctx_init_tex_0[] = { |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 109 | { 0x419a00, 1, 0x04, 0x000001f0 }, |
| 110 | { 0x419a04, 1, 0x04, 0x00000001 }, |
| 111 | { 0x419a08, 1, 0x04, 0x00000023 }, |
| 112 | { 0x419a0c, 1, 0x04, 0x00020000 }, |
| 113 | { 0x419a10, 1, 0x04, 0x00000000 }, |
| 114 | { 0x419a14, 1, 0x04, 0x00000200 }, |
| 115 | { 0x419a1c, 1, 0x04, 0x00008000 }, |
| 116 | { 0x419a20, 1, 0x04, 0x00000800 }, |
| 117 | { 0x419ac4, 1, 0x04, 0x0017f440 }, |
Ben Skeggs | 7e19453 | 2014-03-03 16:18:56 +1000 | [diff] [blame] | 118 | {} |
| 119 | }; |
| 120 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 121 | static const struct gf100_gr_init |
| 122 | gf117_grctx_init_mpc_0[] = { |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 123 | { 0x419c00, 1, 0x04, 0x0000000a }, |
| 124 | { 0x419c04, 1, 0x04, 0x00000006 }, |
| 125 | { 0x419c08, 1, 0x04, 0x00000002 }, |
| 126 | { 0x419c20, 1, 0x04, 0x00000000 }, |
| 127 | { 0x419c24, 1, 0x04, 0x00084210 }, |
| 128 | { 0x419c28, 1, 0x04, 0x3efbefbe }, |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 129 | {} |
| 130 | }; |
| 131 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 132 | static const struct gf100_gr_pack |
| 133 | gf117_grctx_pack_tpc[] = { |
| 134 | { gf117_grctx_init_pe_0 }, |
| 135 | { gf117_grctx_init_tex_0 }, |
| 136 | { gf117_grctx_init_mpc_0 }, |
| 137 | { gf104_grctx_init_l1c_0 }, |
| 138 | { gf119_grctx_init_sm_0 }, |
Ben Skeggs | c33b1e8 | 2014-03-03 16:18:55 +1000 | [diff] [blame] | 139 | {} |
| 140 | }; |
| 141 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 142 | static const struct gf100_gr_init |
| 143 | gf117_grctx_init_pes_0[] = { |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 144 | { 0x41be24, 1, 0x04, 0x00000002 }, |
Ben Skeggs | 88e98d4 | 2014-03-03 16:18:56 +1000 | [diff] [blame] | 145 | {} |
| 146 | }; |
| 147 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 148 | static const struct gf100_gr_init |
| 149 | gf117_grctx_init_cbm_0[] = { |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 150 | { 0x41bec0, 1, 0x04, 0x12180000 }, |
| 151 | { 0x41bec4, 1, 0x04, 0x00003fff }, |
| 152 | { 0x41bee4, 1, 0x04, 0x03240218 }, |
Ben Skeggs | 88e98d4 | 2014-03-03 16:18:56 +1000 | [diff] [blame] | 153 | {} |
| 154 | }; |
| 155 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 156 | const struct gf100_gr_init |
| 157 | gf117_grctx_init_wwdx_0[] = { |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 158 | { 0x41bf00, 1, 0x04, 0x0a418820 }, |
| 159 | { 0x41bf04, 1, 0x04, 0x062080e6 }, |
| 160 | { 0x41bf08, 1, 0x04, 0x020398a4 }, |
| 161 | { 0x41bf0c, 1, 0x04, 0x0e629062 }, |
| 162 | { 0x41bf10, 1, 0x04, 0x0a418820 }, |
| 163 | { 0x41bf14, 1, 0x04, 0x000000e6 }, |
| 164 | { 0x41bfd0, 1, 0x04, 0x00900103 }, |
| 165 | { 0x41bfe0, 1, 0x04, 0x00400001 }, |
| 166 | { 0x41bfe4, 1, 0x04, 0x00000000 }, |
| 167 | {} |
| 168 | }; |
| 169 | |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 170 | static const struct gf100_gr_pack |
| 171 | gf117_grctx_pack_ppc[] = { |
| 172 | { gf117_grctx_init_pes_0 }, |
| 173 | { gf117_grctx_init_cbm_0 }, |
| 174 | { gf117_grctx_init_wwdx_0 }, |
Ben Skeggs | c33b1e8 | 2014-03-03 16:18:55 +1000 | [diff] [blame] | 175 | {} |
| 176 | }; |
| 177 | |
| 178 | /******************************************************************************* |
| 179 | * PGRAPH context implementation |
| 180 | ******************************************************************************/ |
| 181 | |
Ben Skeggs | 67cfbfd | 2014-08-10 04:10:30 +1000 | [diff] [blame] | 182 | void |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 183 | gf117_grctx_generate_attrib(struct gf100_grctx *info) |
Ben Skeggs | 67cfbfd | 2014-08-10 04:10:30 +1000 | [diff] [blame] | 184 | { |
Ben Skeggs | bfee3f3 | 2015-08-20 14:54:08 +1000 | [diff] [blame] | 185 | struct gf100_gr *gr = info->gr; |
Ben Skeggs | 27f3d6c | 2015-08-20 14:54:19 +1000 | [diff] [blame] | 186 | const struct gf100_grctx_func *grctx = gr->func->grctx; |
| 187 | const u32 alpha = grctx->alpha_nr; |
| 188 | const u32 beta = grctx->attrib_nr; |
| 189 | const u32 size = 0x20 * (grctx->attrib_nr_max + grctx->alpha_nr_max); |
Ben Skeggs | 67cfbfd | 2014-08-10 04:10:30 +1000 | [diff] [blame] | 190 | const u32 access = NV_MEM_ACCESS_RW; |
| 191 | const int s = 12; |
Ben Skeggs | bfee3f3 | 2015-08-20 14:54:08 +1000 | [diff] [blame] | 192 | const int b = mmio_vram(info, size * gr->tpc_total, (1 << s), access); |
Ben Skeggs | 67cfbfd | 2014-08-10 04:10:30 +1000 | [diff] [blame] | 193 | const int timeslice_mode = 1; |
| 194 | const int max_batches = 0xffff; |
| 195 | u32 bo = 0; |
Ben Skeggs | 27f3d6c | 2015-08-20 14:54:19 +1000 | [diff] [blame] | 196 | u32 ao = bo + grctx->attrib_nr_max * gr->tpc_total; |
Ben Skeggs | 67cfbfd | 2014-08-10 04:10:30 +1000 | [diff] [blame] | 197 | int gpc, ppc; |
| 198 | |
| 199 | mmio_refn(info, 0x418810, 0x80000000, s, b); |
| 200 | mmio_refn(info, 0x419848, 0x10000000, s, b); |
| 201 | mmio_wr32(info, 0x405830, (beta << 16) | alpha); |
| 202 | mmio_wr32(info, 0x4064c4, ((alpha / 4) << 16) | max_batches); |
| 203 | |
Ben Skeggs | bfee3f3 | 2015-08-20 14:54:08 +1000 | [diff] [blame] | 204 | for (gpc = 0; gpc < gr->gpc_nr; gpc++) { |
| 205 | for (ppc = 0; ppc < gr->ppc_nr[gpc]; ppc++) { |
| 206 | const u32 a = alpha * gr->ppc_tpc_nr[gpc][ppc]; |
| 207 | const u32 b = beta * gr->ppc_tpc_nr[gpc][ppc]; |
Ben Skeggs | 67cfbfd | 2014-08-10 04:10:30 +1000 | [diff] [blame] | 208 | const u32 t = timeslice_mode; |
| 209 | const u32 o = PPC_UNIT(gpc, ppc, 0); |
Ben Skeggs | 2fb2b3c | 2015-11-23 05:47:19 +1000 | [diff] [blame] | 210 | if (!(gr->ppc_mask[gpc] & (1 << ppc))) |
| 211 | continue; |
Ben Skeggs | 67cfbfd | 2014-08-10 04:10:30 +1000 | [diff] [blame] | 212 | mmio_skip(info, o + 0xc0, (t << 28) | (b << 16) | ++bo); |
| 213 | mmio_wr32(info, o + 0xc0, (t << 28) | (b << 16) | --bo); |
Ben Skeggs | 27f3d6c | 2015-08-20 14:54:19 +1000 | [diff] [blame] | 214 | bo += grctx->attrib_nr_max * gr->ppc_tpc_nr[gpc][ppc]; |
Ben Skeggs | 67cfbfd | 2014-08-10 04:10:30 +1000 | [diff] [blame] | 215 | mmio_wr32(info, o + 0xe4, (a << 16) | ao); |
Ben Skeggs | 27f3d6c | 2015-08-20 14:54:19 +1000 | [diff] [blame] | 216 | ao += grctx->alpha_nr_max * gr->ppc_tpc_nr[gpc][ppc]; |
Ben Skeggs | 67cfbfd | 2014-08-10 04:10:30 +1000 | [diff] [blame] | 217 | } |
| 218 | } |
| 219 | } |
| 220 | |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 221 | void |
Ben Skeggs | bfee3f3 | 2015-08-20 14:54:08 +1000 | [diff] [blame] | 222 | gf117_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info) |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 223 | { |
Ben Skeggs | 276836d | 2015-08-20 14:54:10 +1000 | [diff] [blame] | 224 | struct nvkm_device *device = gr->base.engine.subdev.device; |
Ben Skeggs | 27f3d6c | 2015-08-20 14:54:19 +1000 | [diff] [blame] | 225 | const struct gf100_grctx_func *grctx = gr->func->grctx; |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 226 | int i; |
| 227 | |
Ben Skeggs | 54dcadd | 2015-08-20 14:54:21 +1000 | [diff] [blame] | 228 | nvkm_mc_unk260(device->mc, 0); |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 229 | |
Ben Skeggs | 27f3d6c | 2015-08-20 14:54:19 +1000 | [diff] [blame] | 230 | gf100_gr_mmio(gr, grctx->hub); |
| 231 | gf100_gr_mmio(gr, grctx->gpc); |
| 232 | gf100_gr_mmio(gr, grctx->zcull); |
| 233 | gf100_gr_mmio(gr, grctx->tpc); |
| 234 | gf100_gr_mmio(gr, grctx->ppc); |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 235 | |
Ben Skeggs | 276836d | 2015-08-20 14:54:10 +1000 | [diff] [blame] | 236 | nvkm_wr32(device, 0x404154, 0x00000000); |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 237 | |
Ben Skeggs | 27f3d6c | 2015-08-20 14:54:19 +1000 | [diff] [blame] | 238 | grctx->bundle(info); |
| 239 | grctx->pagepool(info); |
| 240 | grctx->attrib(info); |
| 241 | grctx->unkn(gr); |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 242 | |
Ben Skeggs | bfee3f3 | 2015-08-20 14:54:08 +1000 | [diff] [blame] | 243 | gf100_grctx_generate_tpcid(gr); |
| 244 | gf100_grctx_generate_r406028(gr); |
| 245 | gf100_grctx_generate_r4060a8(gr); |
| 246 | gk104_grctx_generate_r418bb8(gr); |
| 247 | gf100_grctx_generate_r406800(gr); |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 248 | |
| 249 | for (i = 0; i < 8; i++) |
Ben Skeggs | 276836d | 2015-08-20 14:54:10 +1000 | [diff] [blame] | 250 | nvkm_wr32(device, 0x4064d0 + (i * 0x04), 0x00000000); |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 251 | |
Ben Skeggs | 27f3d6c | 2015-08-20 14:54:19 +1000 | [diff] [blame] | 252 | gf100_gr_icmd(gr, grctx->icmd); |
Ben Skeggs | 276836d | 2015-08-20 14:54:10 +1000 | [diff] [blame] | 253 | nvkm_wr32(device, 0x404154, 0x00000400); |
Ben Skeggs | 27f3d6c | 2015-08-20 14:54:19 +1000 | [diff] [blame] | 254 | gf100_gr_mthd(gr, grctx->mthd); |
Ben Skeggs | 54dcadd | 2015-08-20 14:54:21 +1000 | [diff] [blame] | 255 | nvkm_mc_unk260(device->mc, 1); |
Maarten Lankhorst | 26410c6 | 2013-07-04 10:04:30 +1000 | [diff] [blame] | 256 | } |
| 257 | |
Ben Skeggs | 27f3d6c | 2015-08-20 14:54:19 +1000 | [diff] [blame] | 258 | const struct gf100_grctx_func |
| 259 | gf117_grctx = { |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 260 | .main = gf117_grctx_generate_main, |
| 261 | .unkn = gk104_grctx_generate_unkn, |
| 262 | .hub = gf117_grctx_pack_hub, |
| 263 | .gpc = gf117_grctx_pack_gpc, |
| 264 | .zcull = gf100_grctx_pack_zcull, |
| 265 | .tpc = gf117_grctx_pack_tpc, |
| 266 | .ppc = gf117_grctx_pack_ppc, |
| 267 | .icmd = gf119_grctx_pack_icmd, |
| 268 | .mthd = gf119_grctx_pack_mthd, |
| 269 | .bundle = gf100_grctx_generate_bundle, |
Ben Skeggs | aa2d58c | 2014-08-10 04:10:29 +1000 | [diff] [blame] | 270 | .bundle_size = 0x1800, |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 271 | .pagepool = gf100_grctx_generate_pagepool, |
Ben Skeggs | f331a15 | 2014-08-10 04:10:29 +1000 | [diff] [blame] | 272 | .pagepool_size = 0x8000, |
Ben Skeggs | e3c71eb | 2015-01-14 15:29:43 +1000 | [diff] [blame] | 273 | .attrib = gf117_grctx_generate_attrib, |
Ben Skeggs | 67cfbfd | 2014-08-10 04:10:30 +1000 | [diff] [blame] | 274 | .attrib_nr_max = 0x324, |
| 275 | .attrib_nr = 0x218, |
| 276 | .alpha_nr_max = 0x7ff, |
| 277 | .alpha_nr = 0x324, |
Ben Skeggs | 27f3d6c | 2015-08-20 14:54:19 +1000 | [diff] [blame] | 278 | }; |