Received: from eggs.gnu.org ([2001:4830:134:3::10]:46492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beITY-0000T7-Vn for qemu-devel@nongnu.org; Mon, 29 Aug 2016 05:03:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beITU-0002d9-Ff for qemu-devel@nongnu.org; Mon, 29 Aug 2016 05:03:28 -0400 Received: from mx4-phx2.redhat.com ([209.132.183.25]:49265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beITU-0002cz-84 for qemu-devel@nongnu.org; Mon, 29 Aug 2016 05:03:24 -0400 Date: Mon, 29 Aug 2016 05:03:16 -0400 (EDT) From: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Message-ID: <2082276949.3207519.1472461396527.JavaMail.zimbra@redhat.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] fail to test virtio-gpu with heaven benchmark4.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chen Fan Cc: kraxel@redhat.com, marcandre lureau , qemu-devel@nongnu.org hi ----- Original Message ----- > Hi all, >=20 > I tried to use virtio-gpu to do some test, the glmark2 works, but when I > ran heaven benchmark in Guest, >=20 > the application could not be ran. I have collected the output message. > pls see attachment file. >=20 > I built my environment according to the requirement in > https://copr.fedorainfracloud.org/coprs/kraxel/virgl/=EF=BC=8C It should no longer be necessary, everything is in fedora 24 See also: http://blog.wikichoon.com/2016/05/spice-openglvirgl-acceleration-on.html > both guest/host kernel version: 4.6 >=20 > I used the latest qemu forked from master branch > (e00da552a0dc82f4ec7896281eada7201e69f1db), >=20 > and run qemu with: >=20 > ~/data/linux-src/qemu$ ./x86_64-softmmu/qemu-system-x86_64 -vga virtio > -display gtk,gl=3Don --enable-kvm -m 4000 -smp 4,sockets=3D1,cores=3D4 -h= da > /home/chenfan/imgs/fedora23.qcow2 -cpu host >=20 > when running the heaven benchmark application the qemu has some output > as following, I don't know how to fix that, >=20 > do you have some hints? thanks in advance :) >=20 >=20 > the qemu output messages: > (qemu-system-x86_64:4628): Gdk-WARNING **: > gdk_gl_context_set_required_version - GL context versions less than 3.2 > are not supported. > gl_version 33 - core profile enabled > vrend_compile_shader: context error reported 3 "Xorg" Illegal shader 0 > shader failed to compile > 0:23(34): error: could not implicitly convert operands to arithmetic > operator > 0:23(34): error: operands to arithmetic operators must be numeric > 0:23(17): error: no matching function for call to > `uintBitsToFloat(error)'; candidates are: > 0:23(17): error: vec4 uintBitsToFloat(uvec4) > 0:23(17): error: float uintBitsToFloat(uint) > 0:23(17): error: vec2 uintBitsToFloat(uvec2) > 0:23(17): error: vec3 uintBitsToFloat(uvec3) > 0:23(17): error: vec4 uintBitsToFloat(uvec4) > 0:23(12): error: cannot construct `vec4' from a non-numeric data type > (snip) > vrend_report_buffer_error: context error reported 3 "Xorg" Illegal > command buffer 149816321 This is a virglrenderer bug, translating a shader. You could try with virgl= renderer from git, and if it still fails, report a bug to the virgl mailing= list. Regarding benchmarks, those aren't so great if you compare them with the ho= st today (especially "artificial" benchmarks like glmark2), I would say it'= s between 30-50% of host, so there is room for improvements. thanks