search for: pntc

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

Did you mean: patc
2007 Jun 12
0
[PATCH] Combined checkFTB and capDirection into one checkOrientation function.
...orm.m, mvp); - - pntA[0] = outputPtr->region.extents.x1; - pntA[1] = outputPtr->region.extents.y1, - pntA[2] = 0.0f; - pntA[3] = 1.0f; - - pntB[0] = outputPtr->region.extents.x2; - pntB[1] = outputPtr->region.extents.y1; - pntB[2] = 0.0f; - pntB[3] = 1.0f; - - pntC[0] = outputPtr->region.extents.x1 + outputPtr->width / 2.0f; - pntC[1] = outputPtr->region.extents.y1 + outputPtr->height / 2.0f; - pntC[2] = 0.0f; - pntC[3] = 1.0f; - - MULTMV (mvp, pntA); - DIVV (pntA); - - MULTMV (mvp, pntB); - DIVV (pntB); - - MULTMV (mvp, pn...
2015 May 26
2
[PATCH 2/2] nv30/draw: switch varying hookup logic to know about texcoords
...ute[sem].ow40 << result; > + else { > + assert(sem == TGSI_SEMANTIC_TEXCOORD); > + *idx = 0x00001000 << (result - 8); > + } > return TRUE; > } > > @@ -330,7 +337,7 @@ nv30_render_validate(struct nv30_context *nv30) > > while (pntc && attrib < 16) { > uint index = ffs(pntc) - 1; pntc &= ~(1 << index); > - if (vroute_add(r, attrib, TGSI_SEMANTIC_GENERIC, &index)) { > + if (vroute_add(r, attrib, TGSI_SEMANTIC_TEXCOORD, &index)) { > vp_attribs |= (1 << a...
2015 May 26
2
[PATCH 2/2] nv30/draw: switch varying hookup logic to know about texcoords
...gt;>> + assert(sem == TGSI_SEMANTIC_TEXCOORD); >>> + *idx = 0x00001000 << (result - 8); >>> + } >>> return TRUE; >>> } >>> @@ -330,7 +337,7 @@ nv30_render_validate(struct nv30_context *nv30) >>> while (pntc && attrib < 16) { >>> uint index = ffs(pntc) - 1; pntc &= ~(1 << index); >>> - if (vroute_add(r, attrib, TGSI_SEMANTIC_GENERIC, &index)) { >>> + if (vroute_add(r, attrib, TGSI_SEMANTIC_TEXCOORD, &index)) { >>>...
2015 May 25
3
[PATCH 1/2] nv30/draw: rework some of the output vertex buffer logic
This makes the vertex buffer go to GART, not VRAM, and redoes the mapping to not use the UNSYNCHRONIZED access (which is meaningless on a VRAM buffer anyways). While we're at it, add some flushes for VBO data. Moving the vertex buffer from VRAM to GART makes glxgears work fully with NV30_SWTNL=1. The other changes just seem like a good idea. I'm not sure *why* moving the buffer from VRAM
2009 Sep 12
0
[PATCH 13/13] nv50: add support for point sprites
...v50_program.c b/src/gallium/drivers/nv50/nv50_program.c index cf57d5c..883c28b 100644 --- a/src/gallium/drivers/nv50/nv50_program.c +++ b/src/gallium/drivers/nv50/nv50_program.c @@ -2689,6 +2689,51 @@ nv50_fragprog_validate(struct nv50_context *nv50) so_ref(NULL, &so); } +static void +nv50_pntc_replace(struct nv50_context *nv50, uint32_t pntc[8], unsigned base) +{ + struct nv50_program *fp = nv50->fragprog; + struct nv50_program *vp = nv50->vertprog; + unsigned i, c, m = base; + + /* XXX: This can't work correctly in all cases yet, we either + * have to create TGSI_SEMANTIC_PNT...