RESOLVED FIXED 216174
Fix Internals::supportsVCPEncoder on BigSur
https://bugs.webkit.org/show_bug.cgi?id=216174
Summary Fix Internals::supportsVCPEncoder on BigSur
youenn fablet
Reported 2020-09-04 07:49:58 PDT
Fix Internals::supportsVCPEncoder on BigSur
Attachments
Patch (3.94 KB, patch)
2020-09-04 07:53 PDT, youenn fablet
no flags
Patch for landing (4.15 KB, patch)
2020-09-07 05:27 PDT, youenn fablet
no flags
Patch for landing (4.14 KB, patch)
2020-09-07 08:37 PDT, youenn fablet
no flags
Patch (1.45 KB, patch)
2020-09-08 07:20 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2020-09-04 07:51:53 PDT
youenn fablet
Comment 2 2020-09-04 07:53:53 PDT
EWS
Comment 3 2020-09-04 09:39:52 PDT
Committed r266614: <https://trac.webkit.org/changeset/266614> All reviewed patches have been landed. Closing bug and clearing flags on attachment 407970 [details].
Myles C. Maxfield
Comment 4 2020-09-04 23:50:56 PDT
Did this patch cause this? CompileC Internals-227951BA24B9AE61.o /Users/mmaxfield/src/WebKit/OpenSource/Source/WebCore/testing/Internals.cpp:5684:34: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses] return ENABLE_VCP_ENCODER || ENABLE_VCP_VTB_ENCODER || HAVE_VTB_REQUIREDLOWLATENCY; ^~~~~~~~~~~~~~~~~~~~~~ ~~ In file included from /Users/mmaxfield/src/WebKit/OpenSource/Source/WebCore/testing/Internals.cpp:336: /Users/mmaxfield/Build/Products/Debug/usr/local/include/webrtc/sdk/WebKit/VideoProcessingSoftLink.h:45:74: note: expanded from macro 'ENABLE_VCP_VTB_ENCODER' #define ENABLE_VCP_VTB_ENCODER __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500 && __MAC_OS_X_VERSION_MIN_REQUIRED < 110000 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/mmaxfield/src/WebKit/OpenSource/Source/WebCore/testing/Internals.cpp:5684:34: note: place parentheses around the '&&' expression to silence this warning return ENABLE_VCP_ENCODER || ENABLE_VCP_VTB_ENCODER || HAVE_VTB_REQUIREDLOWLATENCY; ^~~~~~~~~~~~~~~~~~~~~~ In file included from /Users/mmaxfield/src/WebKit/OpenSource/Source/WebCore/testing/Internals.cpp:336: /Users/mmaxfield/Build/Products/Debug/usr/local/include/webrtc/sdk/WebKit/VideoProcessingSoftLink.h:45:74: note: expanded from macro 'ENABLE_VCP_VTB_ENCODER' #define ENABLE_VCP_VTB_ENCODER __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500 && __MAC_OS_X_VERSION_MIN_REQUIRED < 110000 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.
Myles C. Maxfield
Comment 5 2020-09-05 00:05:06 PDT
I reverted this patch and now the build is successful.
Myles C. Maxfield
Comment 6 2020-09-05 00:11:42 PDT
Comment on attachment 407970 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=407970&action=review > Source/WebCore/testing/Internals.cpp:5684 > + return ENABLE_VCP_ENCODER || ENABLE_VCP_VTB_ENCODER || HAVE_VTB_REQUIREDLOWLATENCY; Shouldn't this be ENABLE(VCP_ENCODER) || ENABLE(VCP_VTB_ENCODER) || HAVE(VTB_REQUIREDLOWLATENCY)?
Myles C. Maxfield
Comment 7 2020-09-05 00:17:06 PDT
I can commit a short-term fix that modifies Internals.cpp to put parentheses around ENABLE_VCP_VTB_ENCODER, but it seems like the parentheses really should be in Source/ThirdParty/libwebrtc/Source/webrtc/sdk/WebKit/VideoProcessingSoftLink.h. However, I don't know what the process is for updating this third-party library, so it would be good if someone could look into this for the long term.
youenn fablet
Comment 8 2020-09-05 00:19:49 PDT
Please revert the change, I’ll reland a fully valid version.
Myles C. Maxfield
Comment 9 2020-09-05 00:20:09 PDT
Myles C. Maxfield
Comment 10 2020-09-05 00:21:18 PDT
Oh, whoops, sorry, I didn't see your message!
Myles C. Maxfield
Comment 11 2020-09-05 00:24:45 PDT
(In reply to Myles C. Maxfield from comment #6) > Comment on attachment 407970 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=407970&action=review > > > Source/WebCore/testing/Internals.cpp:5684 > > + return ENABLE_VCP_ENCODER || ENABLE_VCP_VTB_ENCODER || HAVE_VTB_REQUIREDLOWLATENCY; > > Shouldn't this be ENABLE(VCP_ENCODER) || ENABLE(VCP_VTB_ENCODER) || > HAVE(VTB_REQUIREDLOWLATENCY)? #define ENABLE(WTF_FEATURE) (defined ENABLE_##WTF_FEATURE && ENABLE_##WTF_FEATURE) I think switching to ENABLE(VCP_VTB_ENCODER) would actually have fixed this.
Ryosuke Niwa
Comment 12 2020-09-05 03:05:57 PDT
(In reply to Myles C. Maxfield from comment #9) > Committed r266657: <https://trac.webkit.org/changeset/266657> This patch broke mac builds: https://trac.webkit.org/changeset/266657/webkit /Volumes/Data/slave/mojave-release/build/Source/WebCore/testing/Internals.cpp:5684:31: error: use of logical '||' with constant operand [-Werror,-Wconstant-logical-operand] return ENABLE_VCP_ENCODER || (ENABLE_VCP_VTB_ENCODER) || HAVE_VTB_REQUIREDLOWLATENCY; ^ ~~~~~~~~~~~~~~~~~~~~~~~~ /Volumes/Data/slave/mojave-release/build/Source/WebCore/testing/Internals.cpp:5684:31: note: use '|' for a bitwise operation return ENABLE_VCP_ENCODER || (ENABLE_VCP_VTB_ENCODER) || HAVE_VTB_REQUIREDLOWLATENCY; ^~ |
WebKit Commit Bot
Comment 13 2020-09-05 03:08:20 PDT
Re-opened since this is blocked by bug 216212
Ryosuke Niwa
Comment 14 2020-09-05 03:18:51 PDT
I reverted both the original patch & Myle's build fix attempt in https://trac.webkit.org/r266658 since it's 3am here and I can't think straight to land a proper build fix as I had only 4 hours of sleep last night.
youenn fablet
Comment 15 2020-09-07 05:27:41 PDT
Created attachment 408176 [details] Patch for landing
EWS
Comment 16 2020-09-07 08:16:25 PDT
ChangeLog entry in LayoutTests/ChangeLog contains OOPS!.
youenn fablet
Comment 17 2020-09-07 08:37:07 PDT
Created attachment 408183 [details] Patch for landing
EWS
Comment 18 2020-09-07 09:12:01 PDT
Committed r266701: <https://trac.webkit.org/changeset/266701> All reviewed patches have been landed. Closing bug and clearing flags on attachment 408183 [details].
youenn fablet
Comment 19 2020-09-08 07:20:52 PDT
Reopening to attach new patch.
youenn fablet
Comment 20 2020-09-08 07:20:54 PDT
Geoffrey Garen
Comment 21 2020-09-08 09:57:22 PDT
Comment on attachment 408226 [details] Patch r=me
Geoffrey Garen
Comment 22 2020-09-08 09:57:50 PDT
If this doesn't do the trick, let's use some window.internals API to wait for the pixels.
Geoffrey Garen
Comment 23 2020-09-08 09:59:02 PDT
Another thing to consider is to mark this test to run individually instead of in parallel with other tests, since that can reduce system load when running this test.
EWS
Comment 24 2020-09-08 12:12:01 PDT
Committed r266738: <https://trac.webkit.org/changeset/266738> All reviewed patches have been landed. Closing bug and clearing flags on attachment 408226 [details].
Note You need to log in before you can comment on or make changes to this bug.