Closed Bug 1373229 Opened 8 years ago Closed 8 years ago

Stop using IMFYCbCrImage when ID3D10Multithread isn't supported

Categories

(Core :: Graphics: Layers, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: jya, Assigned: jya)

References

Details

Attachments

(3 files, 3 obsolete files)

Working on bug 1223270, shows that there are machines for which ID3D10Multithread isn't supported. Bug 1223270 and the new D3D11YCbCrImage made it had hard failure exposing the problem on try. Currently it appears to only impact win7 machines. IMFYCbCrImage however makes it a soft failure, and it wouldn't be causing errors. :Bas also believe that attempting to use IMFYCbCrImage on devices no supporting ID3D10Multithread could be the cause of intermittent crashes seen in the while. So let's disable its use on machine not supporting ID3D10Multithread .
See Also: → 1358277
Comment on attachment 8878682 [details] Bug 1373229: P1. Disable IMFYCbCrImage when ID3D10Multithread isn't supported. https://reviewboard.mozilla.org/r/149992/#review155056 ::: dom/media/platforms/wmf/WMFVideoMFTManager.cpp:528 (Diff revision 3) > + } > + RefPtr<ID3D10Multithread> multi; > + HRESULT hr = > + device->QueryInterface((ID3D10Multithread**)getter_AddRefs(multi)); > + > + mIMFUsable = SUCCEEDED(hr) && false; Debug code in here, this will always set mIMFUsable to false.
Attachment #8878682 - Flags: review?(bas) → review-
Comment on attachment 8878682 [details] Bug 1373229: P1. Disable IMFYCbCrImage when ID3D10Multithread isn't supported. https://reviewboard.mozilla.org/r/149992/#review155058 r+ with these issues fixed. ::: dom/media/platforms/wmf/WMFVideoMFTManager.cpp:529 (Diff revision 3) > + RefPtr<ID3D10Multithread> multi; > + HRESULT hr = > + device->QueryInterface((ID3D10Multithread**)getter_AddRefs(multi)); > + > + mIMFUsable = SUCCEEDED(hr) && false; > + if (multi) { Make this if(SUCCEEDED(hr)) or make the line above mIMFUsable = multi; But let's be consistent.
Attachment #8878682 - Flags: review- → review+
Comment on attachment 8878682 [details] Bug 1373229: P1. Disable IMFYCbCrImage when ID3D10Multithread isn't supported. https://reviewboard.mozilla.org/r/149992/#review155056 > Debug code in here, this will always set mIMFUsable to false. doh !
Attachment #8878915 - Flags: review?(jgilbert) → review+
Pushed by jyavenard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/de548d84af20 P1. Disable IMFYCbCrImage when ID3D10Multithread isn't supported. r=bas https://hg.mozilla.org/integration/autoland/rev/9e6dcb8ce801 P2. Update mochitest expectations. r=jgilbert
Comment on attachment 8880018 [details] Bug 1373229: P2. Disable DXVA HW decoder if ID3D10Multithread not supported. https://reviewboard.mozilla.org/r/151334/#review156284
Attachment #8880018 - Flags: review?(bas) → review+
Comment on attachment 8879894 [details] Bug 1373229: P3. Ensure that the retrieval operation succeeded. https://reviewboard.mozilla.org/r/151298/#review156286
Attachment #8879894 - Flags: review?(bas) → review+
Attachment #8878682 - Attachment is obsolete: true
Attachment #8880018 - Attachment is obsolete: true
Attachment #8878915 - Attachment is obsolete: true
Comment on attachment 8880101 [details] Bug 1373229: P1. Disable IMFYCbCrImage when ID3D10Multithread isn't supported. https://reviewboard.mozilla.org/r/151464/#review156394
Attachment #8880101 - Flags: review+
Comment on attachment 8880102 [details] Bug 1373229: P2. Disable DXVA HW decoder if ID3D10Multithread not supported. https://reviewboard.mozilla.org/r/151466/#review156396
Attachment #8880102 - Flags: review+
reviewboard lost me Bas commit, so I r+ed myself.
Pushed by jyavenard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1d6c6a6078c0 P1. Disable IMFYCbCrImage when ID3D10Multithread isn't supported. r=jya https://hg.mozilla.org/integration/autoland/rev/c68cd46997bf P2. Disable DXVA HW decoder if ID3D10Multithread not supported. r=jya https://hg.mozilla.org/integration/autoland/rev/dbe3662c1799 P3. Ensure that the retrieval operation succeeded. r=bas
I see a perf improvement: == Change summary for alert #7477 (as of June 22 2017 15:02 UTC) == Improvements: 3% glvideo Mean tick time across 100 ticks: windows7-32 opt e10s 13.34 -> 12.94 For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=7477 thanks!
How does that test work? What does it test? of all things, this change shouldn't make things any faster, quite the opposite....
Comment on attachment 8880101 [details] Bug 1373229: P1. Disable IMFYCbCrImage when ID3D10Multithread isn't supported. https://reviewboard.mozilla.org/r/151464/#review157548
Attachment #8880101 - Flags: review?(bas) → review+
Comment on attachment 8880102 [details] Bug 1373229: P2. Disable DXVA HW decoder if ID3D10Multithread not supported. https://reviewboard.mozilla.org/r/151466/#review157550
Attachment #8880102 - Flags: review?(bas) → review+
Depends on: 1479664
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: