commit | e4546f507beaae1d41698b2c752d03e72d865b56 | [log] [tgz] |
---|---|---|
author | Marina Ciocea <marinaciocea@google.com> | Tue Dec 13 12:18:40 2022 -0500 |
committer | Marina Ciocea <marinaciocea@google.com> | Tue Dec 13 18:38:11 2022 +0000 |
tree | c55be7b62bab6f1c3d7af9a9d7ad9af0f3f4669a | |
parent | 6baebbf04493b63a62118f445c99fb606934e62f [diff] |
[etnaviv_gpu_tests] Add OWNERS file Add as owners the owners of the code that calls into this dependency. The OWNERS file is generated by `fx update-3p-owners`. Bug: 102810 Change-Id: Ibb4f593a4a74a91a2e78c91665b5d20670b15ec6 Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/etnaviv_gpu_tests/+/776183 Reviewed-by: Craig Stout <cstout@google.com>
This contains various tests for Vivante GPUs based on the Etnaviv DRM driver.
./autogen.sh ./configure make
For cross-builds simply pass --host=<toolchain-tuple>
to configure
. You may have to override PKG_CONFIG_PATH
PKG_CONFIG_SYSROOT_DIR
PKG_CONFIG_LIBDIR
as well to make it able to find the DRM libraries.
This package needs libdrm
installed with libdrm_etnaviv
enabled. MESA is not necessary.
This is an extremely basic test that writes “Hello World” to memory from a CL shader.
The intent of this test is to test the output of various opcodes against putative CPU implementation of the same operation, and thus figure out exactly what the GPU instructions do.
This is achieved by using the CL
(OpenCL) functionality of GC2000 and higher.
Example output:
$ etnaviv_verifyops /dev/dri/renderD128 Version: 1.0.0 Name: etnaviv Date: 20151214 Description: etnaviv DRM add.u32: PASS imullo0.u32: PASS lshift.u32: PASS rshift.u32: PASS rotate.u32: PASS or.u32: PASS and.u32: PASS xor.u32: PASS not.u32: PASS
Executes various CL shader benchmarks.
The goal is to figure out how the use of various instructions impacts performance.
However currently they all measure memory throughput.
Example output:
[read] [ram] Speed: 113.606 MB/s [readacc] [ram] Speed: 82.522 MB/s [write] [ram] Speed: 234.779 MB/s