mesa: Move declaration to top of block.

To fix MSVC build.  Trivial.
(cherry picked from commit c98b704128ed450b46c61e139d9f17c652a74c09)