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

Vulkan does not work correctly on wayland #43097

Open
1 of 6 tasks
drishal opened this issue Jan 4, 2025 · 0 comments
Open
1 of 6 tasks

Vulkan does not work correctly on wayland #43097

drishal opened this issue Jan 4, 2025 · 0 comments

Comments

@drishal
Copy link

drishal commented Jan 4, 2025

Description

Vulkan does not work correctly
[336785:336785:0104/205859.703707:ERROR:wayland_surface_factory.cc(241)] : '--ozone-platform=wayland' is not compatible with Vulkan. Consider switching to '--ozone-platform=x11' or disabling Vulkan

but then this issue does not happen on the same version of chromium, i.e vulkan is enabled correctly with the exact same set of flags mentioned below. Vulkan is needed on amdgpu with wayland for vaapi to work correctly

Steps to reproduce

Added the following command line flags to try to enable Vulakan with wayland

    (brave.override {
      commandLineArgs = [
        "--ignore-gpu-blocklist"
        "--enable-zero-copy"
        "--ozone-platform-hint=auto"
        "--enable-features=AcceleratedVideoDecodeLinuxGL,VaapiVideoDecoder,VaapiIgnoreDriverChecks,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE"
      ];
    })

Actual result

Vulkan does not work correctly in wayland (Vulkan: Disabled in chrome://gpu)

Expected result

Vulkan should have been enabled correctly

Reproduces how often

Easily reproduced

Brave version (brave://version info)

Log Messages
============
[336785:336785:0104/205859.703707:ERROR:wayland_surface_factory.cc(241)] : '--ozone-platform=wayland' is not compatible with Vulkan. Consider switching to '--ozone-platform=x11' or disabling Vulkan
[336785:336785:0104/205859.703778:ERROR:gl_display.cc(497)] : EGL Driver message (Error) eglQueryDeviceAttribEXT: Bad attribute.
[336785:336785:0104/205859.703822:ERROR:gl_angle_util_vulkan.cc(194)] : Failed to retrieve vkGetInstanceProcAddr
[336785:336785:0104/205859.703854:ERROR:vulkan_instance.cc(100)] : Failed to get vkGetInstanceProcAddr pointer from ANGLE.
[336785:336785:0104/205859.703876:ERROR:gpu_init.cc(1233)] : Failed to create and initialize Vulkan implementation.
[336785:336785:0104/205859.707710:WARNING:sandbox_linux.cc(430)] : InitializeSandbox() called with multiple threads in process gpu-process.
[336785:336785:0104/205859.708138:WARNING:viz_main_impl.cc(85)] : VizNullHypothesis is disabled (not a warning)
[336785:336785:0104/205941.077705:ERROR:gl_display.cc(497)] : EGL Driver message (Error) eglCreateContext: Requested version is not supported
Brave	1.73.104 Chromium: 131.0.6778.204 (Official Build) (64-bit) 
Revision	215b794a7c1f3e28151d0f7712e32c71be48775c
OS	Linux
JavaScript	V8 13.1.201.19

Command Line:

/nix/store/bkwmp3ssk0yjc88i65pldasfxk5i1k6l-brave-1.73.104/opt/brave.com/brave/brave --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,WaylandWindowDecorations --enable-wayland-ime=true --disable-features=OutdatedBuildDetector,UseChromeOSDirectVideoDecoder --ozone-platform-hint=auto --ignore-gpu-blocklist --enable-zero-copy --ozone-platform-hint=auto --enable-features=AcceleratedVideoDecodeLinuxGL,VaapiVideoDecoder,VaapiIgnoreDriverChecks,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE --disable-domain-reliability --enable-dom-distiller --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --lso-url=https://no-thanks.invalid --sync-url=https://sync-v2.brave.com/v2 --variations-server-url=https://variations.brave.com/seed --variations-insecure-server-url=https://variations.brave.com/seed --flag-switches-begin --enable-features=AcceleratedVideoDecodeLinuxGL,VaapiVideoDecoder,VaapiIgnoreDriverChecks,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE,UnexpireFlagsM130 --flag-switches-end --ozone-platform=wayland --component-updater=url-source=https://go-updater.brave.com/extensions

Channel information

  • release (stable)
  • beta
  • nightly

Reproducibility

  • with Brave Shields disabled
  • with Brave Rewards disabled
  • in the latest version of Chrome

Miscellaneous information

No response

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

No branches or pull requests

2 participants