r300-gallium: Correct vertex format setup, cleanup regs and debugging.