commit | 9c0d098a8a8eb1991f96170f3a03dc9cc69e0eab | [log] [tgz] |
---|---|---|
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | Thu Nov 09 11:24:01 2017 +0100 |
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | Thu Nov 09 11:24:01 2017 +0100 |
tree | f509dd3ef6913a931617d5311956ef70ef879284 | |
parent | 86eaf4a6b61acd930a5d25dcbe18cbd62b108d4b [diff] |
Actually cycle through GPU IDs in find_suitable_gpu In the current version, if the first returned GPU does not have the desired features, we are stuck in an endless loop, since we always retry with the exact same ID. This patch adds an increment to core_id, assuming thats how we are supposed to cycle through the GPUs. Tested on an IMX6Q6AVT10AD where it works with this patch applied. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
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