radeonsi: add a helper for extracting bitfields from parameters (v2)