From nobody Fri Apr 4 03:52:48 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1741470918; cv=none; d=zohomail.com; s=zohoarc; b=d6xa/7kIyI9Jd6ALkG0ajq+tn2xmoRi5I8s1IhKHwdoWqMoHeIBPSyERYnHSzE6Z2vydUPRryuD/KZ8mRHzUZZ9F/XOcJcFRRmsEKoz3L5Y/bLO+qYSvuZNKa+iDTU1FJmrNCa9pP8/COP3MGB9w5fuz+BYyUH77G/Q2hIXml6o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1741470918; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=OIaKC/SjxFs9P2m9mvZW+W0xEbrgWkgnWx8O8XlDy3g=; b=WkQbKPxnQC6AtBlR30X36iYWvELfSMX6/zIxhAKtSAqUDs61hrXLJ5hcR4WrAi16UfSUqoM//b39fKcgfEyqhchV93MvZYk6RFDq5yqD9roRnhXmIaKDVnpzDsCOHOT9cSyktehDEVsoGIoGGXbrx3E1XMqIdgZzPRqZUiz7/wQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17414709181141021.6873179773237; Sat, 8 Mar 2025 13:55:18 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tr26z-0003FW-8Z; Sat, 08 Mar 2025 16:53:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tr26w-0003Dl-7W for qemu-devel@nongnu.org; Sat, 08 Mar 2025 16:53:34 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tr26u-0000uR-Bq for qemu-devel@nongnu.org; Sat, 08 Mar 2025 16:53:33 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3912d2c89ecso2447127f8f.2 for ; Sat, 08 Mar 2025 13:53:31 -0800 (PST) Received: from draig.lan ([185.126.160.109]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3912c0e2b6asm10109790f8f.66.2025.03.08.13.53.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Mar 2025 13:53:30 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 1725E601A1; Sat, 8 Mar 2025 21:53:27 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741470811; x=1742075611; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OIaKC/SjxFs9P2m9mvZW+W0xEbrgWkgnWx8O8XlDy3g=; b=QLzF8vmU8/OcBX2nE+UF3y5tHz6zPJ4vMnMRVtkvxIQVLuW/5ZXCJI2WznCf5AupfM riM6rB8FRn4AcDBVmTNZaFZXsyWkEN+aKvtD/OijmtCgvM1BZyrK98IUYgLuEETvALi1 a04OWTYpXIU8ik2xDHUHoh5HLSjwvwCFn8QEA0ZxNzb9KFuFxenZtkVO5hE+MnVd0GRV snuv+t7pM7zc3XRyOA0HpWnoSaYZZ7cXQunlWjEfM2IOke8fuVqdXwzwEtCXzg1pv8sd 08dFzgE/h/npeo2rEzXM63YzCv0ljFG5C9mjLAa/6Tnu1htZ1zpEjqOtRwyJ6lXoKM28 J3dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741470811; x=1742075611; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OIaKC/SjxFs9P2m9mvZW+W0xEbrgWkgnWx8O8XlDy3g=; b=JTAOrVxsh58d4aA+8WeEofpMCOQJtic2FM9xIlvkWTcGevRjHpOk+7Mkd4cfxHHxaO 1qL/ZRXRz7FzI/s6fzEoOGOC7Gkeke48jWTBQhnqlhdB84qK86tcWDASq9/PPNCJmy0m JrjTdcyC/m2IWT7PrWsE/qEzK6b+L31XmLACraEcF6EH/wNMGcBCY/12qjnEvs73PKAi PipXpqp/4gA38ZEYjGxAeJ0+BVQUCSp0E+iQK7rEiDCWcoh4oW/jZZYdrZluaVRwO0WS 7GCxFlYTufT5JWm6rTlTJz9an4Aj+Te8T8/2rw0h2WIxef1n5tNJ4rPlOO+UmWivZbC+ S3og== X-Gm-Message-State: AOJu0YyA2koGLUTtMvk468FScrSpqpGAlyhv8wyXEeGq46m3C0HGhbVD MV6R6D8Xsl6Zgkueq2WcpQtXufD0SOf24K5yG8CVq/qNDb+byeSfjRBl1qV4FH8= X-Gm-Gg: ASbGncvS56mbSuZ0NkEowX2v88W6g9zHOe5Dq0VeLmLDYUzhpOHx1KtfT2t3Lw7E1ja Kg16jI1jva9YJAbLlHiGu6zATpgk2XV7m7L7T5YrJjdDpcaO2aAAqPvz7gAXMO0nGA27OLDsNOV a38Z9C6KthAYHNxzfX8eFlN4S/TXrg5mij4oldTgmGgXkX621OC+77D9PTC1jWfth6jhODY7LMi FsWQ7PZYT8UFVy5uoQnqOGVv3Bs7W71Goc7UXUMSU5guZ/Eo39Fp1mXXEcqKqWV/gq8WLjhz8SI nnRD5ECSdEStLlM8hP/FhJLTsdpCrL4Qk0NERtc2O4z7MlM= X-Google-Smtp-Source: AGHT+IGxbVfTYRdbg3IigvV9WeMY2yrQ9q0eqNLlASEuIc5m6lIkrl4swX+7Ypn3JthiCeE1Jqf0VA== X-Received: by 2002:a05:6000:2ac:b0:38d:e6b6:508b with SMTP id ffacd0b85a97d-39132d308b8mr4967926f8f.9.1741470810865; Sat, 08 Mar 2025 13:53:30 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Thomas Huth Subject: [PULL 06/31] tests/functional: expand tests to cover virgl Date: Sat, 8 Mar 2025 21:53:01 +0000 Message-Id: <20250308215326.2907828-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250308215326.2907828-1-alex.bennee@linaro.org> References: <20250308215326.2907828-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1741470919232019000 Add two more test modes using glmark2-wayland to exercise the OpenGL pass-through modes with virgl. Virgl can run with or without the hostmem blob support. To avoid repeating ourselves too much we make the initial pass a simple --validate pass. We might want to eventually add more directed tests and individual features later on but the glmark/vkmark tests are a good general smoke test for accelerated 3D. Reviewed-by: Thomas Huth Signed-off-by: Alex Benn=C3=A9e Message-Id: <20250304222439.2035603-7-alex.bennee@linaro.org> diff --git a/tests/functional/test_aarch64_virt_gpu.py b/tests/functional/t= est_aarch64_virt_gpu.py index 32949f6a34..4a21d8c6cd 100755 --- a/tests/functional/test_aarch64_virt_gpu.py +++ b/tests/functional/test_aarch64_virt_gpu.py @@ -92,6 +92,28 @@ def _run_virt_weston_test(self, cmd, fail =3D None): full_cmd =3D f"weston -B headless --renderer gl --shell kiosk -- {= cmd}" ec_and_wait(self, full_cmd, OK_CMD, fail) =20 + @skipIfMissingCommands('zstd') + def test_aarch64_virt_with_virgl_gpu(self): + + self.require_device('virtio-gpu-gl-pci') + + self._launch_virt_gpu("virtio-gpu-gl-pci") + + # subset of the glmark tests + tests =3D " ".join([f"-b {test}" for test in + ["build", "texture", "shading", + "bump", "desktop", "buffer"]]) + + self._run_virt_weston_test("glmark2-wayland --validate " + tests) + + @skipIfMissingCommands('zstd') + def test_aarch64_virt_with_virgl_blobs_gpu(self): + + self.require_device('virtio-gpu-gl-pci') + + self._launch_virt_gpu("virtio-gpu-gl-pci,hostmem=3D4G,blob=3Don") + self._run_virt_weston_test("glmark2-wayland -b:duration=3D1.0") + @skipIfMissingCommands('zstd') def test_aarch64_virt_with_vulkan_gpu(self): =20 --=20 2.39.5