commit | 01d121b5ef4c5e50e72c57a6de8728807d7d7c6f | [log] [tgz] |
---|---|---|
author | Wladimir J. van der Laan <laanwj@gmail.com> | Tue Nov 15 08:26:05 2016 +0000 |
committer | Wladimir J. van der Laan <laanwj@gmail.com> | Tue Nov 15 08:37:15 2016 +0000 |
tree | d37f22c41d3aafb63f939419bf6b184a28461434 | |
parent | 0cb828bb3bb111a6f5c76fa04180c01107823145 [diff] |
Properly pass RELOC_READ/WRITE flags when writing bo address This code was inherited from the drm test, which always uses RELOC_READ. I replaced it with always using RELOC_WRITE. Neither is good, this needs to be set based on usage.
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