if (i915->hardware_dirty)
i915_emit_hardware_state( i915 );
- ptr = BEGIN_BATCH( nr * vertex_size, 0 );
+ ptr = BEGIN_BATCH( 1 + nr * vertex_size / 4, 0 );
if (ptr == 0) {
FLUSH_BATCH();
i915_update_derived( i915 );
i915_emit_hardware_state( i915 );
- ptr = BEGIN_BATCH( nr * vertex_size, 0 );
+ ptr = BEGIN_BATCH( 1 + nr * vertex_size / 4, 0 );
if (ptr == 0) {
assert(0);
return;
hwprim |
((4 + vertex_size * nr)/4 - 2));
- for (i = 0; i < nr; i++) {
+ for (i = 0; i < nr; i++)
emit_hw_vertex(i915, prim->v[i]);
- ptr += vertex_size / sizeof(int);
- }
}