<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Greetings,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I try to run <span style="font-weight:normal;orphans:auto;widows:auto;display:inline !important">
qemu-system-aarch64</span> with a Yocto 3.4 image and VirGL for OpenGL ES 3.1 with Wayland, Weston, Ivi-Shell, but I only get a 3.0 core profile.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In order to create the Yocto image, I use</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
source oe-init-build-env build-virgl</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
then</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
bitbake core-image weston.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I use the command line from the auto generated runqemu but change the command line to a self-built qemu 6.2. The resulting command line looks like this:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight:normal;orphans:auto;widows:auto;display:inline !important">sudo qemu-system-aarch64 -device virtio-net-device,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -object rng-random,filename=/dev/urandom,id=rng0
-device virtio-rng-pci,rng=rng0 -drive id=disk0,file=/media/user/SSD1TB/yoctoqemu/poky/build-virgl/tmp/deploy/images/qemuarm64/core-image-weston-qemuarm64-20220317211455.rootfs.ext4,if=none,format=raw -device virtio-blk-device,drive=disk0 -device qemu-xhci
-device usb-tablet -device usb-kbd -machine virt -cpu cortex-a57 -smp 4 -m 512 -serial mon:vc -serial null -display sdl,gl=on,show-cursor=on -device virtio-gpu-gl-pci -kernel /media/user/SSD1TB/yoctoqemu/poky/build-virgl/tmp/deploy/images/qemuarm64/Image--5.14.21+git0+f9e349e174_9d5572038e-r0-qemuarm64-20220317110103.bin
-append 'root=/dev/vda rw mem=512M ip=192.168.7.2::192.168.7.1:255.255.255.0 ' -device virtio-net-device,netdev=user0 -netdev user,id=user0,hostfwd=tcp::2222-:22</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
However, I only get an OpenGL ES 3.0 context, but I need 3.1. From weston.log:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight:normal;orphans:auto;widows:auto;display:inline !important">[21:22:57.286] EGL_KHR_surfaceless_context available</span><br>
<span style="font-weight:normal;orphans:auto;widows:auto;display:inline !important">[21:22:57.323] GL version: OpenGL ES 3.0 Mesa 21.2.4</span><br style="font-weight:normal;orphans:auto;widows:auto">
<span style="font-weight:normal;orphans:auto;widows:auto;display:inline !important">[21:22:57.323] GLSL version: OpenGL ES GLSL ES 3.00</span><br style="font-weight:normal;orphans:auto;widows:auto">
<span style="font-weight:normal;orphans:auto;widows:auto;display:inline !important">[21:22:57.324] GL vendor: Mesa/</span><a href="http://x.org/" style="font-weight:normal;orphans:auto;widows:auto">X.org</a><br style="font-weight:normal;orphans:auto;widows:auto">
<span style="font-weight:normal;orphans:auto;widows:auto;display:inline !important">[21:22:57.324] GL renderer: virgl</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Any ideas?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>