Message ID | 20250226140343.3907080-5-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show |
Series | maintainer updates for 10.0 softfreeze (gpu/tcg tests, plugins, MAINTAINERS) | expand |
On 26/02/2025 15.03, Alex Bennée wrote: > 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. > > 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. > > Signed-off-by: Alex Bennée <alex.bennee@linaro.org> > Message-Id: <20250219150009.1662688-5-alex.bennee@linaro.org> > --- > tests/functional/test_aarch64_virt_gpu.py | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/tests/functional/test_aarch64_virt_gpu.py b/tests/functional/test_aarch64_virt_gpu.py > index c9463d7285..7a8471d1ca 100755 > --- a/tests/functional/test_aarch64_virt_gpu.py > +++ b/tests/functional/test_aarch64_virt_gpu.py > @@ -89,6 +89,26 @@ def _run_virt_gpu_test(self, gpu_device, weston_cmd, weston_pattern): > full_cmd = f"weston -B headless --renderer gl --shell kiosk -- {weston_cmd}" > exec_command_and_wait_for_pattern(self, full_cmd, weston_pattern) > > + @skipIfMissingCommands('zstd') > + def test_aarch64_virt_with_virgl_gpu(self): > + > + self.require_device('virtio-gpu-gl-pci') > + > + gpu_device = "virtio-gpu-gl-pci" > + weston_cmd = "glmark2-wayland -b:duration=1.0" > + weston_pattern = "glmark2 Score" > + self._run_virt_gpu_test(gpu_device, weston_cmd, weston_pattern) > + > + @skipIfMissingCommands('zstd') > + def test_aarch64_virt_with_virgl_blobs_gpu(self): > + > + self.require_device('virtio-gpu-gl-pci') > + > + gpu_device = "virtio-gpu-gl-pci,hostmem=4G,blob=on" > + weston_cmd = "glmark2-wayland -b:duration=1.0" > + weston_pattern = "glmark2 Score" > + self._run_virt_gpu_test(gpu_device, weston_cmd, weston_pattern) > + > @skipIfMissingCommands('zstd') > def test_aarch64_virt_with_vulkan_gpu(self): > Reviewed-by: Thomas Huth <thuth@redhat.com>
diff --git a/tests/functional/test_aarch64_virt_gpu.py b/tests/functional/test_aarch64_virt_gpu.py index c9463d7285..7a8471d1ca 100755 --- a/tests/functional/test_aarch64_virt_gpu.py +++ b/tests/functional/test_aarch64_virt_gpu.py @@ -89,6 +89,26 @@ def _run_virt_gpu_test(self, gpu_device, weston_cmd, weston_pattern): full_cmd = f"weston -B headless --renderer gl --shell kiosk -- {weston_cmd}" exec_command_and_wait_for_pattern(self, full_cmd, weston_pattern) + @skipIfMissingCommands('zstd') + def test_aarch64_virt_with_virgl_gpu(self): + + self.require_device('virtio-gpu-gl-pci') + + gpu_device = "virtio-gpu-gl-pci" + weston_cmd = "glmark2-wayland -b:duration=1.0" + weston_pattern = "glmark2 Score" + self._run_virt_gpu_test(gpu_device, weston_cmd, weston_pattern) + + @skipIfMissingCommands('zstd') + def test_aarch64_virt_with_virgl_blobs_gpu(self): + + self.require_device('virtio-gpu-gl-pci') + + gpu_device = "virtio-gpu-gl-pci,hostmem=4G,blob=on" + weston_cmd = "glmark2-wayland -b:duration=1.0" + weston_pattern = "glmark2 Score" + self._run_virt_gpu_test(gpu_device, weston_cmd, weston_pattern) + @skipIfMissingCommands('zstd') def test_aarch64_virt_with_vulkan_gpu(self):
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. 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. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250219150009.1662688-5-alex.bennee@linaro.org> --- tests/functional/test_aarch64_virt_gpu.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)