drm/amd/display: Refactor to remove diags specific rgam func