virgl: Fix a strict-aliasing violation in the encoder