I don't see any DisplayPort info. How is the display connected? What GPU? What adapter / cable are you using? Can you post a link?
The AGDCDiagnose output says the built-in display is connected with eDP using HBR2 x4 and the external display is connected with DP SST using HBR3 x4.
I wonder why they don't show DisplayPort info then? Try restarting the computer, and use the AGDCDiagnose command by itself:
/System/Library/Extensions/AppleGraphicsControl.kext/Contents/MacOS/AGDCDiagnose -a > AGDCDiagnose_a.txt 2>&1
Is the MacBook Pro running in clamshell mode? The AllRez output is only showing the external display.
AGDCDiagnose says the GPU is the 5300M which is built into the MacBook Pro 16-inch (2019). I see that it's outputting 3840x2160 144 Hz, 1275.83 MHz, 4:2:0 10bpc, no DSC. This requires at least HBR3 bandwidth, or 24 Gbps FRL.
The AllRez output says the GPU does support DSC which is expected for a AMD Navi GPU but none of the modes in the mode list uses DSC.
The display is supposed to support variable refresh rate (48 - 144Hz) but I guess the DisplayPort info has the VRR setting (MSA_TIMING_PAR_IGNORED) disabled so none of the modes in the mode list has VRR enabled.
According to the EDID, the display appears to be a Titan Legion 27" 4K Mini Led Display P27A6V and it can support up to 48 Gbps FRL which should be able to accept 3840x2160 144Hz 10bpc RGB or 4:4:4.
The display also has a DisplayPort 1.4 input. Can you post AllRez output for that port as well?
I think you're using 4:2:0, not 4:2:2. If you look at the list of IOFBModes, you'll see that all the modes are 4:2:0 or 4:4:4.
Looking at only the 4:4:4 modes, we see the following (plus some low res 60Hz options):
4K30 297MHz
1440p120 497.75MHz
1080p120 297MHz
All of those support 10bpc which means they can also support HDR.
Don't use EDID patcher. That probably just removes everything from the EDID including the high refresh rate modes. You need to use a different EDID editor or something that won't affect parts of the EDID that you don't want to change.
You can try my script at
https://gist.github.com/joevt/32e5efffe3459958759fb702579b9529
Custom Resolution Utility (CRU) for Windows is a good editor.
I guess you wan't to remove the 4:2:0 info from the EDID to see if that will expand the list of modes that are 4:4:4 or RGB.
Max pixel clock for HBR3 x4 without DSC is up to 1080MHz for 8bpc and 864MHz for 10bpc.
The CoreDisplay framework (used by WindowServer) reads Displays overrides files from /Library or /System for fields such as ProductName, EDID, scaled modes, etc. that SwitchResX can override. In the past I mentioned that there are other fields in the Displays overrides files that might affect DisplayPort settings for a display (for example, the disableDSC or disableFEC fields). However, the DisplayPort fields are read by dislaypolicyd instead of CoreDisplay. displaypolicyd only reads these fields from the default override file location in /System. In Catalina and later, it is not easy to modify files in /System. Therefore, I created a WhateverGreen patch (in my Lilu/WhateverGreen GitHub forks) to make coredisplayd read override files from /Library instead of /System (you have to copy the override vendor folders to the new location to make sure everything works as before). I haven't tested it yet - I think user process patches are working on my iMac 2013 but not my Mac mini 2018. Both are running Monterey 12.4.