Rework slightly r300_get_primitive_type - make it clearer and more compact..