Lines Matching refs:gr

188 gf117_grctx_generate_dist_skip_table(struct gf100_gr *gr)  in gf117_grctx_generate_dist_skip_table()  argument
190 struct nvkm_device *device = gr->base.engine.subdev.device; in gf117_grctx_generate_dist_skip_table()
198 gf117_grctx_generate_rop_mapping(struct gf100_gr *gr) in gf117_grctx_generate_rop_mapping() argument
200 struct nvkm_device *device = gr->base.engine.subdev.device; in gf117_grctx_generate_rop_mapping()
207 data[i / 6] |= (gr->tile[i] & 0x07) << ((i % 6) * 5); in gf117_grctx_generate_rop_mapping()
211 ntpcv = gr->tpc_total; in gf117_grctx_generate_rop_mapping()
224 nvkm_wr32(device, 0x418bb8, (gr->tpc_total << 8) | in gf117_grctx_generate_rop_mapping()
225 gr->screen_tile_row_offset); in gf117_grctx_generate_rop_mapping()
230 nvkm_wr32(device, 0x41bfd0, (gr->tpc_total << 8) | in gf117_grctx_generate_rop_mapping()
231 gr->screen_tile_row_offset | data2[0]); in gf117_grctx_generate_rop_mapping()
237 nvkm_wr32(device, 0x4078bc, (gr->tpc_total << 8) | in gf117_grctx_generate_rop_mapping()
238 gr->screen_tile_row_offset); in gf117_grctx_generate_rop_mapping()
246 struct gf100_gr *gr = info->gr; in gf117_grctx_generate_attrib() local
247 const struct gf100_grctx_func *grctx = gr->func->grctx; in gf117_grctx_generate_attrib()
252 const int b = mmio_vram(info, size * gr->tpc_total, (1 << s), false); in gf117_grctx_generate_attrib()
256 u32 ao = bo + grctx->attrib_nr_max * gr->tpc_total; in gf117_grctx_generate_attrib()
264 for (gpc = 0; gpc < gr->gpc_nr; gpc++) { in gf117_grctx_generate_attrib()
265 for (ppc = 0; ppc < gr->ppc_nr[gpc]; ppc++) { in gf117_grctx_generate_attrib()
266 const u32 a = alpha * gr->ppc_tpc_nr[gpc][ppc]; in gf117_grctx_generate_attrib()
267 const u32 b = beta * gr->ppc_tpc_nr[gpc][ppc]; in gf117_grctx_generate_attrib()
270 if (!(gr->ppc_mask[gpc] & (1 << ppc))) in gf117_grctx_generate_attrib()
274 bo += grctx->attrib_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gf117_grctx_generate_attrib()
276 ao += grctx->alpha_nr_max * gr->ppc_tpc_nr[gpc][ppc]; in gf117_grctx_generate_attrib()