Linuxulator vs Intel/AMD GPUs

Apparently we have no idea what does and what doesn't work. Here's the script I made for testing 3d acceleration: https://gist.github.com/shkhln/99ed7076d981a8eee39801bb6634caed. The script downloads roughly 60 MiB of packages from the latest Ubuntu LTS consisting of Mesa, glxgears, vkcube and their dependencies. It's completely self-contained and doesn't rely on any linux-c7-* ports or specific fstab setup or whatever. (You'll need Ruby, FreeBSD and 630 MiB of free RAM for tmpfs, though.)

The script is intended to be used like this:
Code:
% sudo kldload linux64 linprocfs linsysfs
% sudo kldload nullfs
% sudo sysctl security.bsd.unprivileged_chroot=1
% sudo sysctl vfs.usermount=1
% fetch https://gist.githubusercontent.com/shkhln/99ed7076d981a8eee39801bb6634caed/raw/6890f7a579461fff40418b5b7a4dbc302388da15/linux-chroot
% chmod +x linux-chroot
% ./linux-chroot /usr/bin/glxgears -info | grep RENDER
% ./linux-chroot /usr/bin/vkcube

Please, run this and report your hardware, drm-kmod/OS versions and whether Mesa happens use llvmpipe or accelerated graphics. Note that this test could easily crash the entire operating system, so don't run it in the middle of something important.
 
Last edited:
glxgears -info

Code:
libGL error: failed to authenticate magic 1
libGL error: failed to load driver: iris
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Error: glXCreateContext failed

vkcube works fine and prints

Code:
Selected GPU 0: llvmpipe (LLVM 15.0.7, 256 bits), type: 4
 
Using a Radeon 5700XT I get:


Code:
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to open amdgpu: /usr/lib/dri/amdgpu_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: amdgpu
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
GL_RENDERER   = AMD Radeon RX 5700 XT (navi10, LLVM 15.0.7, DRM 3.42, 5.15.0)

I believe the amdgpu_dri.so is part of the proprietary amdgpu driver. At least that's what I remembered last I looked.

The vkcube prints:

Code:
Selected GPU 0: llvmpipe (LLVM 15.0.7, 256 bits), type: 4

Hope this helps.
 
Code:
GL_RENDERER   = AMD Radeon RX 5700 XT (navi10, LLVM 15.0.7, DRM 3.42, 5.15.0)
That actually indicates working hardware acceleration. What is the drm-kmod version?

I believe the amdgpu_dri.so is part of the proprietary amdgpu driver. At least that's what I remembered last I looked.
That's true, I'm not sure why it's in the probing order when it's not present. (radeonsi_dri.so is the Mesa's OpenGL implementation for all AMD cards, so that's the thing we are interested in.)
 
That actually indicates working hardware acceleration. What is the drm-kmod version?
It the 5.15 kmod, but I have other problems with 5.15 at the moment (it will reboot the whole system without a core dump when playing a video and window management will get very slow. I'm currently trying with 5.10 to see if it just something in 14.0 or the 5.15 module.

I'll see if I can run the test again with 5.10 when I get a moment.

That's true, I'm not sure why it's in the probing order when it's not present. (radeonsi_dri.so is the Mesa's OpenGL implementation for all AMD cards, so that's the thing we are interested in.)

Ah, OK, maybe there is some hook somewhere to try that first? As long as it can use radeonsi_dri.so, it must be OK.
 
OK. Tried it with the 5.10 kmod and got the same output for both (so, that result is still the same).

I tried it also on my old Thinkpad T560 running 14.0 with kmod 5.15 and Optimus graphics:

Code:
GL_RENDERER   = Mesa Intel(R) HD Graphics 520 (SKL GT2)

vkcube seemed to go with llvmpipe again:

Code:
Selected GPU 0: llvmpipe (LLVM 15.0.7, 256 bits), type: 4

I tried changing the environment variables to get this to run with the NVIDIA card on the system, but it seemed perhaps that environment variable is stripped in chroot? Anyway, I did not investigate further on that, since it seems you were most concerned about Intel and AMD here.

Hope this is useful.
 
I tried changing the environment variables to get this to run with the NVIDIA card on the system, but it seemed perhaps that environment variable is stripped in chroot? Anyway, I did not investigate further on that, since it seems you were most concerned about Intel and AMD here.
Nothing is stripped. In fact, I tested this mostly with Nvidia (it's the baseline, so to speak).
 
Nothing is stripped. In fact, I tested this mostly with Nvidia (it's the baseline, so to speak).
I see.

Well, at least with the current version of the script, it took the Intel graphics and didn't go to the Nvidia offload. It could easily be a configuration issue on my side. I admit, I just was curious and didn't investigate more since the subject here was AMD and Intel GPUs.
 
AMD RX 6700 XT
FreeBSD 14.0-STABLE stable/14-n267114
Tested with drm-61-kmod

Code:
mount -o nocover -t tmpfs tmpfs /home/Alexander88207/Downloads/umnt
mount: tmpfs: Device busy
Assuming /home/Alexander88207/Downloads/umnt is already set up.
name of display: :0.0
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
(Stucks here)

Code:
./linux-chroot /usr/bin/glxgears -info | grep RENDER
mount -o nocover -t tmpfs tmpfs /home/Alexander88207/Downloads/umnt
mount: tmpfs: Device busy
Assuming /home/Alexander88207/Downloads/umnt is already set up.
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
GL_RENDERER   = AMD Radeon RX 6700 XT (navi22, LLVM 15.0.7, DRM 3.49, 5.15.0)

Code:
./linux-chroot /usr/bin/vulkaninfo
==========
VULKANINFO
==========


Vulkan Instance Version: 1.3.204




Instance Extensions: count = 20
===============================
    VK_EXT_acquire_drm_display             : extension revision 1
    VK_EXT_acquire_xlib_display            : extension revision 1
    VK_EXT_debug_report                    : extension revision 10
    VK_EXT_debug_utils                     : extension revision 2
    VK_EXT_direct_mode_display             : extension revision 1
    VK_EXT_display_surface_counter         : extension revision 1
    VK_EXT_swapchain_colorspace            : extension revision 4
    VK_KHR_device_group_creation           : extension revision 1
    VK_KHR_display                         : extension revision 23
    VK_KHR_external_fence_capabilities     : extension revision 1
    VK_KHR_external_memory_capabilities    : extension revision 1
    VK_KHR_external_semaphore_capabilities : extension revision 1
    VK_KHR_get_display_properties2         : extension revision 1
    VK_KHR_get_physical_device_properties2 : extension revision 2
    VK_KHR_get_surface_capabilities2       : extension revision 1
    VK_KHR_surface                         : extension revision 25
    VK_KHR_surface_protected_capabilities  : extension revision 1
    VK_KHR_wayland_surface                 : extension revision 6
    VK_KHR_xcb_surface                     : extension revision 6
    VK_KHR_xlib_surface                    : extension revision 6


Layers: count = 3
=================
VK_LAYER_INTEL_nullhw (INTEL NULL HW) Vulkan version 1.1.73, layer version 1:
    Layer Extensions: count = 0
    Devices: count = 2
        GPU id = 0 (AMD Radeon RX 6700 XT (RADV NAVI22))
        Layer-Device Extensions: count = 0


        GPU id = 1 (llvmpipe (LLVM 15.0.7, 256 bits))
        Layer-Device Extensions: count = 0


VK_LAYER_MESA_device_select (Linux device selection layer) Vulkan version 1.3.211, layer version 1:
    Layer Extensions: count = 0
    Devices: count = 2
        GPU id = 0 (AMD Radeon RX 6700 XT (RADV NAVI22))
        Layer-Device Extensions: count = 0


        GPU id = 1 (llvmpipe (LLVM 15.0.7, 256 bits))
        Layer-Device Extensions: count = 0


VK_LAYER_MESA_overlay (Mesa Overlay layer) Vulkan version 1.3.211, layer version 1:
    Layer Extensions: count = 0
    Devices: count = 2
        GPU id = 0 (AMD Radeon RX 6700 XT (RADV NAVI22))
        Layer-Device Extensions: count = 0


        GPU id = 1 (llvmpipe (LLVM 15.0.7, 256 bits))
        Layer-Device Extensions: count = 0


Presentable Surfaces:
=====================
GPU id : 0 (AMD Radeon RX 6700 XT (RADV NAVI22)):
    Surface types: count = 2
        VK_KHR_xcb_surface
        VK_KHR_xlib_surface
    Formats: count = 2
        SurfaceFormat[0]:
            format = FORMAT_B8G8R8A8_SRGB
            colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
        SurfaceFormat[1]:
            format = FORMAT_B8G8R8A8_UNORM
            colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
    Present Modes: count = 4
        PRESENT_MODE_IMMEDIATE_KHR
        PRESENT_MODE_MAILBOX_KHR
        PRESENT_MODE_FIFO_KHR
        PRESENT_MODE_FIFO_RELAXED_KHR
    VkSurfaceCapabilitiesKHR:
    -------------------------
        minImageCount = 3
        maxImageCount = 0
        currentExtent:
            width  = 256
            height = 256
        minImageExtent:
            width  = 256
            height = 256
        maxImageExtent:
            width  = 256
            height = 256
        maxImageArrayLayers = 1
        supportedTransforms: count = 1
            SURFACE_TRANSFORM_IDENTITY_BIT_KHR
        currentTransform = SURFACE_TRANSFORM_IDENTITY_BIT_KHR
        supportedCompositeAlpha: count = 2
            COMPOSITE_ALPHA_OPAQUE_BIT_KHR
            COMPOSITE_ALPHA_INHERIT_BIT_KHR
        supportedUsageFlags: count = 6
            IMAGE_USAGE_TRANSFER_SRC_BIT
            IMAGE_USAGE_TRANSFER_DST_BIT
            IMAGE_USAGE_SAMPLED_BIT
            IMAGE_USAGE_STORAGE_BIT
            IMAGE_USAGE_COLOR_ATTACHMENT_BIT
            IMAGE_USAGE_INPUT_ATTACHMENT_BIT
    VkSurfaceCapabilities2EXT:
    --------------------------
        supportedSurfaceCounters:
            None
    VkSurfaceProtectedCapabilitiesKHR:
    ----------------------------------
        supportsProtected = false




GPU id : 1 (llvmpipe (LLVM 15.0.7, 256 bits)):
    Surface types: count = 2
        VK_KHR_xcb_surface
        VK_KHR_xlib_surface
    Formats: count = 2
        SurfaceFormat[0]:
            format = FORMAT_B8G8R8A8_SRGB
            colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
        SurfaceFormat[1]:
            format = FORMAT_B8G8R8A8_UNORM
            colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
    Present Modes: count = 4
        PRESENT_MODE_IMMEDIATE_KHR
        PRESENT_MODE_MAILBOX_KHR
        PRESENT_MODE_FIFO_KHR
        PRESENT_MODE_FIFO_RELAXED_KHR
    VkSurfaceCapabilitiesKHR:
    -------------------------
        minImageCount = 3
        maxImageCount = 0
        currentExtent:
            width  = 256
            height = 256
        minImageExtent:
            width  = 256
            height = 256
        maxImageExtent:
            width  = 256
            height = 256
        maxImageArrayLayers = 1
        supportedTransforms: count = 1
            SURFACE_TRANSFORM_IDENTITY_BIT_KHR
        currentTransform = SURFACE_TRANSFORM_IDENTITY_BIT_KHR
        supportedCompositeAlpha: count = 2
            COMPOSITE_ALPHA_OPAQUE_BIT_KHR
            COMPOSITE_ALPHA_INHERIT_BIT_KHR
        supportedUsageFlags: count = 6
            IMAGE_USAGE_TRANSFER_SRC_BIT
            IMAGE_USAGE_TRANSFER_DST_BIT
            IMAGE_USAGE_SAMPLED_BIT
            IMAGE_USAGE_STORAGE_BIT
            IMAGE_USAGE_COLOR_ATTACHMENT_BIT
            IMAGE_USAGE_INPUT_ATTACHMENT_BIT
    VkSurfaceCapabilities2EXT:
    --------------------------
        supportedSurfaceCounters:
            None
    VkSurfaceProtectedCapabilitiesKHR:
    ----------------------------------
        supportsProtected = false






Device Groups:
==============
Group 0:
    Properties:
        physicalDevices: count = 1
            AMD Radeon RX 6700 XT (RADV NAVI22) (ID: 0)
        subsetAllocation = 0


    Present Capabilities:
        AMD Radeon RX 6700 XT (RADV NAVI22) (ID: 0):
            Can present images from the following devices: count = 1
                AMD Radeon RX 6700 XT (RADV NAVI22) (ID: 0)
        Present modes: count = 1
            DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR


Group 1:
    Properties:
        physicalDevices: count = 1
            llvmpipe (LLVM 15.0.7, 256 bits) (ID: 0)
        subsetAllocation = 0


    Present Capabilities:
        llvmpipe (LLVM 15.0.7, 256 bits) (ID: 0):
            Can present images from the following devices: count = 1
                llvmpipe (LLVM 15.0.7, 256 bits) (ID: 0)
        Present modes: count = 1
            DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR




Device Properties and Extensions:
=================================
GPU0:
VkPhysicalDeviceProperties:
---------------------------
    apiVersion        = 4206847 (1.3.255)
    driverVersion     = 96477185 (0x5c02001)
    vendorID          = 0x1002
    deviceID          = 0x73df
    deviceType        = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
    deviceName        = AMD Radeon RX 6700 XT (RADV NAVI22)
    pipelineCacheUUID = 2b984cf2-4998-2d06-e825-f8264da0832b

....

Code:
./linux-chroot /usr/bin/vkcube
mount -o nocover -t tmpfs tmpfs /home/Alexander88207/Downloads/umnt
mount: tmpfs: Device busy
Assuming /home/Alexander88207/Downloads/umnt is already set up.
Selected GPU 0: AMD Radeon RX 6700 XT (RADV NAVI22), type: 2
 
Code:
mount -o nocover -t tmpfs tmpfs /home/Alexander88207/Downloads/umnt
mount: tmpfs: Device busy
Assuming /home/Alexander88207/Downloads/umnt is already set up.
name of display: :0.0
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
(Stucks here)

Code:
linux: jid 0 pid 2046 (glxinfo.x86_64-linu): syscall kcmp not implemented
 
Renoir [Radeon RX Vega 6 (Ryzen 4000/5000 Mobile Series)]
FreeBSD 14.0-STABLE stable/14-n267004
Tested with drm-61-kmod

Code:
mount -o nocover -t tmpfs tmpfs /home/yusuf/umnt
mount -t devfs devfs /home/yusuf/umnt/dev
mount -t linprocfs linprocfs /home/yusuf/umnt/proc
mount -t nullfs /tmp /home/yusuf/umnt/tmp
mount -t nullfs /var/run /home/yusuf/umnt/var/run
mount -t linsysfs linsysfs /home/yusuf/umnt/sys/.sys
name of display: :0
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
Nothing appears on the screen.
Code:
linux: jid 0 pid 97556 (glxinfo.x86_64-linu): syscall kcmp not implemented

Code:
mount -o nocover -t tmpfs tmpfs /home/yusuf/umnt
mount: tmpfs: Device busy
Assuming /home/yusuf/umnt is already set up.
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
GL_RENDERER   = RENOIR (renoir, LLVM 15.0.7, DRM 3.49, 5.15.0)
It appears on the screen.
Code:
linux: jid 0 pid 88195 (glxgears.x86_64-lin): syscall kcmp not implemented

Code:
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.204


Instance Extensions: count = 20
===============================
    VK_EXT_acquire_drm_display             : extension revision 1
    VK_EXT_acquire_xlib_display            : extension revision 1
    VK_EXT_debug_report                    : extension revision 10
    VK_EXT_debug_utils                     : extension revision 2
    VK_EXT_direct_mode_display             : extension revision 1
    VK_EXT_display_surface_counter         : extension revision 1
    VK_EXT_swapchain_colorspace            : extension revision 4
    VK_KHR_device_group_creation           : extension revision 1
    VK_KHR_display                         : extension revision 23
    VK_KHR_external_fence_capabilities     : extension revision 1
    VK_KHR_external_memory_capabilities    : extension revision 1
    VK_KHR_external_semaphore_capabilities : extension revision 1
    VK_KHR_get_display_properties2         : extension revision 1
    VK_KHR_get_physical_device_properties2 : extension revision 2
    VK_KHR_get_surface_capabilities2       : extension revision 1
    VK_KHR_surface                         : extension revision 25
    VK_KHR_surface_protected_capabilities  : extension revision 1
    VK_KHR_wayland_surface                 : extension revision 6
    VK_KHR_xcb_surface                     : extension revision 6
    VK_KHR_xlib_surface                    : extension revision 6

Layers: count = 3
=================
VK_LAYER_INTEL_nullhw (INTEL NULL HW) Vulkan version 1.1.73, layer version 1:
    Layer Extensions: count = 0
    Devices: count = 2
        GPU id = 0 (AMD Unknown (RADV RENOIR))
        Layer-Device Extensions: count = 0

        GPU id = 1 (llvmpipe (LLVM 15.0.7, 256 bits))
        Layer-Device Extensions: count = 0

VK_LAYER_MESA_device_select (Linux device selection layer) Vulkan version 1.3.211, layer version 1:
    Layer Extensions: count = 0
    Devices: count = 2
        GPU id = 0 (AMD Unknown (RADV RENOIR))
        Layer-Device Extensions: count = 0

        GPU id = 1 (llvmpipe (LLVM 15.0.7, 256 bits))
        Layer-Device Extensions: count = 0

VK_LAYER_MESA_overlay (Mesa Overlay layer) Vulkan version 1.3.211, layer version 1:
    Layer Extensions: count = 0
    Devices: count = 2
        GPU id = 0 (AMD Unknown (RADV RENOIR))
        Layer-Device Extensions: count = 0

        GPU id = 1 (llvmpipe (LLVM 15.0.7, 256 bits))
        Layer-Device Extensions: count = 0

Presentable Surfaces:
=====================
GPU id : 0 (AMD Unknown (RADV RENOIR)):
    Surface types: count = 2
        VK_KHR_xcb_surface
        VK_KHR_xlib_surface
    Formats: count = 2
        SurfaceFormat[0]:
            format = FORMAT_B8G8R8A8_SRGB
            colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
        SurfaceFormat[1]:
            format = FORMAT_B8G8R8A8_UNORM
            colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
    Present Modes: count = 4
        PRESENT_MODE_IMMEDIATE_KHR
        PRESENT_MODE_MAILBOX_KHR
        PRESENT_MODE_FIFO_KHR
        PRESENT_MODE_FIFO_RELAXED_KHR
    VkSurfaceCapabilitiesKHR:
    -------------------------
        minImageCount = 3
        maxImageCount = 0
        currentExtent:
            width  = 256
            height = 256
        minImageExtent:
            width  = 256
            height = 256
        maxImageExtent:
            width  = 256
            height = 256
        maxImageArrayLayers = 1
        supportedTransforms: count = 1
            SURFACE_TRANSFORM_IDENTITY_BIT_KHR
        currentTransform = SURFACE_TRANSFORM_IDENTITY_BIT_KHR
        supportedCompositeAlpha: count = 2
            COMPOSITE_ALPHA_OPAQUE_BIT_KHR
            COMPOSITE_ALPHA_INHERIT_BIT_KHR
        supportedUsageFlags: count = 6
            IMAGE_USAGE_TRANSFER_SRC_BIT
            IMAGE_USAGE_TRANSFER_DST_BIT
            IMAGE_USAGE_SAMPLED_BIT
            IMAGE_USAGE_STORAGE_BIT
            IMAGE_USAGE_COLOR_ATTACHMENT_BIT
            IMAGE_USAGE_INPUT_ATTACHMENT_BIT
    VkSurfaceCapabilities2EXT:
    --------------------------
        supportedSurfaceCounters:
            None
    VkSurfaceProtectedCapabilitiesKHR:
    ----------------------------------
        supportsProtected = false


GPU id : 1 (llvmpipe (LLVM 15.0.7, 256 bits)):
    Surface types: count = 2
        VK_KHR_xcb_surface
        VK_KHR_xlib_surface
    Formats: count = 2
        SurfaceFormat[0]:
            format = FORMAT_B8G8R8A8_SRGB
            colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
        SurfaceFormat[1]:
            format = FORMAT_B8G8R8A8_UNORM
            colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
    Present Modes: count = 4
        PRESENT_MODE_IMMEDIATE_KHR
        PRESENT_MODE_MAILBOX_KHR
        PRESENT_MODE_FIFO_KHR
        PRESENT_MODE_FIFO_RELAXED_KHR
    VkSurfaceCapabilitiesKHR:
    -------------------------
        minImageCount = 3
        maxImageCount = 0
        currentExtent:
            width  = 256
            height = 256
        minImageExtent:
            width  = 256
            height = 256
        maxImageExtent:
            width  = 256
            height = 256
        maxImageArrayLayers = 1
        supportedTransforms: count = 1
            SURFACE_TRANSFORM_IDENTITY_BIT_KHR
        currentTransform = SURFACE_TRANSFORM_IDENTITY_BIT_KHR
        supportedCompositeAlpha: count = 2
            COMPOSITE_ALPHA_OPAQUE_BIT_KHR
            COMPOSITE_ALPHA_INHERIT_BIT_KHR
        supportedUsageFlags: count = 6
            IMAGE_USAGE_TRANSFER_SRC_BIT
            IMAGE_USAGE_TRANSFER_DST_BIT
            IMAGE_USAGE_SAMPLED_BIT
            IMAGE_USAGE_STORAGE_BIT
            IMAGE_USAGE_COLOR_ATTACHMENT_BIT
            IMAGE_USAGE_INPUT_ATTACHMENT_BIT
    VkSurfaceCapabilities2EXT:
    --------------------------
        supportedSurfaceCounters:
            None
    VkSurfaceProtectedCapabilitiesKHR:
    ----------------------------------
        supportsProtected = false



Device Groups:
==============
Group 0:
    Properties:
        physicalDevices: count = 1
            AMD Unknown (RADV RENOIR) (ID: 0)
        subsetAllocation = 0

    Present Capabilities:
        AMD Unknown (RADV RENOIR) (ID: 0):
            Can present images from the following devices: count = 1
                AMD Unknown (RADV RENOIR) (ID: 0)
        Present modes: count = 1
            DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR

Group 1:
    Properties:
        physicalDevices: count = 1
            llvmpipe (LLVM 15.0.7, 256 bits) (ID: 0)
        subsetAllocation = 0

    Present Capabilities:
        llvmpipe (LLVM 15.0.7, 256 bits) (ID: 0):
            Can present images from the following devices: count = 1
                llvmpipe (LLVM 15.0.7, 256 bits) (ID: 0)
        Present modes: count = 1
            DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR


Device Properties and Extensions:
=================================
GPU0:
VkPhysicalDeviceProperties:
---------------------------
    apiVersion        = 4206847 (1.3.255)
    driverVersion     = 96477185 (0x5c02001)
    vendorID          = 0x1002
    deviceID          = 0x1636
    deviceType        = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
    deviceName        = AMD Unknown (RADV RENOIR)
    pipelineCacheUUID = f2f8b635-29d1-84b3-807c-1a04ad442e4e
.......

Code:
mount -o nocover -t tmpfs tmpfs /home/yusuf/umnt
mount: tmpfs: Device busy
Assuming /home/yusuf/umnt is already set up.
Selected GPU 0: AMD Unknown (RADV RENOIR), type: 1
It appears on the screen.
Code:
linux: jid 0 pid 93190 (WSI swapchain q): linux_ioctl_fallback fd=7, cmd=0xc0303e03 ('>',3) is not implemented
 
FreeBSD 13.3-RELEASE-p1 GENERIC
drm-510-kmod-5.10.163_8
11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
Intel(R) Xe Graphics (TGL GT2)
(Frame.work 11th gen laptop)

Code:
./linux-chroot /usr/bin/glxinfo
mount -o nocover -t tmpfs tmpfs /usr/home/jose/Downloads/umnt
mount -t devfs devfs /usr/home/jose/Downloads/umnt/dev
mount -t linprocfs linprocfs /usr/home/jose/Downloads/umnt/proc
mount -t nullfs /tmp /usr/home/jose/Downloads/umnt/tmp
mount -t nullfs /var/run /usr/home/jose/Downloads/umnt/var/run
mount -t linsysfs linsysfs /usr/home/jose/Downloads/umnt/sys/.sys
mount -t nullfs /usr/home/jose/.Xauthority /usr/home/jose/Downloads/umnt/usr/home/jose/.Xauthority
name of display: :0
glxinfo hangs at this point. I see it in top(1) but it never exits or prints any more output

Code:
./linux-chroot /usr/bin/glxgears -info | grep RENDER
mount -o nocover -t tmpfs tmpfs /usr/home/jose/Downloads/umnt
mount: tmpfs: Device busy
Assuming /usr/home/jose/Downloads/umnt is already set up.
GL_RENDERER   = Mesa Intel(R) Xe Graphics (TGL GT2)
X connection to :0 broken (explicit kill or server shutdown).
I see the Glxgears window.

Code:
./linux-chroot /usr/bin/vulkaninfo > vkinfo.txt
mount -o nocover -t tmpfs tmpfs /usr/home/jose/Downloads/umnt
mount: tmpfs: Device busy
Assuming /usr/home/jose/Downloads/umnt is already set up.
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Failed to CreateInstance in ICD 1.  Skipping ICD.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
The vkinfo.txt file is attached.

Code:
./linux-chroot /usr/bin/vkcube
mount -o nocover -t tmpfs tmpfs /usr/home/jose/Downloads/umnt
mount: tmpfs: Device busy
Assuming /usr/home/jose/Downloads/umnt is already set up.
Selected GPU 0: Intel(R) Xe Graphics (TGL GT2), type: 1
I see the Vulkan cube spinning in its window, but the entire display freezes when I move the mouse. Alt-tabbing away from the vkcube window unfreezes it.

N.B. I also had to kldload linprocfs linsysfs.
 

Attachments

  • vkinfo.txt
    115.4 KB · Views: 12
Does that happen with native vkcube-xcb/vkcube-xlib (from vulkan-tools)?
Yes, but it's much harder to trigger. I had to fool around with the mouse a lot more, and press keys too. I'm not entirely sure that's what triggers it to be honest. It does seem to be correlated with input of some sort, but I could not come up with a reproducible way of making it happen.
 
I see glxgears but not vkcube:

sh:
mount -o nocover -t tmpfs tmpfs /home/bd/umnt
mount -t devfs devfs /home/bd/umnt/dev
mount -t linprocfs linprocfs /home/bd/umnt/proc
mount -t nullfs /tmp /home/bd/umnt/tmp
mount -t nullfs /var/run /home/bd/umnt/var/run
mount -t linsysfs linsysfs /home/bd/umnt/sys/.sys
GL_RENDERER   = llvmpipe (LLVM 15.0.7, 256 bits)


sh:
mount -o nocover -t tmpfs tmpfs /home/bd/umnt
mount: tmpfs: Device busy
Assuming /home/bd/umnt is already set up.
Selected GPU 0: NVIDIA GeForce GTX 1070, type: 2
vkcube: ./cube/cube.c:1356: demo_prepare_buffers: Assertion `!err' failed.
[1]    7158 abort (core dumped)  ./linux-chroot /usr/bin/vkcube
 
I see glxgears but not vkcube:

sh:
mount -o nocover -t tmpfs tmpfs /home/bd/umnt
mount -t devfs devfs /home/bd/umnt/dev
mount -t linprocfs linprocfs /home/bd/umnt/proc
mount -t nullfs /tmp /home/bd/umnt/tmp
mount -t nullfs /var/run /home/bd/umnt/var/run
mount -t linsysfs linsysfs /home/bd/umnt/sys/.sys
GL_RENDERER   = llvmpipe (LLVM 15.0.7, 256 bits)


sh:
mount -o nocover -t tmpfs tmpfs /home/bd/umnt
mount: tmpfs: Device busy
Assuming /home/bd/umnt is already set up.
Selected GPU 0: NVIDIA GeForce GTX 1070, type: 2
vkcube: ./cube/cube.c:1356: demo_prepare_buffers: Assertion `!err' failed.
[1]    7158 abort (core dumped)  ./linux-chroot /usr/bin/vkcube
You skipped all the useful information.
 
shkhln Is it relevant for you if I test/report over already operational Jammy jail that I use for Discord? Glxgears work in it, haven't tried vulkan yet.

Sorry I should pay more attention, I don't run on Intel/AMD
 
Back
Top