R600: rework handling of the constants