mesa: add debug printer for primitive name