Avoid advertising disabled robustness2 features Make sure getRobustness2FeaturesEXT does not advertise a feature as enabled when, in fact, the feature has been disabled when creating the default test device in the context. This is consistent with the behavior that was in place for robustBufferAccess. In addition, disable image robustness in the default device, to be consistent with the existing behavior for robustness2 features and robustBufferAccess. This means robustness2 and image robustness tests needed to be modified to stop relying on feature checks from the context, like using getRobustness2FeaturesEXT, because those will now be reported as not enabled. In other words, feature getters from the context report features that are *enabled* on the default device, and not features that are merely available. In addition, make robustness2 and image robustness tests use separate devices when enabling image robustness or robustness2 features, so as to run image robustness tests without any robustness2 feature. In addition, require and enable the scalar block layout feature, which is used to compile every shader in this test group. Affected tests: dEQP-VK.robustness.robustness2.* dEQP-VK.robustness.image_robustness.* Components: Vulkan VK-GL-CTS issue: 2634 VK-GL-CTS issue: 2643 Change-Id: I641c0f6f659a89bd12a36da175358d3edc2dfeae (cherry picked from commit cea5003e0f519dff9d9ce6805a4994ebfde5e4f2)
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 the dEQP is available at Android Open Source Project site.
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/