Is it true that Mesa uses CPU to rendering?
It depends on, if the GPU installed in the system is supported by Mesa/DRI and the version of the created OpenGL. If the GPU is supported, rendering will happen on the GPU. If the GPU is not supported, or lacks features required for the context version requested Mesa will fall back to a software rasterizer backend running on the CPU.