[Bug 276637] www/chromium: add vk_swiftshader_icd.json to the chromium and ungoogled-chromium package

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 26 Jan 2024 11:25:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276637

            Bug ID: 276637
           Summary: www/chromium: add vk_swiftshader_icd.json to the
                    chromium and ungoogled-chromium package
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: chromium@FreeBSD.org
          Reporter: lhersch@dssgmbh.de
             Flags: maintainer-feedback?(chromium@FreeBSD.org)
          Assignee: chromium@FreeBSD.org

Created attachment 247979
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247979&action=edit
patch to fix the problem

In FreeBSD, the file vk_swiftshader_icd.json is not yet delivered with the
package. This is the case under Linux and Windows.

Without the file, errors will occur in some situations. For example, if
chromium is called with the --disable-gpu switch, the following errors are
reported.

[5747:-719679488:0126/122304.647398:ERROR:angle_platform_impl.cc(44)]
RendererVk.cpp:196 (VerifyExtensionsPresent): Extension not supported:
VK_KHR_surface
ERR: RendererVk.cpp:196 (VerifyExtensionsPresent): Extension not supported:
VK_KHR_surface
[5747:-719679488:0126/122304.647439:ERROR:angle_platform_impl.cc(44)]
RendererVk.cpp:196 (VerifyExtensionsPresent): Extension not supported:
VK_KHR_xcb_surface
ERR: RendererVk.cpp:196 (VerifyExtensionsPresent): Extension not supported:
VK_KHR_xcb_surface
[5747:-719679488:0126/122304.647475:ERROR:angle_platform_impl.cc(44)]
Display.cpp:1052 (initialize): ANGLE Display::initialize error 0: Internal
Vulkan error (-7): A requested extension is not supported, in
../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp,
enableInstanceExtensions:1696.
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 0: Internal
Vulkan error (-7): A requested extension is not supported, in
../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp,
enableInstanceExtensions:1696.
[5747:-719679488:0126/122304.647501:ERROR:gl_display.cc(515)] EGL Driver
message (Critical) eglInitialize: Internal Vulkan error (-7): A requested
extension is not supported, in
../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp,
enableInstanceExtensions:1696.
[5747:-719679488:0126/122304.647514:ERROR:gl_display.cc(786)] eglInitialize
SwANGLE failed with error EGL_NOT_INITIALIZED
[5747:-719679488:0126/122304.647528:ERROR:gl_display.cc(820)] Initialization of
all EGL display types failed.
[5747:-719679488:0126/122304.647538:ERROR:gl_ozone_egl.cc(26)]
GLDisplayEGL::Initialize failed.
[5747:-719679488:0126/122304.650779:ERROR:viz_main_impl.cc(196)] Exiting GPU
process due to errors during initialization

These errors disappear with the file.

-- 
You are receiving this mail because:
You are the assignee for the bug.