We are talking about export, not cache. Your cache options can be whatever works for you. When you finish work, you export your master. Do you see any HDR specific export options? Is Resolve limited to any specific export format when project is HDR?
Anything can carry your final data (even compressed h264) as these are just some pixels with some brightness value. Data as any other. This data starts make special sense when TV knows that this is HDR video. If it doesn't know it's HDR it still displays it, same way as
any file will cary it (it may be destroyed a bit due to be e.g. compressed or not be 10bit, but this is not the point).
If Resolve is "different" and requires a special format for HDR data on export than that's a different story (I asked you if Cineform or DNxHR or uncompressed look the same in some player- I assume it does). This is still totally irrelevant for your test with final mp4 files. Whatever your file has HDR data or not it's headers in final mp4 which trigger HDR mode not actual video data. Your source master is totally irrelevant here- it can be just 1 second of black video. If it's not HDR video then it will just look wrong in HDR mode. Simple as this.
It's not my build but someone else- it's older build but with 10bit x265, so DNxHR won't work, which is irrelevant as DNxHR plays no role here at all when it comes to triggering HDR mode in TV.
Where is the answer for: what setting/which header in final mp4 triggers HDR mode? With your chaotic testing approach it's impossible to establish. According to you it's DNxHR source file which is total nonsense
You have to understand that data inside video file is one thing and how this data is described in headers is another. They should be aligned, but can be also totally messed up, that's why all pro software allows to overwrite interpretation and manual set e.g. color space, aspect etc.
There is no standard for signalling HDR (even P3 color space) in MOV, MXF container, neither in private headers of ProRes, DNxHR etc. so these files cary no useful info for automatic decision. Only h265 can carry such a info in a standardised manner. In all other cases you simply just know that this file is HDR. For ffmepg fact that source is DNxHR or v210 or Cineform makes not much difference- it takes decoded YUV data, converts to 4:2:0 and encodes to h265. That's why it's better to use YUV based format, as you almost have no chances to destroy your original data. In case of RGB based format ffmpg has to do RGB->YUV conversion (which involves color matrix etc ) and things can go wrong as your DNxHR, Cineform etc files will be most likely tagged as Rec.709.
Instead do following simple testing approach you jump and change 5 things at the same time. Since you have seen it working it means it can be done with your TV. Other reports (different TVs) suggest less issues than you have- it rather works.
Possible variables:
- x265 version (should not really matter as long as there is no bug in a specific version and it's fairly recent one)
- UHD v HD frame size- not verified
- color primaries, transfer... setting- established as bt2020+smpte-st-2048+bt2020nc
- mp4 v. ts container- not fully verified, should rather not matter
- 8bit v. 10bit- not fully verified
- x264 v. x265- almost sure it needs to be x265
File needs to be played over USB (or streamed to TV), but yet again 1 method should be used for start and most likely USB way. Quite simple.