Question: error when running [Virtio-GPU Venus->vtest]

Taylor Viktor <[email protected]>
Newsgroups gmane.comp.video.mesa3d.devel
Message-ID <CANbagGWtb=gHDKctsP3BGoOY4DcNybssPfiWSdxG+Q+JxwJPTA@mail.gmail.com>
Dear Developers:

I am referring to this document
https://docs.mesa3d.org/drivers/venus.html#vtest to develop vulkan related
functions, but every time I run vulkaninfo or vkcube some errors occur.

virgl_test_server prints the following:

gl_version 46 - core profile enabled vtest_client_dispatch_commands: client
context created. client failed: VTEST_CLIENT_ERROR_INPUT_READ

Running vulkaninfo prints the following:

WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Failed to
CreateInstance in ICD 0. Skipping ICD. Cannot create Vulkan instance. This
problem is often caused by a faulty installation of the Vulkan driver or
attempting to use a GPU that does not support Vulkan. ERROR at
./vulkaninfo/vulkaninfo.h:649:vkCreateInstance failed with
ERROR_INCOMPATIBLE_DRIVER

Running vkcube prints the following:

Cannot find a compatible Vulkan installable client driver (ICD). Please
look at the Getting Started guide for additional information.

After debugging, I found that the error occurred when calling the system
function res = read(fd, ptr, left) in the vtest_block_read(struct
vtest_input *input, void *buf, int size) function, it returned 0 to the
variable res, but The variable left passed in is 8. This is only true if(res
== left).

And I checked the Requirements by running below command:

 vulkaninfo | grep "Vulkan Instance Version"
 vulkaninfo | grep VK_EXT_external_memory_dma_buf
 vulkaninfo | grep VK_EXT_image_drm_format_modifier
 vulkaninfo | grep VK_EXT_queue_family_foreign
 uname -r

the output:

Vulkan Instance Version: 1.3.204 VK_EXT_external_memory_dma_buf : extension
revision 1 VK_EXT_image_drm_format_modifier : extension revision 2
VK_EXT_queue_family_foreign
: extension revision 1 5.15.0-52-generic

Except the graphics card is GTX 1060 3GB, I think my other requirements are
met. I use vtest, which can ignore the kernel version according to the
documentation.

   -

   When you were testing, what versions of virglrenderer and mesa were you
   using? If you guys know, please let me know and I will try it again.


   -

   If you don't know the specific version, can you give me some debugging
   or method suggestions?

Looking forward to your reply, thank you very much
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.