commit | 82d15854fd6a1053a7f1b4fb3aa1e45124702cb0 | [log] [tgz] |
---|---|---|
author | Wladimir J. van der Laan <laanwj@gmail.com> | Thu Nov 10 07:29:33 2016 +0000 |
committer | Wladimir J. van der Laan <laanwj@gmail.com> | Thu Nov 10 07:29:33 2016 +0000 |
tree | 1f7e79c5427285d9d3845eed48c0a5bfceba0b0b | |
parent | 7ab352536961548e54f11e326556ae5ee97be838 [diff] |
Use an entire register for inputs/output Tests GPU code now takes input 1 from t2 and input 2 from t3, and outputs to t4. The entire 4x4-byte vectors are read from the input and written to the output. This makes it possible to test the 4-wide behavior of instructions, not just scalar operations. It also makes the test code easier to read.
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