• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Running dEQP with Gfxstream
2
3## dEQP-(EGL|GLES2|GLES3)
4
5TODO
6
7## dEQP-VK
8
9### Linux
10
111. Build Gfxstream
12
13   ```
14   cd <YOUR aosp-main DIRECTORY>
15   source build/envsetup.sh
16   lunch aosp_cf_x86_64_phone-trunk_staging-userdebug
17   m libgfxstream_guest_vulkan_with_host
18
19   # Edit hardware/google/gfxstream/guest/vulkan/gfxstream_icd.json 's
20   # "library_path" value to point to
21   # "<YOUR aosp-main DIRECTORY>/out/host/linux-86/lib64/libgfxstream_guest_vulkan_with_host.so"
22   ```
23
241. Build dEQP
25
26   ```
27   mkdir github-deqp
28   cd github-deqp
29   git clone https://github.com/KhronosGroup/VK-GL-CTS .
30   python3 external/fetch_sources.py
31   mkdir build
32   cd build
33   cmake -DCMAKE_BUILD_TYPE=Debug ..
34   make -j
35   ```
36
371. Build Nested Vulkan Loader
38
39   ```
40   ./scripts/build-nested-vulkan-loader.sh
41
42   # Run the "export" command printed in the output of the above script.
43   ```
44
451. Run dEQP with Gfxstream ICD
46
47   ```
48   VK_LOADER_DEBUG=all \
49   VK_ICD_FILENAMES=<YOUR aosp-main DIRECTORY>/hardware/google/gfxstream/guest/vulkan/gfxstream_icd.json \
50   GFXSTREAM_VK_LOADER_DEBUG=all \
51   GFXSTREAM_VK_ICD_FILENAMES=/etc/vulkan/icd.d/nvidia_icd.json \
52   <YOUR github-deqp DIRECTORY>/build/external/vulkancts/modules/vulkan/deqp-vk \
53       --deqp-case=dEQP-VK.api.smoke*
54   ```