Lines Matching refs:zbc
44 gf100_gr_zbc_clear_color(struct gf100_gr *gr, int zbc) in gf100_gr_zbc_clear_color() argument
47 if (gr->zbc_color[zbc].format) { in gf100_gr_zbc_clear_color()
48 nvkm_wr32(device, 0x405804, gr->zbc_color[zbc].ds[0]); in gf100_gr_zbc_clear_color()
49 nvkm_wr32(device, 0x405808, gr->zbc_color[zbc].ds[1]); in gf100_gr_zbc_clear_color()
50 nvkm_wr32(device, 0x40580c, gr->zbc_color[zbc].ds[2]); in gf100_gr_zbc_clear_color()
51 nvkm_wr32(device, 0x405810, gr->zbc_color[zbc].ds[3]); in gf100_gr_zbc_clear_color()
53 nvkm_wr32(device, 0x405814, gr->zbc_color[zbc].format); in gf100_gr_zbc_clear_color()
54 nvkm_wr32(device, 0x405820, zbc); in gf100_gr_zbc_clear_color()
63 int zbc = -ENOSPC, i; in gf100_gr_zbc_color_get() local
79 zbc = (zbc < 0) ? i : zbc; in gf100_gr_zbc_color_get()
83 if (zbc < 0) in gf100_gr_zbc_color_get()
84 return zbc; in gf100_gr_zbc_color_get()
86 memcpy(gr->zbc_color[zbc].ds, ds, sizeof(gr->zbc_color[zbc].ds)); in gf100_gr_zbc_color_get()
87 memcpy(gr->zbc_color[zbc].l2, l2, sizeof(gr->zbc_color[zbc].l2)); in gf100_gr_zbc_color_get()
88 gr->zbc_color[zbc].format = format; in gf100_gr_zbc_color_get()
89 nvkm_ltc_zbc_color_get(ltc, zbc, l2); in gf100_gr_zbc_color_get()
90 gf100_gr_zbc_clear_color(gr, zbc); in gf100_gr_zbc_color_get()
91 return zbc; in gf100_gr_zbc_color_get()
95 gf100_gr_zbc_clear_depth(struct gf100_gr *gr, int zbc) in gf100_gr_zbc_clear_depth() argument
98 if (gr->zbc_depth[zbc].format) in gf100_gr_zbc_clear_depth()
99 nvkm_wr32(device, 0x405818, gr->zbc_depth[zbc].ds); in gf100_gr_zbc_clear_depth()
100 nvkm_wr32(device, 0x40581c, gr->zbc_depth[zbc].format); in gf100_gr_zbc_clear_depth()
101 nvkm_wr32(device, 0x405820, zbc); in gf100_gr_zbc_clear_depth()
110 int zbc = -ENOSPC, i; in gf100_gr_zbc_depth_get() local
124 zbc = (zbc < 0) ? i : zbc; in gf100_gr_zbc_depth_get()
128 if (zbc < 0) in gf100_gr_zbc_depth_get()
129 return zbc; in gf100_gr_zbc_depth_get()
131 gr->zbc_depth[zbc].format = format; in gf100_gr_zbc_depth_get()
132 gr->zbc_depth[zbc].ds = ds; in gf100_gr_zbc_depth_get()
133 gr->zbc_depth[zbc].l2 = l2; in gf100_gr_zbc_depth_get()
134 nvkm_ltc_zbc_depth_get(ltc, zbc, l2); in gf100_gr_zbc_depth_get()
135 gf100_gr_zbc_clear_depth(gr, zbc); in gf100_gr_zbc_depth_get()
136 return zbc; in gf100_gr_zbc_depth_get()