Lines Matching refs:zbc

49 gf100_gr_zbc_clear_color(struct gf100_gr *gr, int zbc)  in gf100_gr_zbc_clear_color()  argument
52 if (gr->zbc_color[zbc].format) { in gf100_gr_zbc_clear_color()
53 nvkm_wr32(device, 0x405804, gr->zbc_color[zbc].ds[0]); in gf100_gr_zbc_clear_color()
54 nvkm_wr32(device, 0x405808, gr->zbc_color[zbc].ds[1]); in gf100_gr_zbc_clear_color()
55 nvkm_wr32(device, 0x40580c, gr->zbc_color[zbc].ds[2]); in gf100_gr_zbc_clear_color()
56 nvkm_wr32(device, 0x405810, gr->zbc_color[zbc].ds[3]); in gf100_gr_zbc_clear_color()
58 nvkm_wr32(device, 0x405814, gr->zbc_color[zbc].format); in gf100_gr_zbc_clear_color()
59 nvkm_wr32(device, 0x405820, zbc); in gf100_gr_zbc_clear_color()
68 int zbc = -ENOSPC, i; in gf100_gr_zbc_color_get() local
84 zbc = (zbc < 0) ? i : zbc; in gf100_gr_zbc_color_get()
88 if (zbc < 0) in gf100_gr_zbc_color_get()
89 return zbc; in gf100_gr_zbc_color_get()
91 memcpy(gr->zbc_color[zbc].ds, ds, sizeof(gr->zbc_color[zbc].ds)); in gf100_gr_zbc_color_get()
92 memcpy(gr->zbc_color[zbc].l2, l2, sizeof(gr->zbc_color[zbc].l2)); in gf100_gr_zbc_color_get()
93 gr->zbc_color[zbc].format = format; in gf100_gr_zbc_color_get()
94 nvkm_ltc_zbc_color_get(ltc, zbc, l2); in gf100_gr_zbc_color_get()
95 gr->func->zbc->clear_color(gr, zbc); in gf100_gr_zbc_color_get()
96 return zbc; in gf100_gr_zbc_color_get()
100 gf100_gr_zbc_clear_depth(struct gf100_gr *gr, int zbc) in gf100_gr_zbc_clear_depth() argument
103 if (gr->zbc_depth[zbc].format) in gf100_gr_zbc_clear_depth()
104 nvkm_wr32(device, 0x405818, gr->zbc_depth[zbc].ds); in gf100_gr_zbc_clear_depth()
105 nvkm_wr32(device, 0x40581c, gr->zbc_depth[zbc].format); in gf100_gr_zbc_clear_depth()
106 nvkm_wr32(device, 0x405820, zbc); in gf100_gr_zbc_clear_depth()
115 int zbc = -ENOSPC, i; in gf100_gr_zbc_depth_get() local
129 zbc = (zbc < 0) ? i : zbc; in gf100_gr_zbc_depth_get()
133 if (zbc < 0) in gf100_gr_zbc_depth_get()
134 return zbc; in gf100_gr_zbc_depth_get()
136 gr->zbc_depth[zbc].format = format; in gf100_gr_zbc_depth_get()
137 gr->zbc_depth[zbc].ds = ds; in gf100_gr_zbc_depth_get()
138 gr->zbc_depth[zbc].l2 = l2; in gf100_gr_zbc_depth_get()
139 nvkm_ltc_zbc_depth_get(ltc, zbc, l2); in gf100_gr_zbc_depth_get()
140 gr->func->zbc->clear_depth(gr, zbc); in gf100_gr_zbc_depth_get()
141 return zbc; in gf100_gr_zbc_depth_get()
967 if (gr->func->zbc->stencil_get) { in gf100_gr_zbc_init()
968 gr->func->zbc->stencil_get(gr, 1, 0x00, 0x00); s++; in gf100_gr_zbc_init()
969 gr->func->zbc->stencil_get(gr, 1, 0x01, 0x01); s++; in gf100_gr_zbc_init()
970 gr->func->zbc->stencil_get(gr, 1, 0xff, 0xff); s++; in gf100_gr_zbc_init()
975 gr->func->zbc->clear_color(gr, index); in gf100_gr_zbc_init()
977 gr->func->zbc->clear_depth(gr, index); in gf100_gr_zbc_init()
979 if (gr->func->zbc->clear_stencil) { in gf100_gr_zbc_init()
981 gr->func->zbc->clear_stencil(gr, index); in gf100_gr_zbc_init()
2416 .zbc = &gf100_gr_zbc,