Skip to content

Commit

Permalink
graphics/mesa-devel: unbreak Vulkan on Wayland after 157c391
Browse files Browse the repository at this point in the history
$ vkcube-wayland
Selected GPU 0: Intel(R) HD Graphics 530 (SKL GT2), type: IntegratedGpu
Segmentation fault

(lldb) bt
* thread #1, name = 'vkcube-wayland', stop reason = signal SIGSEGV: invalid address (fault address: 0x40)
  * frame #0: 0x000000082114a4dc libwayland-client.so`wl_proxy_get_version(proxy=0x0000000000000000) at wayland-client.c:2248:16
    frame #1: 0x000000082b8543e1 libvulkan_intel.so`wp_tearing_control_manager_v1_get_tearing_control(wp_tearing_control_manager_v1=0x0000000000000000, surface=0x0000245a71e110a0) at tearing-control-v1-client-protocol.h:191:90
    frame #2: 0x000000082b852016 libvulkan_intel.so`wsi_wl_surface_create_swapchain(icd_surface=0x0000245a71e32e00, device=0x0000245a71f47400, wsi_device=0x0000245a71eb1ae0, pCreateInfo=0x0000000820617900, pAllocator=0x0000245a71f47440, swapchain_out=0x00000008206178d8) at wsi_common_wayland.c:2277:10
    frame #3: 0x000000082b842be4 libvulkan_intel.so`wsi_CreateSwapchainKHR(_device=0x0000245a71f47400, pCreateInfo=0x0000000820617900, pAllocator=0x0000000000000000, pSwapchain=0x0000000820618700) at wsi_common.c:930:22
    frame #4: 0x0000000822051bef libvulkan.so.1`terminator_CreateSwapchainKHR + 223
    frame #5: 0x000000000021136b vkcube-wayland`demo_prepare_buffers(demo=0x0000000820617c30) at cube.c:1408:11
    frame #6: 0x000000000020c679 vkcube-wayland`demo_prepare(demo=0x0000000820617c30) at cube.c:2302:5
    frame #7: 0x000000000020af7a vkcube-wayland`main(argc=1, argv=0x0000000820618a38) at cube.c:4592:5
    frame #8: 0x000000082356e5fa libc.so.7`__libc_start1(argc=1, argv=0x0000000820618a38, env=0x0000000820618a48, cleanup=<unavailable>, mainX=(vkcube-wayland`main at cube.c:4574)) at libc_start1.c:157:7
    frame #9: 0x00000000002085d0 vkcube-wayland`_start at crt1_s.S:83
(lldb) f 2
frame #2: 0x000000082b852016 libvulkan_intel.so`wsi_wl_surface_create_swapchain(icd_surface=0x0000245a71e32e00, device=0x0000245a71f47400, wsi_device=0x0000245a71eb1ae0, pCreateInfo=0x0000000820617900, pAllocator=0x0000245a71f47440, swapchain_out=0x00000008206178d8) at wsi_common_wayland.c:2277:10
   2274
   2275    if (chain->base.present_mode == VK_PRESENT_MODE_IMMEDIATE_KHR) {
   2276       chain->tearing_control =
-> 2277          wp_tearing_control_manager_v1_get_tearing_control(wsi_wl_surface->display->tearing_control_manager,
   2278                                                            wsi_wl_surface->surface);
   2279       if (!chain->tearing_control) {
   2280          result = VK_ERROR_OUT_OF_HOST_MEMORY;
(lldb) p wsi_wl_surface->display->tearing_control_manager
(wp_tearing_control_manager_v1 *) $0 = NULL
  • Loading branch information
jbeich committed Aug 26, 2023
1 parent 1aac3a8 commit f429513
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions graphics/mesa-devel/Makefile
@@ -1,13 +1,15 @@
PORTNAME= mesa
DISTVERSION= 23.2.0-branchpoint-2949
DISTVERSIONSUFFIX= -g5ce6e09ffc7
PORTREVISION= 1
CATEGORIES= graphics
PKGNAMESUFFIX= -devel

PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= 700efacda59c.patch:-p1
PATCHFILES+= 3043f16d66bf.patch:-p1 # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6881
PATCHFILES+= 2930dcbb3329.patch:-p1 # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22246
PATCHFILES+= 63003b7bf9cb.patch:-p1 # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24885

MAINTAINER= jbeich@FreeBSD.org
COMMENT= Bleeding edge Mesa drivers (OpenCL, OpenGL, Vulkan)
Expand Down
2 changes: 2 additions & 0 deletions graphics/mesa-devel/distinfo
Expand Up @@ -7,3 +7,5 @@ SHA256 (3043f16d66bf.patch) = b596e02eb42d2cdd0b47cc4de98db4981b36069d0ab857c6f1
SIZE (3043f16d66bf.patch) = 2052
SHA256 (2930dcbb3329.patch) = 4fb8c49aed648ec299ce976db7d783a5bd93953807de7f0ee3858ecf777faa25
SIZE (2930dcbb3329.patch) = 1624
SHA256 (63003b7bf9cb.patch) = 18f44a358471ffbe70a803024bb98fc6715b5b84f7882af6e108aa2e564cf951
SIZE (63003b7bf9cb.patch) = 1987

0 comments on commit f429513

Please sign in to comment.