diff options
author | Oliver McFadden <z3ro.geek@gmail.com> | 2007-05-25 21:38:49 +0000 |
---|---|---|
committer | Oliver McFadden <z3ro.geek@gmail.com> | 2007-05-25 21:38:49 +0000 |
commit | 93206f7815a22fa176c5ab20201c029f18e9b393 (patch) | |
tree | 58c54f8661247be7272f268a51f06615db2bf702 /src/mesa/drivers/dri | |
parent | 9f39692e215bf4b61b8a9f52fade738743401d5a (diff) |
r300: Added a TODO note and some tiny cleanups to r300_emit.c.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_emit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_emit.c b/src/mesa/drivers/dri/r300/r300_emit.c index 9fb712f7b8..ccbf838ca2 100644 --- a/src/mesa/drivers/dri/r300/r300_emit.c +++ b/src/mesa/drivers/dri/r300/r300_emit.c @@ -223,6 +223,7 @@ static void r300EmitVec(GLcontext * ctx, } +/* TODO: explain this... */ #define R300_VIR0_AOS_SIZE_SHIFT 0 #define R300_VIR0_AOS_INPUT_SHIFT 8 #define R300_VIR0_AOS_STOP_SHIFT 13 @@ -405,6 +406,7 @@ int r300EmitArrays(GLcontext * ctx) RENDERINPUTS_COPY(rmesa->state.render_inputs_bitset, inputs_bitset); } + assert(InputsRead); assert(OutputsWritten); @@ -427,8 +429,7 @@ int r300EmitArrays(GLcontext * ctx) for (ci = 0; ci < vb->AttribPtr[tab[i]]->size; ci++) swizzle[i][ci] = ci; - if (r300IsGartMemory(rmesa, vb->AttribPtr[tab[i]]->data, - /*(count-1)*stride */ 4)) { + if (r300IsGartMemory(rmesa, vb->AttribPtr[tab[i]]->data, 4)) { if (vb->AttribPtr[tab[i]]->stride % 4) return R300_FALLBACK_TCL; |