This source file includes following definitions.
- gp102_ltc_zbc_clear_stencil
- gp102_ltc_new
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #include "priv.h"
23
24 void
25 gp102_ltc_zbc_clear_stencil(struct nvkm_ltc *ltc, int i, const u32 stencil)
26 {
27 struct nvkm_device *device = ltc->subdev.device;
28 nvkm_mask(device, 0x17e338, 0x0000000f, i);
29 nvkm_wr32(device, 0x17e204, stencil);
30 }
31
32 static const struct nvkm_ltc_func
33 gp102_ltc = {
34 .oneinit = gp100_ltc_oneinit,
35 .init = gp100_ltc_init,
36 .intr = gp100_ltc_intr,
37 .cbc_clear = gm107_ltc_cbc_clear,
38 .cbc_wait = gm107_ltc_cbc_wait,
39 .zbc = 16,
40 .zbc_clear_color = gm107_ltc_zbc_clear_color,
41 .zbc_clear_depth = gm107_ltc_zbc_clear_depth,
42 .zbc_clear_stencil = gp102_ltc_zbc_clear_stencil,
43 .invalidate = gf100_ltc_invalidate,
44 .flush = gf100_ltc_flush,
45 };
46
47 int
48 gp102_ltc_new(struct nvkm_device *device, int index, struct nvkm_ltc **pltc)
49 {
50 return nvkm_ltc_new_(&gp102_ltc, device, index, pltc);
51 }