[PATCH v2] drm/amd/display: optimize code runtime a bit