-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vo_gpu_next/d3d11: --target-colorspace-hint
always assumes HDR passthrough
#15268
Comments
Disable HDR in Windows settings if you don't want to use it or set |
The display isn't HDR. I don't have an option to enable/disable HDR in the first place. |
Ok, nowadays Windows compositor does the tone-mapping. |
It's not very high quality or stable. Having this be the default instead of shader-based tonemapping does not seem to be desirable behavior if you have an SDR display. But if this is the new normal, then so be it. I'm not here to argue. |
Not arguing, just stating the fact. The same thing will happen on linux. mpv doesn't detect the actual display parameters, before decision about hdr passthrough is made. We could add this and add an /cc @Dudemanguy |
Oh I thought |
Swapchain can be selected, HDR is supported by compositor. So we can send HDR content. Thing is that the quality of mpv tone-mapping is higher. |
That is correct, but windows seems to always expose HDR swapchain (on d3d11) even if the monitor is SDR is the issue here |
If this is only a problem on windows, I would say probably d3d11 should be fixed assuming that's not unreasonable. It was my expectation that |
Based on the mesa wsi MR, HDR swapchains will only be exposed if the compositor is actually advertising HDR support. So it's upto compositors not advertise color spaces that the monitor doesn't support by e.g. reading the edid |
I think, conceptually, there is nothing stopping a compositor from advertising HDR support if it wants to perform tone mapping without display support.
Yes, but as mentioned above, I think it’s possible for compositors to implement some level of HDR support, even if the display itself isn’t HDR-capable. There is certainly value in having support like that. mpv is superior because it has a complete HDR pipeline, but many applications may simply want to display HDR content and let the compositor handle the rest. Either way, it should be fairly easy to add |
This is purely speculative as I don't know the state of HDR passthrough on Windows+AMD+Vulkan, but the 10-bit surface on Vulkan only supports |
At least on the wayland side, it would be my expectation that a compositor would only advertise HDR surfaces if the display actually supports it. But I guess in theory there is nothing stopping a compositor from implementing their own tonemapping. That's probably years away realistically. But anyways, an |
An auto option would be very welcome. |
See #15279 |
It simply does not make any sense to not signal the correct colorspace and metadata by default.
mpv Information
Other Information
Reproduction Steps
Open an HDR video using gpu-next and the d3d11 backend.
Expected Behavior
HDR -> SDR tonemapping
Actual Behavior
Colorspace targets are set to BT.2020/PQ.
Vulkan still targets SDR as expected.
Log File
mpv.log
Sample Files
Reproducible on all HDR files
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.The text was updated successfully, but these errors were encountered: