r600: remove duplicate stride setting
authorAndre Maasikas <amaasikas@gmail.com>
Fri, 23 Oct 2009 13:44:31 +0000 (16:44 +0300)
committerAndre Maasikas <amaasikas@gmail.com>
Fri, 23 Oct 2009 14:16:46 +0000 (17:16 +0300)
Stride is set already in r700SetVertexFormat and there it works
correctly for 0 also

src/mesa/drivers/dri/r600/r700_render.c

index 3e1ce9fb72f6d425f5b479a265cd21f33bf44499..9cf984f96636146a9382541cbec7dfccc08fc9ed 100644 (file)
@@ -618,19 +618,15 @@ static void r700SetupStreams(GLcontext *ctx, const struct gl_client_array *input
                 {
                 case 1:                     
                     radeonEmitVec4(dst, input[i]->Ptr, input[i]->StrideB, local_count);                         
-                                       context->stream_desc[index].stride = 4; 
                     break;
                 case 2: 
                     radeonEmitVec8(dst, input[i]->Ptr, input[i]->StrideB, local_count); 
-                                       context->stream_desc[index].stride = 8; 
                     break;
                 case 3: 
                     radeonEmitVec12(dst, input[i]->Ptr, input[i]->StrideB, local_count); 
-                                       context->stream_desc[index].stride = 12; 
                     break;
                 case 4: 
                     radeonEmitVec16(dst, input[i]->Ptr, input[i]->StrideB, local_count); 
-                                       context->stream_desc[index].stride = 16; 
                     break;
                 default: 
                     assert(0);