Skip to content
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

Ozone prototype: #4311

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Ozone prototype: #4311

wants to merge 1 commit into from

Conversation

y4vor
Copy link
Contributor

@y4vor y4vor commented Oct 24, 2024

export USE_RBE=1
cobalt/build/gn.py -p linux-cobalt-x64x11 -C devel --no-check --override-args autoninja -C out/linux-cobalt-x64x11_devel/ content_shell content_shell --single-process --ozone-platform=starboard https://www.youtube.com/tv

@y4vor y4vor requested a review from a team as a code owner October 24, 2024 23:23
@y4vor y4vor requested a review from dahlstrom-g October 24, 2024 23:23
@y4vor y4vor marked this pull request as draft October 24, 2024 23:33
@y4vor y4vor removed the request for review from dahlstrom-g October 24, 2024 23:34
@y4vor y4vor force-pushed the ozone_prototyp_m114 branch 4 times, most recently from d3d0415 to 2e92f91 Compare October 31, 2024 00:43
export USE_RBE=1
cobalt/build/gn.py -p linux-cobalt-x64x11 -C devel --no-check --override-args
autoninja -C out/linux-cobalt-x64x11_devel/ content_shell
content_shell --single-process --ozone-platform=starboard https://www.youtube.com/tv
@y4vor y4vor force-pushed the ozone_prototyp_m114 branch from 2e92f91 to 8379942 Compare October 31, 2024 00:45
Comment on lines +480 to +486
#if 0
bool res = gpu_memory_buffer_support_->GetNativeGpuMemoryBufferType() !=
gfx::EMPTY_BUFFER &&
IsNativeGpuMemoryBufferConfiguration(format, usage);

return res;
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably needed/happening because we are taking
the IS_LINUX path in [1] - we should add an IS_STARBOARD
entry there (//gpu is a low level folder, like //base
or //media, so can know about "starboard").

[1] https://source.chromium.org/chromium/chromium/src/+/main:gpu/ipc/common/gpu_memory_buffer_support.cc;l=52-64?q=GetNativeGpuMemoryBufferType&ss=chromium

Comment on lines +558 to +561
// hack
fallback_modes_.clear();
fallback_modes_.push_back(gpu::GpuMode::HARDWARE_GL);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be needed because of l.553 -- we should be taking
the #else in l.551 (to be confirmed), and we end up using
vulkan for some reason. There is a build flag to enable/disable
vulkan [1] and this is probably enabled because it thinks we
are on Linux [2] (and we should force disable it for is_starboard).

[1] https://source.corp.google.com/h/lbshell-internal/cobalt_src/+/main:content/browser/gpu/gpu_data_manager_impl_private.cc;l=402-416?q=vulkanallowed&ss=h%2Flbshell-internal%2Fcobalt_src%2F%2B%2Frefs%2Fheads%2Fmain&start=1
[2] https://source.corp.google.com/h/lbshell-internal/cobalt_src/+/main:gpu/vulkan/features.gni;l=11?q=vulkan%20file:%5C.gni&ss=h%2Flbshell-internal%2Fcobalt_src%2F%2B%2Frefs%2Fheads%2Fmain

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe #4361 will help removing this delta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants