i965/fs: Avoid register coalescing away gen6 MATH workarounds.
[mesa.git] / src / mesa / math / m_copy_tmp.h
index a9e33511ee238be63ca1736de7c6747c7ff55711..07ab1f7b2aa4f121a54e2d848c48179f95b463ed 100644 (file)
@@ -34,7 +34,7 @@ static void TAG2(copy, BITS)( GLvector4f *to, const GLvector4f *f )   \
    GLfloat (*t)[4] = (GLfloat (*)[4])to->start;                                \
    GLfloat *from = f->start;                                           \
    GLuint stride = f->stride;                                          \
-   GLuint count = f->count;                                            \
+   GLuint count = to->count;                                           \
    GLuint i;                                                           \
                                                                        \
    if (BITS)                                                           \