search for: high_map

Displaying 4 results from an estimated 4 matches for "high_map".

Did you mean: high_mask
2009 Jun 21
0
[PATCH] nv50: add support for two-sided lighting
...d = (fcrd == 0xffff) ? 4 : 0; for (i = 0; i < pc->attr_nr; i++) load_fp_attrib(pc, i, r_usage[1], &mid, &aid, &oid); @@ -1985,8 +2000,7 @@ nv50_program_tx_prep(struct nv50_pc *pc) if (pc->iv_c) free_temp(pc, pc->iv_c); - pc->p->cfg.fp.high_map = (mid / 4); - pc->p->cfg.fp.high_map += ((mid % 4) ? 1 : 0); + pc->p->cfg.fp.high_map = mid; } else { /* vertex program */ for (i = 0; i < pc->attr_nr; i++) { @@ -2011,6 +2025,10 @@ nv50_program_tx_prep(struct nv50_pc *pc) if (pc->p->type == PIPE_SHADER_VE...
2009 Sep 12
0
[PATCH 10/13] nv50: proper linkage between VP and FP
...d the interpolants */ + aid = tgsi_off ? popcnt4(p->cfg.regs[1] >> 24) : 0; - if (pc->iv_p) - free_temp(pc, pc->iv_p); - if (pc->iv_c) - free_temp(pc, pc->iv_c); + for (i = 0; i < pc->attr_nr; ++i) { + p->cfg.io[i].hw_id = aid; - pc->p->cfg.fp.high_map = (mid / 4); - pc->p->cfg.fp.high_map += ((mid % 4) ? 1 : 0); - } else { - /* vertex program */ - for (i = 0; i < pc->attr_nr * 4; i++) { - pc->p->cfg.vp.attr[aid / 32] |= - (1 << (aid % 32)); - pc->attr[i].hw = aid++; + for (c = 0; c < 4; ++c) { +...
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
2009 Sep 12
0
[PATCH 09/13] nv50: move allocation of pc regs
...= p->info.file_max[TGSI_FILE_CONSTANT] + 1; + + p->cfg.high_temp = 4; + + switch (p->type) { + case PIPE_SHADER_VERTEX: + break; + case PIPE_SHADER_FRAGMENT: + p->cfg.fp.regs[0] = 0x01000404; + p->cfg.fp.regs[1] = 0x00000400; + + p->cfg.fp.map[0] = 0x03020100; + p->cfg.fp.high_map = 1; + + rtype[0] = rtype[1] = P_TEMP; + + if (p->info.writes_z) { + p->cfg.fp.regs[2] |= 0x00000100; + p->cfg.fp.regs[3] |= 0x00000011; + } + if (p->info.uses_kill) + p->cfg.fp.regs[2] |= 0x00100000; + break; + } + + if (pc->temp_nr) { + pc->temp = MALLOC(pc->te...