drm/radeon/kms: optimize CS state checking for r100->r500