Vulkan CTS 1.4.6.0

Tests for New Extensions:

 * VK_EXT_shader_long_vector
 * VK_EXT_ray_tracing_invocation_reorder
 * VK_EXT_texture_compression_astc_3d
 * VK_EXT_shader_subgroup_partitioned
 * VK_KHR_internally_synchronized_queues
 * VK_EXT_map_memory_placed
 * VK_KHR_device_address_commands
 * VK_EXT_descriptor_heap
 * VK_KHR_device_fault
 * and Roadmap 2026

New Tests:
 * Test secondary command buffers on the transfer queue
 * video: add AV1 golden frame decode test
 * Adds compute-only variant of global priority transition tests
 * Adds compute-only variant of explicit lod tests
 * Adds compute-only variant of ycbcr tests
 * Adds compute-only variant for ubo tests
 * Adds compute-only variant of sampler tests
 * Adds compute-only variant of device group tests
 * Adds compute-only variant of texture gather tests
 * Adds compute-only variant of depth stencil sampling tests
 * Adds compute-only variant of texture tests
 * Adds compute-only variant of texture functions tests
 * Adds compute-only variant of sampler border swizzle tests
 * Adds compute-only variant of pipeline early destroy tests
 * Adds compute-only variant of robustness pipeline cache tests
 * Adds support for compute only for robustness
 * Adds compute-only variant of ImageSamplingInstance based pipeline tests
 * Generalize IndirectComputeDispatchTests for device_address_commands
 * Test that occlusion queries are not affected by blits or resolves
 * Add DMA heap allocator on Linux with basic tests
 * Test DRLR with MSAA
 * Add mesh shader tests with unset payload that is not accessed
 * Complex access chains involving runtime arrays
 * Test if viewMask is needed in the fragment output library
 * Test using depth and color images after memory copies
 * Test an MS copy followed by an SS copy in the xfer queue
 * Avoid duplicating too much memory in SpvAsm cases
 * Add tests for 1 draw count
 * Generalize RobustnessIndexAccessTests for device_address_commands
 * Generalize ApiCopiesAndBlittingTests for device_address_commands
 * Do not required cached memory in some basic compute tests
 * Add tensor testing with DMA-buf imported memory
 * Split out extension-dependency checks to own test
 * Log compressed images on failure in image to buffer tests
 * Tests for VK_QCOM_multiview_per_view* extensions
 * Additional coverage for capture/replay with custom border color
 * Test more interesting values for alpha in dual blending
 * Test 8-bit indices with multiple binds and draws
 * Extend VkMemoryRangeBarriersInfoKHR testing
 * Test creating a pipeline with 64 bit indexing with untyped pointers
 * Add new VK_EXT_present_timing testcases
 * Test mixing pipelines in primares with ESO in secondaries
 * Test updating an index buffer just before drawing with it
 * Test buffer-to-image with 64-bit formats
 * Test copy memory indirect with larger chunk sizes
 * Add buffer robustness tests using VK_EXT_descriptor_heap
 * Add poison values to RT memory when possible
 * Test VK_REMAINING_ARRAY_LAYERS with depth/stencil
 * Add coverage for sampling astc hdr textures
 * Add testing of VK_ARM_tensors extension
 * Test gl_FrontFacing with face culling
 * Add complex geometry acceleration structure tests
 * Generalize QueryPoolTests for device_address_commands
 * Add tests for remap to high locations
 * Add HIC test with capture replay
 * Add DGC tests using VK_EXT_descriptor_heap
 * Test rebinding shaders with different tessellation modes
 * Add random value testing to coopvec typeconvert tests.
 * Add VK_EXT_texture_compression_astc_3d tests
 * Test different payload types in task and mesh shaders
 * Test COPY_PROTECTED_BIT for device_address_commands
 * Add tests for unused attachments
 * Tests for VK_EXT_shader_long_vector
 * Test clearing some attachments but not all
 * Test dynamic rendering clears with large images and multiview
 * Stricter filter for input values in OpSDiv tests
 * Use unsized arrays in UBO unsized array tests
 * Add tests for VK_EXT_shader_invocation_reorder
 * Add tests for VK_KHR_internally_synchronized_queues
 * Test isnan and isinf with float16 and float64
 * Add more coverage for sparse residency
 * Tests mandatory formats support for indirect copy
 * Test local invocation index with quad derivatives
 * Add 'dEQP-VK.ray_tracing_pipeline.pipeline_library.configurations.rgen_miss_in_library.*'
 * Adding a test case for dynamic stride usage where the binding and stride indices do not match.
 * Tests for VK_EXT_ray_tracing_invocation_reorder
 * Generate code for shader_object.binary.device_features.* tests
 * Test more interactions of custom resolves and FDM
 * Add new CTS tests to validate video profiles and formats queried from
 * Test rebinding pipeline in primary cmd buffer after executing secondary
 * Generalize DrawInstancedTests for device_address_commands
 * More coverage for clearing multisample color images
 * Add PhysicalDeviceShaderObjectFeaturesEXT for ssbo test.
 * Shader component decorated interface matching tests
 * Generalize MeshShaderApiTestsEXT for device_address_commands
 * Generalize TransformFeedbackSimpleTests for device_address_commands
 * Add VK_NV_push_constant_bank tests
 * Test storage buffer writes when not using color attachment
 * VideoCapabilities: add VkVideoDecodeUsageInfoKHR
 * Test shader objects with identically defined set layouts
 * Add testing of VK_ARM_data_graph extension
 * Add feature test for VK_EXT_shader_subgroup_partitioned
 * Generalize selected RQ and RT tests for device_address_commands
 * Test using ViewIndex when multiview is disabled
 * Additional coverage for opacity micromap tests
 * Add transform feedback test that binds multiple VS using EXT_shader_object
 * Better NV_coopmat2 setTensorViewClipNV testing.
 * Test push descriptor incremental updates
 * Test variable pointers with MUTABLE_EXT descriptors
 * Test DRLR color location remapping with blending
 * Test OpLogicalCopy of a struct
 * Add dynamic vertex stride tests (device_address_commands)
 * Add coverage for sparse texel buffers
 * Create multiple queues in internally synchronized queues tests
 * Test DRLR in partial secondary command buffers
 * Add single planar to RGBA copy test
 * Add VK_EXT_descriptor_heap tests
 * Check DRM format modifier list consistency
 * Add basic coverage for multiview with multisample resolves
 * Test using ray query before initializing it syntax-wise
 * Generalize ConditionalDrawAndClearTests for device_address_commands
 * Test using MSAA images after copying data to them
 * Test creating shader groups with shaders from RT libraries
 * Touch test acceleration structure geometry transform coverage
 * Generalize ApiFillBufferTests for device_address_commands
 * Test one ray query per invocation with different group sizes
 * Resolve to different offsets and layers with maintenance10

Fixes:
 * Static shader initialization in cooperative matrix op_constant_null tests
 * Fix for ray tracing pipeline triangles indexed update tests
 * Fix invalid size calculation in some of DAC tests
 * Fix build
 * Add descriptor array/indexing feature checks
 * Add constructor for DecodedFrame
 * Fix Waitstages bit for sparse render target tests
 * Enable required extension for Vulkan 1.0
 * Fix copy tests that operate on NaNs in some cases
 * Fix dependency for shader sparse residency
 * Add feature checks to present timing tests
 * Remove testing UNORM decode mode for ASTC HDR formats
 * Fix some VK_EXT_present_timing tests
 * Add missing conditional rendering functionality check
 * Add missing extension check in WSI tests
 * Add missing swapchain image acquire in swapchain_mutable tests
 * Avoid calling m_context methods when m_context is nullptr
 * Fix ASTC block depth initialization
 * Video: fix potential issues in video encode tests
 * Re-do fixes and improvements to maximal reconvergence tests
 * Avoid requiring shaderInt64 in VK_KHR_ray_tracing_maintenance1 tests
 * Add missing memory allocate flags in heap invariance tests
 * Add GPL features to no_position tests needing them
 * Don't add duplicate feature struct to chain
 * Fix crash on 32 bit ARM platforms due to unaligned placement new
 * Video: fix VUID-vkCmdDraw-None-09600 in general_layout decode tests
 * Honor tiling mode for memory to image indirect tests
 * Video: remove TRANSFER_DST from decode output image usage
 * Quantize float16 coopmat MMA references
 * Fix for KHR_display query
 * Video: fix bugs and cleanup in AV1 video encode tests
 * Ignore OOM errors in swapchain min_image_count test
 * Fix dEQP-VK.api.info.vulkan1p4.feature_bits_influence
 * Use all 3 vertex/index binds in a command buffer
 * accept VK_SUBOPTIMAL_KHR as success from vkAcquireNextImageKHR
 * Fix dEQP-VK.api.copy_and_blit.dynamic_state.*
 * Check for Fragment Shading Rate physical device limits
 * Add presentTimingSupported check
 * Fix regression in sparse residency buffer tests
 * VulkanDisplayDirectDrm destructor for DRM direct display
 * Remove relaxed offset test
 * Remove protected memory test
 * Fix maintenance10 feedback loop tests color swizzling
 * Fix thresholds for bfloat16 matrixmuladd tests
 * Reintroduce check for compute
 * Respect strictness when using PRIMITIVESTRICTNESS_IGNORE
 * Use correct device extension list in dynamic vertex attribute tests
 * Include proper device address flag when allocating dedicated memory
 * Enable VK_EXT_device_memory_report image_view* tests
 * Fix crashing when vkAcquireDrmDisplayEXT fails
 * Fix validation errors found on qualcomm turnip
 * Add missing Device Address check in Query Pool Stats tests
 * Fix sample count checking for raster_samples_consistency tests
 * Fix missing SHADER_ADDRESS usage bit
 * Fix invalid descriptor test
 * Fix video decode resolution change crash with layered DPB images
 * Fix VVL errors in VK_KHR_device_address_commands tests
 * Skip video secondary_command_buffer execution tests if the queue doesn't have
 * Adds getShaderImageFormatQualifier() missing format support
 * Fix waiver file messaging
 * Fix transition bug in sampler border swizzle tests
 * Ensure extension is requested before use
 * Fix validation errors in VK_KHR_copy_memory_indirect
 * Fix memory type for host image copy tests
 * Test mix and matching VkBuffer and VkDeviceAddress
 * Match VkImage size and render size for VkBindImageMemorySwapchainInfoKHR
 * Provide non-NULL setup slot for B frame tests
 * Fix enabling features in wsi incremental_present tests
 * Allow VK_NOT_READY as a result of GetSwapchainTimingPropertiesEXT
 * Add 8-bit query check in untyped pointer tests
 * Speedup sparse residency copies
 * Use nullptr in no_queues tests for pQueueCreateInfos
 * Fix SC pipeline cache handling for multi-DeviceDriver case
 * Fix typo in SC core extension list
 * Fix object reservation count due to early out
 * Wipe stale non-git destination before cloning external sources
 * Cannot build CTS with Visual Studio
 * Fix build warning on main
 * Fix debug logging in gen_framework.py
 * Revert "Fix issues related to VVS using system's shaderc"
 * Add missing includes
 * Image format properties tests broken on main
 * Fixed the error in the return value type of deProcess_create
 * Work around SC limitations of CTS feature/property handling
 * segmentation fault due to unsupported extension
 * Add SC-specific device init for BufferToBufferInvertTest
 * Fix enum sorting in gen_framework.py to handle None values
 * Fix for regression in cooperative matrix op_constant_null tests
 * Fix incorrect object reservation for external memory host
 * Keep resource counter stable
 * Update VK_EXT_texture_compression_astc_3d reference
 * Improve sample locations error message
 * Fix device_address_commands tests in draw instanced group
 * Refactor to leverage VideoTestUtils.
 * Rework multisampled render to single sampled tests synchronization
 * Remove unneeded multisample pipeline coverage
 * Delay shader object rendering test case creation to init method
 * Fix geometry program for VK_ARM_performance_counters_by_region
 * Fix Vulkan CTS blit handling of compressed textures
 * Wait for sparse memory binds to finish in host image copy tests
 * Fix for pipeline misc view index from device index mesh shading tests
 * Fix sync issue in VIEW_INDEX_FROM_DEVICE_INDEX GPL tests
 * Mark tensor storage as readonly in graphics pipeline
 * Fix image format support check in robustness tests
 * Skip 64-bit SSBO tests on devices without a >4GB heap
 * Fix a VVL issue in data graph tests using non linear tiling for constants
 * Fix push_descriptor.compute.incremental_updates barrier visibility
 * Check for required extensions during data-graph checkSupport

Improvements:
 * Fix reading case list files with no EOL at EOF
 * Add reporting for Roadmap 2026 support
 * Add DEQP_DISABLE_VK_VIDEO_TESTS CMake option
 * Ignore empty lines in caselist files
 * Check requirements in checkSupport, part 1 (renderpass module)
 * Check requirements in checkSupport, part 2 (spirv_assembly module)
 * Check requirements in checkSupport, part 3 (ubo)
 * Check requirements in checkSupport, part 4 (draw module)
 * Check requirements in checkSupport, part 5 (query_pool module)
 * Check requirements in checkSupport, part 6 (pipeline module)
 * Check requirements in checkSupport, part 7 (memory and memory_model modules)
 * Check requirements in checkSupport, part 8 (synchronization module)
 * Check requirements in checkSupport, part 9 (protected_memory module)
 * Add --deqp-exclude-case option to filter out tests
 * Update gen_framework.py EnumField parameters
 * Split vktApiCopiesAndBlittingTests.cpp into more files
 * Fix another missed ASTC initialization
 * Adds compute-only support for ShaderExecutor
 * Video: Report NotSupported in compute-only mode
 * Require extensions to be explicitly enabled in gen_framework
 * Delay SPIR-V assembly type test case creation to init method
 * Controlling all exceptions thrown when creating a new device.
 * Add run modes to print case lists in trie format
 * pass full Context to createDeviceWithWsi
 * Allow conformance version 1.4.6.0
 * Split mustpass files larger than 50MB
 * Update to Vulkan 1.4.348 and all external sources
 * Change way format lists are generated
 * Update list of allowed device extensions
 * Improve sorting of generated structs
 * Waiver file format documentation and validation
 * Remove duplicate #include <array>
 * Removed unused invalid descriptor vvl's from whitelist
 * Framework changes for VK_KHR_device_address_commands
 * Remove virtual qualifier on methods of a final class
 * Disable PCH for glslang
 * Add support for Visual Studio 2026
 * Add -v option to fetch_sources for compatibility in CI
 * Add CTS withdrawal notice for Vulkan CTS 1.4.2.x
 * mustpass: prune obsolete generated files no longer emitted by the scripts
 * Fix headless WSI stubs and 64-bit buffer access shaders
Refix blit CTS

A recent change (bef06c27c) caused a regression in the blitting tests,
passing invalid vkImageCreateInfo structures with IMAGE_TYPE_2D but a
non-trivial depth (6). Revert the part of the CL that caused the change.

Component: Vulkan
VK-GL-CTS issue: 6479
Affects: dEQP-VK.api.copy_and_blit.*.blit_image.*

Change-Id: I89b792184e028372368705f5fcda25d0196dacb6
(cherry picked from commit 138879c3cb45ed90b076f9d79162692ff40ea120)
1 file changed
tree: 9204376a365732a229c1498a764e61e6a355da6e
  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.