xMeM / vulkan-wsi-layer

Other
14 stars 4 forks source link

zink error issue reporting (in new commit) #16

Open hansm629 opened 2 months ago

hansm629 commented 2 months ago

@xMeM

Thank you again for always working hard on development.

https://github.com/Trass3r/termux-packages/actions/runs/10334250343 (@Trass3r Thanks for build it!)

~$ MESA_LOADER_DRIVER_OVERRIDE=zink glmark2
ERROR(/home/builder/.termux-build/vulkan-wsi-layer/src/wsi/x11/swapchain.cpp:260): vkAllocateMemory failed:-1
ERROR(/home/builder/.termux-build/vulkan-wsi-layer/src/wsi/swapchain_base.cpp:295): create_and_bind_swapchain_image(image_create_info, img)
ERROR(/home/builder/.termux-build/vulkan-wsi-layer/src/layer/swapchain_api.cpp:64): Failed to initialise swapchain
MESA: error: CreateSwapchainKHR failed with VK_ERROR_OUT_OF_HOST_MEMORY
MESA: error: zink: could not create swapchain
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0x0
  Serial number of failed request:  45
  Current serial number in output stream:  47
~$ MESA_LOADER_DRIVER_OVERRIDE=zink glmark2-es2
libEGL warning: DRI3: Screen seems not DRI3 capable
ERROR(/home/builder/.termux-build/vulkan-wsi-layer/src/wsi/x11/swapchain.cpp:260): vkAllocateMemory failed:-1
ERROR(/home/builder/.termux-build/vulkan-wsi-layer/src/wsi/swapchain_base.cpp:295): create_and_bind_swapchain_image(image_create_info, img)
ERROR(/home/builder/.termux-build/vulkan-wsi-layer/src/layer/swapchain_api.cpp:64): Failed to initialise swapchain
MESA: error: CreateSwapchainKHR failed with VK_ERROR_OUT_OF_HOST_MEMORY
MESA: error: zink: could not create swapchain
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      Mesa
    GL_RENDERER:    zink Vulkan 1.3(Samsung Xclipse 940 (SAMSUNG_PROPRIETARY))
    GL_VERSION:     OpenGL ES 3.2 Mesa 24.0.8
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false:X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0x0
  Serial number of failed request:  34
  Current serial number in output stream:  36

It works in mesa-zink 22.0.5 before koppar was merged. (There are still many errors.)

but

From mesa 24.0.8 with koppar merged There were a lot of problems

https://github.com/xMeM/vulkan-wsi-layer/issues/8

Still, vulkan-wsi-layer from the previous commit works in mesa 24.0.8. It worked, but from the latest commit, an error occurred and it doesn't work at all.

check please.

Saikatsaha1996 commented 2 months ago

I also have Zink issue

~ $ DISPLAY=:0 VK_ICD_FILENAMES=/data/data/com.termux/files/usr/share/vulkan/icd.d/sysvk_icd.json MESA_LOADER_DRIVER_OVERRIDE=zink glxinfo -B
name of display: :0
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Adreno (TM) 660) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color
glx: failed to create drisw screen
failed to load driver: zink
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Adreno (TM) 660) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color
glx: failed to create drisw screen
failed to load driver: zink
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Adreno (TM) 660) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color
glx: failed to create drisw screen
failed to load driver: zink
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Adreno (TM) 660) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color
glx: failed to create drisw screen
failed to load driver: zink
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Adreno (TM) 660) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color
glx: failed to create drisw screen
failed to load driver: zink
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Adreno (TM) 660) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color
glx: failed to create drisw screen
failed to load driver: zink
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Adreno (TM) 660) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color
glx: failed to create drisw screen
failed to load driver: zink
Error: couldn't find RGB GLX visual or fbconfig
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Adreno (TM) 660) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color
glx: failed to create drisw screen
failed to load driver: zink
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Adreno (TM) 660) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color
glx: failed to create drisw screen
failed to load driver: zink

~ $ DISPLAY=:0 VK_ICD_FILENAMES=/data/data/com.termux/files/usr/share/vulkan/icd.d/sysvk_icd.json MESA_LOADER_DRIVER_OVERRIDE=zink glxgears
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Adreno (TM) 660) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color
glx: failed to create drisw screen
failed to load driver: zink
Error: couldn't get an RGB, Double-buffered visual
~ $ DISPLAY=:0 vkmark
=======================================================
    vkmark 2017.08
=======================================================
    Vendor ID:      0x5143
    Device ID:      0x6060001
    Device Name:    Adreno (TM) 660
    Driver Version: 2149654528
    Device UUID:    abf81c0a435100000000010006060000
=======================================================
[vertex] device-local=true: FPS: 3685 FrameTime: 0.271 ms
[vertex] device-local=false:^C FPS: 3420 FrameTime: 0.292 ms
=======================================================
                                   vkmark Score: 3552
=======================================================
~ $