search for: fcrd

Displaying 5 results from an estimated 5 matches for "fcrd".

Did you mean: crd
2009 Sep 12
0
[PATCH 09/13] nv50: move allocation of pc regs
...[n].acc = acc[n]; - pc->attr[n].rhw = pc->attr[n].hw = -1; alloc_reg(pc, &pc->attr[n]); pc->attr[n].rhw = (*aid)++; @@ -2025,23 +2007,13 @@ nv50_program_tx_prep(struct nv50_pc *pc) struct tgsi_parse_context p; boolean ret = FALSE; unsigned i, c; - unsigned fcol, bcol, fcrd, depr; + unsigned fcol, bcol, fcrd; /* count (centroid) perspective interpolations */ unsigned centroid_loads = 0; unsigned perspect_loads = 0; - /* track register access for temps and attrs */ - unsigned *r_usage[2]; - r_usage[0] = NULL; - r_usage[1] = NULL; - - depr = fcol = bcol = fcrd...
2009 Jun 21
0
[PATCH] nv50: add support for two-sided lighting
.../nv50/nv50_program.c index 7a4bc18..30a1d32 100644 --- a/src/gallium/drivers/nv50/nv50_program.c +++ b/src/gallium/drivers/nv50/nv50_program.c @@ -1779,7 +1779,7 @@ nv50_program_tx_prep(struct nv50_pc *pc) struct tgsi_parse_context p; boolean ret = FALSE; unsigned i, c; - unsigned fcol, bcol, fcrd, depr; + unsigned fcol[2], bcol[2], fcrd, depr; /* count (centroid) perspective interpolations */ unsigned centroid_loads = 0; @@ -1791,7 +1791,9 @@ nv50_program_tx_prep(struct nv50_pc *pc) r_usage[0] = CALLOC(pc->temp_nr * 4, sizeof(unsigned)); r_usage[1] = CALLOC(pc->attr_nr * 4,...
2009 Jun 24
0
[PATCH] nv50: fix previous patches
...last = d->DeclarationRange.Last; +#ifdef NV50_PROGRAM_DUMP + tgsi_dump_declaration(d); +#endif + switch (d->Declaration.File) { case TGSI_FILE_TEMPORARY: break; @@ -2094,38 +2107,36 @@ nv50_program_tx_prep(struct nv50_pc *pc) /* position should be loaded first */ if (fcrd != 0xffff) { unsigned mask; - oid = mid = 0; + oid = 0; + mid = 0; mask = prep_fp_attrib(pc, fcrd, r_usage[1], &mid, &aid, &oid); pc->p->cfg.fp.regs[1] |= (mask << 24); pc->p->cfg.fp.map[0] += 0x04040404 * fcrd; + oid = 0;...
2009 Sep 12
0
[PATCH 10/13] nv50: proper linkage between VP and FP
...skipped. + */ } - return mask; + emit_interp(pc, reg, iv, mode); } static boolean nv50_program_tx_prep(struct nv50_pc *pc) { - struct tgsi_parse_context p; + struct tgsi_parse_context tp; + struct nv50_program *p = pc->p; boolean ret = FALSE; - unsigned i, c; - unsigned fcol, bcol, fcrd; - - /* count (centroid) perspective interpolations */ - unsigned centroid_loads = 0; - unsigned perspect_loads = 0; + unsigned i, c, flat_nr = 0; - fcol = bcol = fcrd = ~0; + tgsi_parse_init(&tp, pc->p->pipe.tokens); + while (!tgsi_parse_end_of_tokens(&tp)) { + const union tgsi_fu...
2009 May 06
2
nv50: shader generation patches
Hi ! I've been trying to improve NV50 shader generation a bit the last couple of weeks, so here is what I've produced. I don't know if it's usable for you or just a pile of horrible hacks, but at least it makes some mesa demos render more correcly, p.e. the teapot (aside from mip-mapping issues of the floor texture), arbfplight, and I think the gears also didn't appear as they