Vulkan CTS 1.4.7.0

Tests for New Extensions:

 * VK_KHR_maintenance11
 * VK_KHR_device_fault
 * VK_KHR_shader_abort
 * VK_KHR_shader_constant_data
 * VK_KHR_opacity_micromap
 * VK_KHR_extended_flags
 * VK_KHR_video_encode_feedback2
 * VK_EXT_primitive_restart_index
 * VK_EXT_shader_split_barrier
 * VK_EXT_multisampled_render_to_swapchain
 * VK_EXT_shader_ocp_microscaling_types
 * VK_EXT_image_tiling_control
 * VK_EXT_cooperative_matrix_maintenance1
 * VK_KHR_pipeline_library_group_handles

New Tests:
 * Test xfb with nonzero counterBufferCount and null pCounterBuffers
 * Add transfer and compute queue coverage to the host image copy tests
 * Use DGC to set descriptors with Descriptor Heaps
 * Add pipeline input_attribute_offset tests for two vec4 bindings
 * Test of vkCmdSetRenderingAttachmentLocations func
 * Tests for VK_EXT_cooperative_matrix_maintenance1
 * Add MSRTSS tests with garbage attachment and 4 samples
 * Decouple occlusion and timestamp queries in multiview tests
 * Test FSR with DS attachments having a non-zero base layer
 * Test non buffer aligned descriptor heap bindings
 * Add image aliasing, external memory and specialization constants tests to VK_ARM_data_graph
 * Add tests for resubmitting cmd buf with xfb
 * Add descriptor heap tests with OpQueryImageSize
 * Add test for inherited occlusion query without active primary query
 * Test FSR with DS mipmaps without requiring DS writes
 * Test using shared memory with ray queries
 * Verify implicit store operation with custom resolves
 * Make tess_factor_barrier_bug a native non-Amber test
 * Add VK_AMD_gpa_interface tests
 * Tensor Descriptors Array Indexing Testing
 * Test heaps with small buffers
 * Test that VK_KHR_pipeline_binary blob keys are unique
 * Evaluate 256-bit sparse format tests.
 * Test using push data before drawing with non heap shader objects
 * Test heap with untyped samplers in secondary command buffer
 * Test vkGetPhysicalDeviceDescriptorSizeEXT with all descriptor types
 * Test vkEndTransformFeedback with null buffer and non-null count
 * Test that denorm operations can reorder without NoContraction
 * Test VK_GEOMETRY_INSTANCE_TRIANGLE_FLIP_FACING_BIT_KHR is preserved
 * Add tests for null pipeline states
 * Add OpUndef tests
 * Check VK_EXT_mesh_shader property limits
 * Cover LRZ read/write disable with suspend/resume and secondaries
 * Add more heap tests with secondary command buffers
 * Test descriptor heap with VkImageViewUsageCreateInfo
 * Test PrimitiveID matching between tess and geom shaders
 * Add compute and transfer queue smoke tests to the API module
 * Add tests for common non-uniform index
 * Tensor floating point testing
 * Tensor image aliasing testing
 * Add untyped heap tests with non uniform indexing
 * Test legacyVertexAttributes with DAC
 * Add test for GPL cache collision with different samplers
 * Test non-zero first vertex and instance with tessellation
 * Test capture/replay with null sparse buffer
 * Add GPL and shader object variants of DRLR tests
 * Add image atomic tests with descriptor heap
 * Add image atomic tests with different binding models
 * Add opacity micromap tests that have more than one triangle.
 * Test OpImageQuerySize on storage images
 * Test binding shaders with mismatched heap flags
 * Add more coverage for VK_QCOM_image_processing
 * Test indirect dispatches with no work groups
 * Test copying structs with bufferDeviceAddress
 * VK_KHR_maintenance11 shader object independent sets tests
 * Add new tests to VK_ARM_data_graph and improve TOSA SPIRV generator
 * Test more complex test for VK_EXT_memory_budget
 * Test synchronization and copying to heaps
 * Add ycbcr conversion tests with different heap mappings
 * VK_KHR_maintenance11 image transfer granularity checks
 * Test handleTypes = 0 in VkExportMemoryAllocateInfo struct
 * VK_KHR_maintenance11 tests for image arrayness mismatch
 * Add heap test with push index mapping covering multiple descriptors
 * VK_KHR_maintenance11 tests for relaxed offset copies on transfer-only queues
 * Descriptor Heap Custom Border Color Tests
 * Opacity micromap index types and update
 * Add test for VK_EXT_external_memory_host that binds buffer at an offset
 * maint11: Enable depth clamp + clip extended dynamic state tests
 * Test image layout transition and using VK_QUEUE_FAMILY_EXTERNAL
 * Add input_attachment_coherency.test in renderpass module
 * Tensor robustness testing
 * Tensor Update After Bind Testing
 * Test clipping primitives query with cull mode front and back
 * Test heaps with 0 stride and partially set push data
 * Add coverage for large/off-center viewports
 * Add ycbcr tests with descriptor buffer and heap
 * Test input assembly statistics queries with primitive restart
 * Add VK_KHR_device_fault tests
 * Exercise simultaneous (DRL)read and write of depth/stencil
 * Add tests for enumerating arrays
 * Resolve device lost issue in VK_KHR_device_fault
 * Add test for discreteQueuePriorities
 * Tests for VK_EXT_primitive_restart_index
 * Test combined image sampler where only one of image and sampler is untyped
 * Coverage for EXT_pipeline_robustness with OOB index buffer
 * Add loop_unroll_hoisting test case in shaderrender module
 * Add VK_VALVE_fragment_density_map_layered tests
 * Split dynamic rendering basic tests to individual runs
 * Test DGC with multiview
 * Tests read-write image consistency in shaders
 * More VK_EXT_primitive_restart_index tests
 * Add copy object at the end of access chain test
 * Test precise size of descriptors in descriptor heap
 * Test RoundEven SPIR-V op with RTZ rounding mode
 * Video: AV1 MiColStarts/MiRowStarts unit correctness
 * Tests for VK_EXT_shader_ocp_microscaling_types
 * Tensor features, limits and required formats
 * Port maintenance11 independent set tests to support pipeline libraries
 * Add HIC tests with BC formats and padding
 * Mesh shader vertex state tests
 * Add descriptor heap copy object test
 * Add multiple access chain test with device addresses
 * Add tests for VK_EXT_shader_split_barrier
 * Add more coverage for sparse buffer null address tests
 * Add tests for serializing OMMs with KHR
 * Add test case for 32-bit indexing on storage texel buffer atomic operations
 * Add opacity micromap query pool tests
 * Add tests for minSampleShading value
 * Test statistic queries with DGC
 * Add test case for nested integer bitwise literal shifts
 * mesh_shader: add per_prim_block_output test
 * Adding a test case in ShaderExecutor module
 * Video: Update Vulkan-Video-Samples to v0.4.4
 * Add tests for VK_EXT_image_tiling_control
 * Test descriptor heap with untyped acceleration structures
 * Test passing VkPipelineRenderingCreateInfo only to the frag out lib
 * Add test case for integer bitwise operations on swizzled vectors
 * Test AV1 encode I_P GOP at large resolutions
 * Add usampler2D 16-bit truncation test in shaderrender
 * Add descriptor heap test with drawn input attachment
 * Test OpInBoundsAccessChain with ray queries
 * Video: update video generator version to v0.1.1
 * Rebind primary command buffer
 * Test DGC with ray tracing and conditional rendering
 * Test variable descriptor count allocation
 * Add test case for OpLine and image OpVariable.
 * Test resolving into 3D image
 * Add physical storage buffer access chain test
 * Test using currentTransform while rotating screen
 * Add coverage for 0 draw count
 * Add VK_KHR_extended_flags tests
 * Add dEQP test for RemoveSingleEntryGlobalLoadPass
 * Verify dynamic rendering custom resolve loads only apply to multisample
 * Test sparse null addresses with descriptor heaps
 * Additional coverage for custom resolves
 * Add test for VK_EXT_debug_marker
 * Add more heap tests with GPL
 * Test robust buffer access for VK_EXT_shader_long_vector
 * Add coverage for low-resolution-z optimization
 * Add tests for multidimensional arrays with untyped pointers
 * Test blits between 2D arrays and 3D more thoroughly
 * Add VK_KHR_video_encode_feedback2 tests
 * Extend coverage for low-resolution-z optimization
 * Adds compute and transfer-only variant of memory pipeline barrier tests
 * Add tests with events using vertex pipeline stage
 * Test input attachment mapping compatibility
 * Add non compute variants of descriptor heap binding_mapping tests
 * Null micromap handle tests for opacity micromap
 * Add remaining_array_layers.3d_texture_view_transition test case in renderpass module
 * Add tests for VK_KHR_opacity_micromap
 * Add DRLR test with only color attachment output
 * Add tests to render to YCbCr image planes
 * Tests unused builtin outputs with EXT_shader_object/GPL
 * Test OffsetIdEXT with implicit zero indexing descriptor heap
 * Tests index buffer robustness for 16-bit and 8-bit indices
 * Add tests for VK_EXT_multisampled_render_to_swapchain
 * Add MSRTSS emulation over DRLR test
 * Add a heap test with indirect address mapping pointing to itself
 * Tests for VK_KHR_shader_constant_data
 * Add tests for quad derivates with larger work groups
 * Test input attachment resource mask with heaps
 * Add mixed_sample_count_subpasses test case in renderpass module
 * Descriptor Heap - Port "Random" descriptor tests.
 * Add tests for non-uniform and MAPPING_SOURCE_HEAP_WITH_SHADER_RECORD_INDEX_EXT
 * Add coverage for ignoring D/S aspect mask
 * Test undefined outputs with dual blending
 * Verify helper data persistence in shader local array
 * Test descriptor heap with untyped pointers and matrices
 * Adds more Ray tracing SER tests
 * Add tests for OOB
 * Add heap test to call untyped buffers into a function
 * Add test for oob unmapped access
 * Test vkCmdCopyMemoryToImageKHR with maintenance11
 * Test sequential timestamps with different pipeline stages
 * Add tests for capture replay for OMM
 * Test untyped pointers are supported if descriptor heap is
 * Adds compute-only variant of glsl built in tests
 * Adds compute-only variant of ShaderCase based glsl tests
 * Add heap tests with convert-to-untyped
 * Test memory with dual DMA buffer and opaque FD usage
 * Add descriptor heap tests with pipeline robustness
 * Add VK_PIPELINE_LAYOUT_CREATE_NO_TASK_SHADER_BIT_KHR to maint11 tests
 * Add transfer-queue coverage to the device group tests
 * Add descriptor heap test with 8-bit ssbo
 * Test fill and update buffer with bind memory offsets
 * Test DAC-created acceleration structure operations
 * Add OVERESTIMATE FullyCoveredEXT multisample variants
 * Test VK_IMAGE_CREATE_ALIAS_SINGLE_LAYER_DESCRIPTOR_BIT_KHR harder
 * Add coverage for VK_KHR_pipeline_library_group_handles

Fixes:
 * Require VK_NV_cooperative_matrix2 for coopmat_64b_tensorlayout
 * video: Fix validation error for empty video session memory requirements
 * Fix dynamic state tests that verify depth clipping
 * Add transfer-queue and compute-queue support to drm modifiers tests
 * Fix validation errors in descriptor heap tests
 * Fix validation error in heap uniform buffer tests
 * Avoid early out in texture query test cases
 * Update descriptor heap limits test
 * Fix stencilLoadOp in depth_stencil_msaa_copy tests
 * Remove USCALED/SSCALED formats from texture sampling tests
 * Fix AS build size query ignoring geometry transforms
 * Fix push descriptor incremental_updates tests
 * Refix failed memory map check for reconvergence tests
 * Make specialization data unique for each shader
 * Fixing dEQP-VK.sparse_resources.image_sparse_residency multiplanar tests
 * Avoid early-out in tessellation invariance tests
 * Missing UNSIGNED_INT_11F_11F_10F_REV for getPixelInt()
 * Fix synchronisation for shading rate images
 * Use per-slot single-layer DPB views instead of shared image view array
 * Video: Propagate DE_BUILD_VIDEO to deqp-vk-custom-instances-devices-util
 * Remove unused buffer of reference type
 * Fix 32-bit build crashes in 64-bit indexing tests
 * Add hitAttributeEXT closest hit correctness test for procedural geometry
 * Allow different C and R matrix types in OpConstantNull tests.
 * Update amber reference in fetch_sources.py
 * Fix leak of drmDevicePtr array in linux DRM display platform
 * Add missing memory barriers and invalidates in shader object tests
 * Remove invalid tests for VK_FORMAT_E5B9G9R9_UFLOAT_PACK32
 * Adds MultiQueueRunner support for indirect dispatch tests
 * Re-add not supported throw for external memory dup tests
 * Fix for wsi maintenance 1 tests
 * Video: Fix 10-bit encode support
 * robustness: allow nullDescriptor without buffer/image robustness2
 * Use non-NaN values in image to image copy tests
 * Handle out of memory in SSBO 64-bit indexing tests
 * Fix BCx decompressor global buffer overflow
 * Video: Fix PSNR computation and use coded bit depth as peak value
 * Fix checkSupport logic for optional acceleration structures
 * VVL errors fixes found during Mock ICD desktop profile 2024 execution
 * Remove depth bias control tests with invalid params
 * Run reserved heap tests even when reseved ranges are zero
 * Fix ray query wrapper function parameters
 * Remove dual blend tests with undefined inputs
 * Fix validation error in texel_view_compatible tests
 * Fix VVL errors 06811 in video encoding tests.
 * Reduce imageExtent in vktMemoryExternalMemoryAcquireUnmodifiedTests to avoid timeout
 * Add missing memory flushes in conditional_ignore tests
 * Fix VUID-vkCmdTraceRaysKHR-pHitShaderBindingTable-04735 in closest-hit ray query test
 * Rework shader submits in large RT Pipeline tests
 * Fix OOB resource heap write for descriptor heap vectors tests
 * Fix "Various VUID fixes for WSI tests" patch
 * Fix primary_rebind_diff_layouts color write mask bug
 * Video encode: Skip decode-back verification on encode-only devices
 * Fix regression in image compression control tests
 * Update test which relies on undefined behavior
 * Add missing barrier in primary_rebind_diff_layouts pipeline library tests
 * texture: Reset command pool before re-recording in VulkanSC
 * Skip primitive_restart_index tests when pipeline construction is unsupported
 * video: zero format return with VK_SUCCESS should report test failure, not assert
 * Touch watchdog for protected memory allocations
 * Fix geometry type for shader record block ray tracing tests
 * Fix flushing memory in invalid_descriptor_tests
 * Fix descriptor indexing module buffer overflow errors
 * Prefer non-device-local memory for host staging buffers in copy MSAA tests
 * Update custom border comp-only tests
 * VVL errors fixes found during Mock ICD execution
 * Fix another object reservation count due to early out
 * Fix verification shader in dgc dynamic a2c tests
 * Fix VUs and naming for OMM
 * Fix DRM device list leak in WSI and display platform
 * Fix ray query null_as capabilities id
 * Fix and refactor fragment shading rate tests
 * Fix indirect count buffer initialization in indexed draw tests
 * Add missing check for geometry shader in primitive_restart_index tests
 * Fix alignment in descriptor heap robustness tests
 * Fix validation errors in input attachment mapping tests
 * Fix OOB memory access in buffer device address tests
 * Fix VUID-vkCmdDraw-None-09600 in general_layout encode tests
 * Fix checkSupport in heap image atomic tests
 * CTS fixes found during Mock ICD execution
 * Add missing checks in cooperative vector tests
 * Touch watchdog timer in various tests
 * Fix image extent used in deviceGroupRenderTest2
 * Store video test dump in a common video_dump folder
 * Fix multiview support checks in draw_indirect_multiview tests
 * Remove invalid HIC tests
 * Allow a small tolerance for depth values in FSR testing
 * Fix synchronization error in descriptor heap input attachment test
 * Update checkSupport in tests resolving to 3d image
 * Fix instance lifetime in protected memory wsi swapchain tests
 * Fix early outs in multi-queue tests
 * Touch watchdog for protected memory frees
 * Fix picture parameter session binding and remove trigger hack
 * Test maxPushDataSize is not less than maxPushConstantSize
 * Check for compute queue support
 * Fixing dEQP-VK.video.decode.av1.allintra_nosetup_8_separated_dpb validation
 * api: Skip buffer device address usage when feature is unsupported
 * Correct index buffer robustness tests for 16-bit and 8-bit indices
 * Fix ray tracing module buffer overflow errors
 * Fix image labels
 * Remove tests with DS MSAA copies on non-graphics queues
 * Fix verifyFeature causing assertions in Vulkan SC CTS debug builds
 * Add shared memory property check in long vector tests
 * Reduce sample density in explicit_lod 2d size tests
 * Remove degenerate triangles from query pool tests
 * Fix no-queue tests using optional YCbCr format
 * Reduce spirv_assembly test memory consumption
 * Fix spirv assembly module buffer overflow errors
 * Allow OOM conditions to report Not Supported
 * Fix absolute PresentAt base stage selection
 * Re-enable VK_EXT_shader_split_barrier shader tests
 * Fix pipeline module buffer overflow errors
 * Clarify the Vulkan CTS package filename for fractional submissions
 * Add missing renderpass2 and dynamic_rendering extension checks
 * Fix buffer marker capabilities id issue
 * fetch_sources.py: Fix missing usage of fallback URL
 * Fix multiple warnings when building with recent Clang and GCC versions
 * Fix VulkanSC-pcutil build location
 * Fix int/str tuple type mismatch in gen_framework.py
 * Add #include <algorithm> in tcuSubprocessTestExecutor.cpp
 * query_pool: Fix object reservation count due to early out
 * Make spirv-binaries step fail on fraction build failures
 * vulkansc: Fix silently dropped mustpass test cases
 * Add missing video alias
 * Fully defer Vulkan video session parameter realization to decode time
 * Include <cmath> for std::abs(float) in vktBindingStagesTests
 * Disable VK_EXT_shader_split_barrier shader tests
 * Framework: Add DE_BUILD_VIDEO to deqp-vk-custom-instances-devices-util
 * Fix Android release build
 * framework: Guard the Vulkan SC pipeline cache map
 * Fix wrong package class registered for KHR-Single-GL46
 * Do not enable VK_KHR_imageless_framebuffer on Vulkan SC
 * Remove bogus "external command pool" from texture function tests
 * Fix build issue
 * Fix MSVC build error in tcuMustpassGen
 * Fix duplicated used bit in copies and blitting util
 * Skip compute stage for implicit-LoD non-uniform offset tests
 * Initialize memory properties in descriptor heap tests
 * Fix spelling of message
 * Fix early out in concurrent submission test
 * Avoid early out in image compression test cases
 * Skip Vulkan parameters template when it belongs to a different session
 * Fix assert when waiver list is empty for a package
 * tessellation: Fix pipeline reservation from early outs
 * Fix support for pipeline creation extensions in Vulkan SC
 * Fix warning in OpenGL ES 3.2.14 branch
 * Fix multiple warnings in the OpenGL ES 3.2.13 branch
 * Do not invariably crash after running any test on Linux
 * Fix build with recent compilers
 * Fix and re-enable null shading rate attachment tests
 * Fix broken build on the main branch
 * Floor in density map equation
 * Modify some of the descriptor heap tests to use device local memory
 * Do not create devices with non-empty layer list
 * Don't bind sampler heap in some of embedded sampler tests
 * Use separate device to capture than replay BDAs
 * Add missing #include <algorithm> in tcuSubprocessTestExecutor.cpp
 * Allow extra formats to support atomic operations
 * Remove stale cooperative matrix transpose test type entries
 * Remove ptr_access_chain.workgroup_bad_stride from mustpass
 * Fix descriptor heap replay ray tracing tests VU violation
 * Work around MSVC18 optimizing compiler bug
 * Fix custom resolve att_index_change regression with volatile parameters
 * Fix synchronization in D/S resolve
 * Fix layout and memory overlap errors in modifier tests
 * Remove vkVulkan_c.inl files re-added by a dev branch merge
 * Remove gen_framework_c.py call from the framework CMakeLists.txt
 * Link Vulkan-Video-Samples shaderc statically

Improvements:
 * Check requirements in checkSupport, part 10 (api module)
 * Check requirements in checkSupport, part 11 (binding_model module)
 * Check requirements in checkSupport, part 12 (conditional_rendering module)
 * Check requirements in checkSupport, part 13 (wsi module)
 * Don't import Vulkan Object components in gen_framework
 * Remove virtual interface from Resource
 * Refactor optional video sample fetcher and refresh checksums
 * Generate mustpass files in dEQP-* test binary (~5x speedup)
 * Fix build warnings
 * Framework: don't treat profile optionals as required
 * Support dEQP execution on a provided Surface via JNI
 * android: Implement headless WSI fallback using AImageReader
 * Remove the need for gen_framework_c.py
 * Ignore empty lines and comment in group files
 * build_spirv_binaries: optional parallel execution via --deqp-fraction
 * Support mixed C/R matrix types in OpConstantNull tests via vendor-specific mode
 * Removes --deqp-compute-only flag from CTS
 * Sort TestCase children by name as the tree is built
 * Add flags to control watchdog timer thresholds
 * Add --deqp-amber* CLI arguments
 * Generalize the subprocess test executor
 * Refactor custom device creation with proper abstraction
 * Update to Vulkan 1.4.364 and all external sources
 * check_build_sanity: make spirv-binaries parallelism configurable
 * framework: Forward SC support stub to the real driver
 * Enable surface on custom instances using swapchain
 * List instance extensions explicitly in gen_framework
 * Point glslang at new opacity micromap ray query mode impl
 * VulkanSC-pcutil integration
 * mustpass: prune obsolete generated files no longer emitted by the scripts
 * video: remove identical...yuv file
 * Split mustpass groups recursively and regenerate
 * Allow VulkanSC CTS 1.0.4.0
 * Framework for VK_KHR_maintenance11
 * Remove unneeded workarounds from gen_framework
 * Update spirv-tools for VK_EXT_shader_ocp_microscaling_types
 * Allow conformance version 1.4.7.0
 * Add CTS withdrawal notice for Vulkan CTS 1.4.3.x
 * fetch_sources: point glslang at merged GitHub commit
 * video: improve DEQP_DISABLE_VK_VIDEO_TESTS=ON detection
 * vulkansc: update gen scripts for latest SC header
 * Remove two obsolete files
 * Make sure CMake files use tabs in the .editorconfig file
 * Use -frounding-math by default with GCC
 * Remove duplicate DRLR tests
 * Miscellaneous tensor testing improvements
 * Increase minimum Android API version to 34
 * Framework: Ephemeral IPC port for VKSC subprocess
 * Framework for VK_KHR_pipeline_library_group_handles
 * Add VK_KHR_pipeline_library_group_handles to gen_framework list
Link Vulkan-Video-Samples shaderc statically

Vulkan-Video-Samples v0.5.0 links its encoder against a shared shaderc: the Vulkan SDK's shaderc_shared when VULKAN_SDK is set, otherwise a shaderc_shared built in the build tree. deqp-vk then fails to start on machines without the Vulkan SDK (on Linux it looks for libshaderc_shared.so.1 through a RUNPATH into the build directory), and Win32 and ARM64 builds link against the SDK's x64 library.

Move Vulkan-Video-Samples to the head of VVS PR 254, which adds USE_STATIC_SHADERC, and set that option in the CTS wrapper. shaderc is built from source against the CTS glslang and SPIRV-Tools targets and linked into deqp-vk, so the encoder keeps its compute filter and deqp-vk has no shaderc runtime dependency.

Drop the wrapper's shaderc status message: FindShaderc already reports the library and its linkage, and the old message read a cache variable that can be stale.

Before merge, fetch_sources.py must move from the PR branch in the dabrain34 fork to the Vulkan-Video-Samples release that includes PR 254.

Affects: dEQP-VK.video.encode.*

Components: Vulkan

VK-GL-CTS issue: 6978

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: I45e769e6b51038fcfbbcd5707bbbc23af4c334af
2 files changed
tree: c98bb17726784d017284990f57ed20dfe8ecc99d
  1. .github/
  2. android/
  3. data/
  4. doc/
  5. execserver/
  6. executor/
  7. external/
  8. framework/
  9. modules/
  10. scripts/
  11. targets/
  12. .clang-format
  13. .editorconfig
  14. .gitattributes
  15. .gitignore
  16. AndroidGen.bp
  17. AndroidKhronosCTSGen.bp
  18. CMakeLists.txt
  19. CODE_OF_CONDUCT.md
  20. format_all.sh
  21. LICENSE
  22. METADATA
  23. MODULE_LICENSE_APACHE2
  24. NOTICE
  25. OWNERS
  26. README.md
README.md

VK-GL-CTS README

This repository contains Khronos Conformance Testing Suite called VK-GL-CTS which originated from dEQP (drawElements Quality Program). VK-GL-CTS contains tests for several graphics APIs, including OpenGL, OpenGL ES, EGL, Vulkan, and Vulkan SC.

Documentation

Up-to-date documentation for VK-GL-CTS 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.

Khronos Vulkan Conformance Tests

This repository includes Khronos Vulkan CTS under external/vulkancts directory. For more information see Vulkan CTS README.

Khronos OpenGL / OpenGL ES Conformance Tests

This repository includes Khronos OpenGL / OpenGL ES CTS under external/openglcts directory. For more information see OpenGL / OpenGL ES CTS README.

Selecting a subset of targets to build by default

When configuring the source code of VK-GL-CTS for running either Vulkan Conformance Tests or OpenGL(ES) Conformance Tests as described above, CMake will generate build files that, by default on desktop platforms, will build every possible project binary. This may be undesirable due the amount of time and disk space needed to perform the build.

One way of selecting only a subset of the targets to be built is using CMake's target selection mechanism. For example, the following command will only build deqp-vk, the main Vulkan Conformance Tests binary:

cmake --build BUILD_DIRECTORY --target deqp-vk

When building only a subset of targets is the preferred default behavior for a given working copy or build directory, there's a second target selection mechanism that can be used to avoid passing the --target option every time: the SELECTED_BUILD_TARGETS CMake option. If set to a non-empty value, only the targets listed in that configuration option, separated by spaces, will be built.

For example, passing -DSELECTED_BUILD_TARGETS="deqp-vk deqp-vksc" when configuring the project will make cmake --build BUILD_DIRECTORY act as if it had been passed --target deqp-vk --target deqp-vksc as additional arguments.

IMPORTANT: Target subset selection may not have been thoroughly tested in all enviroments and situations, and it does not replace the instructions given for the purposes of creating a conformance submission.

ANGLE for Android

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/

Vulkan Video Samples

In order to run the vulkan video decode test suite, you'll need to run the script external/fetch_video_decode_samples.py prior building and running any test suite such as dEQP-VK.video.decode.*. It will download the video clips in external/vulkancts/data/vulkan/video.

To run the vulkan video encode test suite, you'll need to run the script external/fetch_video_encode_samples.py prior building and running any test suite such as dEQP-VK.video.encode.*. It will download the video clips in external/vulkancts/data/vulkan/video.