summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver McFadden <z3ro.geek@gmail.com>2007-05-25 23:50:36 +0000
committerOliver McFadden <z3ro.geek@gmail.com>2007-05-25 23:50:36 +0000
commit9ed32f42510a7e6a2cc965a27a97a22a0d5c7e0a (patch)
tree23fb986acce51fa4ba8f54c1d831f7bc190c4abd
parentb9c0a00ed0022f0131dbf3cd9755ba8212ce3908 (diff)
r300: Renamed "dt" to "attribptr" in the t_vir0 function.
-rw-r--r--src/mesa/drivers/dri/r300/r300_emit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_emit.c b/src/mesa/drivers/dri/r300/r300_emit.c
index 51e6d55cc9..7a716d7f6d 100644
--- a/src/mesa/drivers/dri/r300/r300_emit.c
+++ b/src/mesa/drivers/dri/r300/r300_emit.c
@@ -219,13 +219,13 @@ static void r300EmitVec(GLcontext * ctx,
* I'll create some documentation for t_vir0 and t_vir1 tomorrow and probably
* add the shifts as defines in r300_reg.h.
*/
-static GLuint t_vir0(uint32_t * dst, GLvector4f ** dt, int *inputs, GLint * tab, GLuint nr)
+static GLuint t_vir0(uint32_t * dst, GLvector4f ** attribptr, int *inputs, GLint * tab, GLuint nr)
{
GLuint i, dw;
for (i = 0; i + 1 < nr; i += 2) {
- dw = (dt[tab[i]]->size - 1) | (inputs[tab[i]] << 8) | (AOS_FORMAT_FLOAT << 14);
- dw |= ((dt[tab[i + 1]]->size - 1) | (inputs[tab[i + 1]] << 8) | (AOS_FORMAT_FLOAT << 14)) << 16;
+ dw = (attribptr[tab[i]]->size - 1) | (inputs[tab[i]] << 8) | (AOS_FORMAT_FLOAT << 14);
+ dw |= ((attribptr[tab[i + 1]]->size - 1) | (inputs[tab[i + 1]] << 8) | (AOS_FORMAT_FLOAT << 14)) << 16;
if (i + 2 == nr) {
dw |= (1 << (13 + 16));
}
@@ -233,7 +233,7 @@ static GLuint t_vir0(uint32_t * dst, GLvector4f ** dt, int *inputs, GLint * tab,
}
if (nr & 1) {
- dw = (dt[tab[nr - 1]]->size - 1) | (inputs[tab[nr - 1]] << 8) | (AOS_FORMAT_FLOAT << 14);
+ dw = (attribptr[tab[nr - 1]]->size - 1) | (inputs[tab[nr - 1]] << 8) | (AOS_FORMAT_FLOAT << 14);
dw |= 1 << 13;
dst[nr >> 1] = dw;
}