Lines Matching defs:gr
33 gp102_grctx_generate_r408840(struct gf100_gr *gr)
35 struct nvkm_device *device = gr->base.engine.subdev.device;
42 struct gf100_gr *gr = chan->gr;
43 const struct gf100_grctx_func *grctx = gr->func->grctx;
48 u32 size = grctx->alpha_nr_max * gr->tpc_total;
57 for (gpc = 0; gpc < gr->gpc_nr; gpc++) {
58 for (ppc = 0; ppc < gr->func->ppc_nr; ppc++, n++) {
59 const u32 as = alpha * gr->ppc_tpc_nr[gpc][ppc];
60 const u32 bs = attrib * gr->ppc_tpc_max;
61 const u32 gs = gfxp * gr->ppc_tpc_max;
66 if (!(gr->ppc_mask[gpc] & (1 << ppc)))
76 ao += grctx->alpha_nr_max * gr->ppc_tpc_nr[gpc][ppc];
86 gp102_grctx_generate_attrib_cb_size(struct gf100_gr *gr)
88 const struct gf100_grctx_func *grctx = gr->func->grctx;
89 u32 size = grctx->alpha_nr_max * gr->tpc_total;
92 for (gpc = 0; gpc < gr->gpc_nr; gpc++)
93 size += grctx->gfxp_nr * gr->func->ppc_nr * gr->ppc_tpc_max;