svga: don't copy blit_info into local var
[mesa.git] / src / gallium / drivers / svga / svga_cmd_vgpu10.c
index 99c9add1743f436b5050e02d7ece4c348f28c619..2729655ef47bde9313f88065e9221d97574227ed 100644 (file)
@@ -1112,7 +1112,7 @@ SVGA3D_vgpu10_DefineStreamOutput(struct svga_winsys_context *swc,
    cmd->soid = soid;
    cmd->numOutputStreamEntries = numOutputStreamEntries;
 
-   for (i = 0; i < Elements(cmd->streamOutputStrideInBytes); i++)
+   for (i = 0; i < ARRAY_SIZE(cmd->streamOutputStrideInBytes); i++)
       cmd->streamOutputStrideInBytes[i] = streamOutputStrideInBytes[i];
 
    memcpy(cmd->decl, decl,