From 6e9ad06719d63b72e677f431bc91b88a2a1f46c7 Mon Sep 17 00:00:00 2001 From: Igor Torrente Date: Wed, 14 Sep 2022 09:43:20 -0300 Subject: [PATCH] running_vtest: Add Venus --- running_vtest.md | 83 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/running_vtest.md b/running_vtest.md index 3af5616..46271a1 100644 --- a/running_vtest.md +++ b/running_vtest.md @@ -1,5 +1,7 @@ # Running vtest +## Virgl + Assuming your virgl installation is located in PREFIX, then run ``` @@ -122,3 +124,84 @@ export GALLIUM_DRIVER=virpipe exec bash ``` + +## Venus + +Running Venus using Vtests is quite simple. + +1. Compile virglrenderer with `-Dvenus-experimental=true`. + +2. Run `virgl_test_server` with `--venus` flag. + +3. Run your program with `VK_ICD_FILENAMES=$PREFIX/share/vulkan/icd.d/virtio_icd..json` +and `VN_DEBUG=vtest` environment variables. + +Ex: + +``` Console +VK_ICD_FILENAMES=~/projects/.local/share/vulkan/icd.d/virtio_icd.x86_64.json VN_DEBUG=vtest vulkaninfo --summary +'DISPLAY' environment variable not set... skipping surface info +========== +VULKANINFO +========== + +Vulkan Instance Version: 1.3.224 + + +Instance Extensions: count = 14 +------------------------------- +VK_EXT_debug_report : extension revision 10 +VK_EXT_debug_utils : extension revision 2 +VK_KHR_device_group_creation : extension revision 1 +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_physical_device_properties2 : extension revision 2 +VK_KHR_get_surface_capabilities2 : extension revision 1 +VK_KHR_portability_enumeration : 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 + +Instance Layers: count = 8 +-------------------------- +VK_LAYER_INTEL_nullhw INTEL NULL HW 1.1.73 version 1 +VK_LAYER_MANGOHUD_overlay Vulkan Hud Overlay 1.3.0 version 1 +VK_LAYER_MESA_device_select Linux device selection layer 1.3.211 version 1 +VK_LAYER_MESA_overlay Mesa Overlay layer 1.3.211 version 1 +VK_LAYER_VALVE_steam_fossilize_32 Steam Pipeline Caching Layer 1.3.207 version 1 +VK_LAYER_VALVE_steam_fossilize_64 Steam Pipeline Caching Layer 1.3.207 version 1 +VK_LAYER_VALVE_steam_overlay_32 Steam Overlay Layer 1.3.207 version 1 +VK_LAYER_VALVE_steam_overlay_64 Steam Overlay Layer 1.3.207 version 1 + +Devices: +======== +GPU0: + apiVersion = 4202720 (1.2.224) + driverVersion = 92282979 (0x5802063) + vendorID = 0x8086 + deviceID = 0x9a49 + deviceType = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU + deviceName = Virtio-GPU Venus (Intel(R) Xe Graphics (TGL GT2)) + driverID = DRIVER_ID_MESA_VENUS + driverName = venus + driverInfo = Mesa 22.3.0-devel (git-e51c5a18ad) + conformanceVersion = 1.2.7.1 + deviceUUID = 8667ed44-ac81-d5ac-7872-2e542c35f70a + driverUUID = db51c990-02bc-c2d1-a149-4d3379dd9b99 +GPU1: + apiVersion = 4202720 (1.2.224) + driverVersion = 92282979 (0x5802063) + vendorID = 0x10005 + deviceID = 0x0000 + deviceType = PHYSICAL_DEVICE_TYPE_CPU + deviceName = Virtio-GPU Venus (llvmpipe (LLVM 14.0.6, 256 bits)) + driverID = DRIVER_ID_MESA_VENUS + driverName = venus + driverInfo = Mesa 22.3.0-devel (git-e51c5a18ad) + conformanceVersion = 1.2.7.1 + deviceUUID = 5fb5c03f-c537-f0fe-a7e6-9cd5866acb8d + driverUUID = db51c990-02bc-c2d1-a149-4d3379dd9b99 +``` -- GitLab