mesa: add program_parameteri() helper