-
Notifications
You must be signed in to change notification settings - Fork 419
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
layers: Improve profile error messages #9203
layers: Improve profile error messages #9203
Conversation
CI Vulkan-ValidationLayers build queued with queue ID 342446. |
CI Vulkan-ValidationLayers build # 18611 running. |
CI Vulkan-ValidationLayers build # 18611 passed. |
Sure, one could print out the basic video profile parameters, but that also doesn't narrow it down. First of all, the application already knows what it attempted, that is, what is the current video profile and whether it passed in The issue is that there's really not a whole lot of information what could be printed out in these cases, unless one goes really "crazy". Video profile image format compatibility is a complex problem. What we're really asking is whether there is one entry, as reported by TLDR; I don't think this change adds much value, one really has to look into how the image parameters compare to the video format list of the video profile in question. |
Also, the profile info you're outputting is misleading because it doesn't actually contain a lot of info that participate in the video profile matching, particularly the codec-specific parameters of the video profile, so this change will just be even more misleading. |
So if we want to be really descriptive, we'd have to output the following: If
If
That's potentially pages of information. |
Thanks @aqnuep for the information - closing (its tied to the issue which you added more information on) |
This an attempt at #8625
@aqnuep I agree with Mike that just saying
IsImageCompatibleWithVideoSession
failed doesn't help the user narrow things down. I was going to try and add some more helper to print things out (without wasting cycles when things are valid) but realize I don't know enough about Video to know what information would be helpful, so making this PR in hope you can come up with something similar to solve the issueA new error message now looks like
(Note, we had this same issue with showing why two pipeline layers were not compatible, see
DescribePipelineLayoutSetNonCompatible
)