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
[Windows] minor refactor of DXVAHD #23101
Conversation
- Avoids many calls to DX::Windowing()->UseLimitedColor() - No functional changes
static DXGI_COLOR_SPACE_TYPE GetDXGIColorSpaceSource(const DXGIColorSpaceArgs& csArgs, | ||
bool supportHDR, | ||
bool supportHLG); | ||
DXGI_COLOR_SPACE_TYPE GetDXGIColorSpaceTarget(const DXGIColorSpaceArgs& csArgs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not static anymore? I think it's good it doesn't rely on class members.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed static as seems a bit confusing due calls others methods inside. In the other hand GetDXGIColorSpaceSource
is self contained as not calls others methods. But actually the two methods could be static or not.
Saving a call and reducing coupling is a good idea. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No surprise, the behavior is the same before/after, so approved for me.
Unfortunately in my case it means that with limited range output, dxva fails all the formats I tried.
edit: reason is that the AMD processor doesn't support ANY DXGI_COLOR_SPACE_RGB_STUDIO as output.
In the forum there are multiple examples of people using AMD and limited range with HDR10 I remember it in the thread when HDR was implemented in Windows (https://forum.kodi.tv/showthread.php?tid=349861) I would have to look for the posts. In any case this is not relevant for this PR. |
I don't doubt it and it wouldn't be surprising that different AMD GPU generations, models, and maybe even different driver versions have different support (range, but other things as well) |
Description
Minor refactor of DXVAHD
Motivation and context
DX::Windowing()->UseLimitedColor()
How has this been tested?
Runtime Windows x64
What is the effect on users?
nothing
Screenshots (if appropriate):
Types of change
Checklist: