Commit ff8c0c9a authored by Tim Rowley's avatar Tim Rowley

swr: [rasterizer core] Faster modulo operator in ProcessVerts

Avoid % operator, since we know that curVertex is always incrementing.
Reviewed-by: Bruce Cherniak's avatarBruce Cherniak <bruce.cherniak@intel.com>
parent 2be7c3e7
......@@ -508,7 +508,10 @@ struct PA_STATE_CUT : public PA_STATE
(this->*pfnPa)(this->curVertex, false);
}
this->curVertex = (this->curVertex + 1) % this->numVerts;
this->curVertex++;
if (this->curVertex >= this->numVerts) {
this->curVertex = 0;
}
this->numRemainingVerts--;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment