An on-chip spectropolarimeter is proposed based on gallium nitride polarization and spectral encoders. Polarization encoding is achieved via local strain engineering and valence-band mixing induced by asymmetric strain relaxation. Broadband polarization-sensitive photodetectors can replace linear polarizers to enable chip-scale implementation of a spectropolarimeter with the help of computational reconstructive algorithms.