freedreno/ir3: Improve shader key normalization.