forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: add flag to disable WebGPU SharedImage
Flex supports devices with legacy AMD GPUs that do not support the ANDROID_native_fence_sync EGL extension, required for synchronizing WebGPU on OzoneImageBacking with other write streams. This change prevents MailboxVideoFrameConverter from committing to webgpu zero copy support, which signals to OzoneImageBackingFactory that WebGPU will not be used on the SharedImage. As a result, WebGPU will not work on the device. However, it was not working anyways and since this is a legacy device, that support will probably not be added. I do not outright disable WebGPU thru gpu/config/webgpu_blocklist.h as there isn't any code in Ozone|MailboxVideoFrameConverter which checks if WebGPU is enabled, so this wouldn't do anything to fix the graphics regression. More Flex devices will be added to this flag once testing is done. BUG=b:293613437 TEST= twofold 1. locally downloaded h264 plays with hardware acceleration by vaapi 2.gn gen out/Default --args='target_os="chromeos" use_goma=true use_vaapi=true' autoninja -C out/Default media_unittests out/Default/media_unittests --gtest_filter=Mailbox* Change-Id: I70bc71eee31660425db62ce84c432ee4688e158b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4997682 Reviewed-by: Joe Mason <joenotcharles@google.com> Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> Reviewed-by: Andres Calderon Jaramillo <andrescj@chromium.org> Auto-Submit: Andre Braga <andrebraga@google.com> Commit-Queue: Andre Braga <andrebraga@google.com> Cr-Commit-Position: refs/heads/main@{#1224549}
- Loading branch information
1 parent
b70fc50
commit 61afc85
Showing
10 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters