mesa: clean up glMultiDrawElements code, use alloca for small draw count (v2)