commit | 0fa23840d35ec07ac182be6effe8d3eff5cb2d9f | [log] [tgz] |
---|---|---|
author | Piers Daniell <pdaniell@nvidia.com> | Fri Jun 03 12:21:00 2022 -0600 |
committer | Piers Daniell <pdaniell@nvidia.com> | Fri Jun 03 22:48:12 2022 +0000 |
tree | 6e88dba340c47584bf0feebab0edc917c11332be | |
parent | b9ef019cfc375976f0d217b125bc97bbb304848e [diff] |
Fix regression from CL-9387 to handle empty cache properly The new program cache code from CL-9387 didn't handle the case where cacheSearch() is called with an empty cache. It would look at the first node key regardless, which is uninitialized data, and attempt to follow the left/right node pointers, which were also uninitialized. This could result in crash or worse. This CL simply checks if the cache is empty, and if so doesn't attempt to read the invalid first node. Affects: * (all tests with shaders) VK-GL-CTS issue: 3565 Components: Vulkan, Framework Change-Id: Ia813d8caf3170b0c1995bdc43a5f345b578ab615
This repository contains a GPU testing suite called dEQP (drawElements Quality Program). dEQP contains tests for several graphics APIs, including OpenGL ES, EGL, and Vulkan.
Up-to-date documentation for dEQP is available at:
The .qpa logs generated by the conformance tests may contain embedded PNG images of the results. These can be viewed with scripts/qpa_image_viewer.html
, by opening the file with a web browser and following its instructions, or using the Cherry tool.
This repository includes Khronos Vulkan CTS under external/vulkancts
directory. For more information see Vulkan CTS README.
This repository includes Khronos OpenGL / OpenGL ES CTS under external/openglcts
directory. For more information see OpenGL / OpenGL ES CTS README.
ANGLE can be built for Android by following the instructions here.
The resulting ANGLE shared object libraries can be linked against and embedded into dEQP.apk
with the --angle-path
option. This will cause dEQP.apk
to use the ANGLE libraries for OpenGL ES calls, rather than the native drivers.
An ABI must be specified and the directory structure containing the ANGLE shared objects must match it so the build system can find the correct *.so
files.
Assuming ANGLE shared objects are generated into ~/chromium/src/out/Release/
and dEQP.apk
will be generated with --abis arm64-v8a
, issue the following commands:
cd ~/chromium/src/out/Release/ mkdir arm64-v8a && cd arm64-v8a cp ../lib*_angle.so .
The --angle-path ~/chromium/src/out/Release/
option can then be used to link against and embed the ANGLE shared object files. The full command would be:
python scripts/android/build_apk.py --sdk <path to Android SDK> --ndk <path to Android NDK> --abis arm64-v8a --angle-path ~/chromium/src/out/Release/