Differential D134352
Bug 1713276 - part4 : adjust fuzzy range for some reftests. ClosedPublic Authored by alwu on Dec 21 2021, 12:59 AM. Referenced Files
Details
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes alwu requested review of this revision.Dec 29 2021, 8:51 PM reviewbot added a comment.Dec 29 2021, 9:29 PM Comment ActionsCode analysis found 256 defects in the diff 523526:
You can run this analysis locally with:
If you see a problem in this automated review, please report it here. You can view these defects on the code-review frontend and on Treeherder. Comment Actions What causes colors to change? Is this patch series more than just a pure optimization? Also, the difference on looks very noticeable to the human eye; the big gray rectangle in the bottom left disappears. alwu marked an inline comment as done.EditedJan 3 2022, 11:45 PM Comment Actions
I pushed a try run again today, and the big difference you mentioned would only happen on Windows. The weird thing is that, in all those failure cases, the reference file would show video not being showed in full-range color (like this, search for ), but the reference file is always format. These series of patches only affect h264, vp8 and vp9, it won't affect AV1. AV1 video would be decoded by another decoder (dav1decoder), not ffmpeg decoder, so in theroy the failure reference case is not possible caused by the change here. I'm going to test my patches on my Windows 10 machine to see if I can reproduce that issue locally. alwu added a comment.Jan 4 2022, 8:10 AM Comment Actions@mstange In this try-push, I disabled the feature of using shmem on ffmpeg, and you can see passed on Windows . Then take a deeper look into the result, you would find that the AV1 video that we want to compare with was actually different from the png file.
And the following two tests (h264 and vp9) were having the same result with av1, which means they were also wrong.
Therefore, I suspect that these series comparison () are already wrong for a while, and my patches actually fix the result for vp9 and h264. That is why h264 and vp9 shows the correct result (search and ), but av1 didn't. To further prove my assumption, in this try run, I changed the comparision to make h264 and vp9 comparing with png file, not av1 directly. Then you can see that and are both matching the png file, some fuzzy noise though. In addition, currently we compare AV1 with PNG first, then compare other codecs with AV1. I think it would be better to compare AV1 with PNG first to ensure that AV1 result is correct, then compare all other codec with PNG, not AV1 directly. That can help to avoid this kind of error happening again. mstange added a comment.Jan 4 2022, 11:47 PM Comment ActionsThanks for the analysis!
I see. Were the patches expected to fix any bugs? That's the part that confuses me. I think what you're suggesting sounds good - comparing more things to known-good PNG files. Maybe you can make that change first, "before" this patch series? alwu added a comment.Jan 5 2022, 2:07 AM Comment Actions
No, so that is also a weird thing to me. The only possibility I could think of is that, because of the issue I discovered here (the second one), maybe doing decoding to shmem directly would somehow change timing or something to make vp9 and h264 capture the correct image.
I've NIed you on the bug I filed for improving the reftest first, but if the issue I mentioned in that bug is the cause of the issue we discussed here, then I think this issue should not be a blocker of this bug. In addition, as this feature is controlled by a pref, we can turn off it anytime (currently only turn it on on Nightly) if we discover any serious regression. Comment Actions To review changes to the reftest markings, I really need to see the treeherder test failures without the test marking changes. Unfortunately it's a pretty hands-on process, I can't really do it from phabricator, sorry! alwu added a comment.EditedJan 5 2022, 11:15 PM Comment Actions
@jgilbert this is the try-run I pushed two days ago, which only include part1~part3. Thank you. In addition, above try-run was based on the newer m-c, but at the time I made this patch, I was based on some older m-c. I will check the fuzzy value again, and revise the value and update this patch again. • jgilbert requested changes to this revision.Jan 6 2022, 1:12 AM Comment ActionsYeah, it looks like the windows R-swr test are seeing /720p.png.bt709.bt709.pc.yuv420p10.vp9.webm/mp4 working correctly and av1 being scaled incorrectly on full-range (that's the "pc", instead of "tv")
This revision now requires changes to proceed.Jan 6 2022, 1:12 AM alwu added a comment.Jan 6 2022, 1:52 AM Comment ActionsI will update this patch again to update new fuzzy range, some of them are too large (based on some old codebase) and now I didn't see such a large difference on the try server (based on the latest m-c).
• jgilbert added a comment.Jan 6 2022, 2:14 AM Comment ActionsThanks for taking an extra look at these!
alwu requested review of this revision.Jan 6 2022, 10:53 PM alwu updated this revision to Diff 525554. alwu retitled this revision from Bug 1713276 - part4 : modify fuzzy range for some reftests. to Bug 1713276 - part4 : adjust fuzzy range for some reftests.. alwu marked 6 inline comments as done.Jan 6 2022, 10:55 PM Comment Actions
alwu marked 2 inline comments as done.Jan 6 2022, 10:55 PM reviewbot added a comment.Jan 6 2022, 11:33 PM Comment ActionsCode analysis found 242 defects in the diff 525554:
You can run this analysis locally with:
For your convenience, here is a patch that fixes all the clang-format defects (use it in your repository with or ). If you see a problem in this automated review, please report it here. You can view these defects on the code-review frontend and on Treeherder. reviewbot added a comment.Jan 12 2022, 8:24 AM Comment ActionsCode analysis found 242 defects in the diff 526976:
You can run this analysis locally with:
If you see a problem in this automated review, please report it here. You can view these defects on the code-review frontend and on Treeherder. • jgilbert accepted this revision.Jan 19 2022, 5:48 AM This revision is now accepted and ready to land.Jan 19 2022, 5:57 PM Comment Actions This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of , , , , . Tip: this Firefox add-on makes it easy! reviewbot added a comment.Jan 19 2022, 8:21 PM Comment ActionsCode analysis found 270 defects in the diff 529748:
You can run this analysis locally with:
If you see a problem in this automated review, please report it here. You can view these defects on the code-review frontend and on Treeherder. reviewbot added a comment.Jan 19 2022, 8:23 PM Comment ActionsCode analysis found 272 defects in the diff 529755:
You can run this analysis locally with:
If you see a problem in this automated review, please report it here. You can view these defects on the code-review frontend and on Treeherder. Closed by commit rMOZILLACENTRAL12a9f3fad481: Bug 1713276 - part4 : adjust fuzzy range for some reftests. r=gfx-reviewers… (authored by alwu). · Explain WhyJan 20 2022, 5:07 AM This revision was automatically updated to reflect the committed changes. • NarcisB reopened this revision.Jan 20 2022, 5:34 AM This revision is now accepted and ready to land.Jan 20 2022, 5:34 AM Closed by commit rMOZILLACENTRALcee073e045a3: Bug 1713276 - part4 : adjust fuzzy range for some reftests. r=gfx-reviewers… (authored by alwu). · Explain WhyJan 20 2022, 5:56 AM This revision was automatically updated to reflect the committed changes. reviewbot added a comment.Jan 20 2022, 6:30 AM Comment ActionsCode analysis found 275 defects in the diff 530043:
You can run this analysis locally with:
If you see a problem in this automated review, please report it here. You can view these defects on the code-review frontend and on Treeherder. nfay reopened this revision.Jan 20 2022, 9:49 AM This revision is now accepted and ready to land.Jan 20 2022, 9:49 AM reviewbot added a comment.Jan 20 2022, 10:55 PM Comment ActionsCode analysis found 270 defects in the diff 530420:
You can run this analysis locally with:
If you see a problem in this automated review, please report it here. You can view these defects on the code-review frontend and on Treeherder. Closed by commit rMOZILLACENTRALf4ca14151598: Bug 1713276 - part4 : adjust fuzzy range for some reftests. r=gfx-reviewers… (authored by alwu). · Explain WhyJan 20 2022, 11:58 PM This revision was automatically updated to reflect the committed changes. ctuns reopened this revision.Jan 21 2022, 9:30 AM This revision is now accepted and ready to land.Jan 21 2022, 9:30 AM Closed by commit rMOZILLACENTRAL21a1cb173d50: Bug 1713276 - part4 : adjust fuzzy range for some reftests. r=gfx-reviewers… (authored by alwu). · Explain WhyJan 22 2022, 5:30 PM This revision was automatically updated to reflect the committed changes. abutkovits reopened this revision.Jan 22 2022, 9:18 PM This revision is now accepted and ready to land.Jan 22 2022, 9:18 PM alwu added a comment.Jan 24 2022, 11:57 PM Comment Actionsreviewbot added a comment.Jan 25 2022, 12:22 AM Comment ActionsCode analysis found 217 defects in the diff 531591:
You can run this analysis locally with:
If you see a problem in this automated review, please report it here. You can view these defects on the code-review frontend and on Treeherder. reviewbot added a comment.Jan 25 2022, 12:56 AM Comment ActionsCode analysis found 268 defects in the diff 531598:
You can run this analysis locally with:
If you see a problem in this automated review, please report it here. You can view these defects on the code-review frontend and on Treeherder. alwu removed a child revision: D136810: Bug 1713276 - part5 : don't use shmem textures for 10bits videos on Windows..Jan 25 2022, 2:44 AM Closed by commit rMOZILLACENTRAL38eb80e3c143: Bug 1713276 - part4 : adjust fuzzy range for some reftests. r=gfx-reviewers… (authored by alwu). · Explain WhyJan 25 2022, 2:51 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 531642 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
