platform/upstream/VK-GL-CTS.git
3 years agoFix linking on MacOS
Piotr Byszewski [Tue, 6 Apr 2021 12:19:04 +0000 (14:19 +0200)]
Fix linking on MacOS

This change resolves linking issue on MacOS and adds this
platform to vulkan cts readme.

Components: Framework

Affects:
*

Change-Id: I355d9f08f0b3bd457fddb7f889ffe4ec1969e346

3 years agoUpdate glslang, SPIR-V Tools/Headers
Alexander Galazin [Wed, 21 Apr 2021 06:53:30 +0000 (09:53 +0300)]
Update glslang, SPIR-V Tools/Headers

Components: Framework

Change-Id: Ie4718ffc3e005b21992f6636e72ed57d75c074d5

3 years agoUpdate Vulkan headers
Alexander Galazin [Mon, 19 Apr 2021 08:29:14 +0000 (11:29 +0300)]
Update Vulkan headers

Components: Vulkan

Change-Id: I53ee070a94d444ca3f3d5198b205a4a7a0f3423d

3 years agoUpdate Vulkan beta Headers
Alexander Galazin [Tue, 13 Apr 2021 09:57:15 +0000 (12:57 +0300)]
Update Vulkan beta Headers

Components: Vulkan

Change-Id: I29364f15c3c9c83424a7c0814b7634aaadfd4ab2

3 years agoCreate chunked mustpass
Piotr Byszewski [Fri, 19 Mar 2021 16:54:10 +0000 (17:54 +0100)]
Create chunked mustpass

Components: Framework

VK-GL-CTS issue: 2818

Affects:
*

Change-Id: If5b6baf75384d69457f17a590bc6f416edccc20f

3 years agoTest non-uniform args in ray tracing operations
Ricardo Garcia [Thu, 4 Mar 2021 15:08:24 +0000 (16:08 +0100)]
Test non-uniform args in ray tracing operations

Test that passing non-uniform values in arguments to traceRayExt() and
rayQueryInitializeEXT() works as expected.

New tests:
dEQP-VK.ray_tracing_pipeline.non_uniform_args.*
dEQP-VK.ray_query.non_uniform_args.*

Components: Vulkan
VK-GL-CTS issue: 2811

Change-Id: Ib9ee67907d822b1b1820601ca43122aadaef50d2

3 years agoSupport GL 4.5 in the Program State Query tests
Alexander Galazin [Wed, 31 Mar 2021 07:49:08 +0000 (10:49 +0300)]
Support GL 4.5 in the Program State Query tests

Components: AOSP

Affects:
dEQP-GLES31.functional.state_query.*
dEQP-GL45.functional.state_query.*

Change-Id: Id23e3852ab16c5e622dd73d097a553ede5caad4d

3 years agoAdd some simple shader tests for compatibility context
Timothy Arceri [Tue, 9 Mar 2021 02:58:12 +0000 (13:58 +1100)]
Add some simple shader tests for compatibility context

These are some simple compile tests to make sure implementations
correctly default to core shaders when no core/es/compatibility
qualifier is defined. And also correctly disable functionality
in core shaders that was moved to compatibility in GL 4.2

Here we also add some basic support for creating compat profiles
to the framework. For now we just use core function init and state
resets as a dummy for compat as we don't currently need to use any
compat features other than the context creatation itself.

Affects: KHR-GL42-COMPAT.shaders42*

Components: Framework, OpenGL

VK-GL-CTS issue: 2837

Change-Id: I055bf2e9ab7361436c8cc96f7d1acc041f61e76b

3 years agoAdd new tests for (u)int->float conversion
Tony Wasserka [Thu, 25 Mar 2021 18:26:13 +0000 (19:26 +0100)]
Add new tests for (u)int->float conversion

This adds a number of special values that triggered incorrect behavior
on our implementation.

Further, some of the min/max tests were too conservative and didn't
actually use the smallest/larged possible values. They now use the full
range of exactly convertible values instead.

Components: Vulkan

Affects: dEQP-VK.spirv_assembly.instruction.graphics.convert*to*.*

Change-Id: Ieadc40b40107318df4351826c5c33b4140c4f7f3

3 years agoTest buffer copies with varying offsets and sizes
Ricardo Garcia [Wed, 14 Apr 2021 06:36:30 +0000 (08:36 +0200)]
Test buffer copies with varying offsets and sizes

New set of tests that try to check buffer copies with unusual
combinations of source and destination offsets as well as sizes produces
the expected results.

New tests:
dEQP-VK.api.copy_and_blit.core.buffer_to_buffer_with_offset.*

Components: Vulkan
VK-GL-CTS issue: 2838

Change-Id: I4ab2df5d0e599456ac396bdfb9839b3bc18571e8

3 years agoVulkan CTS coverage for VK_EXT_ycbcr_2plane_444_formats
Piers Daniell [Fri, 12 Mar 2021 23:22:49 +0000 (16:22 -0700)]
Vulkan CTS coverage for VK_EXT_ycbcr_2plane_444_formats

This extension adds a few new 2-plane 444 YCbCr formats:
VK_FORMAT_G8_B8R8_2PLANE_444_UNORM_EXT
VK_FORMAT_G10X6_B10X6R10X6_2PLANE_444_UNORM_3PACK16_EXT
VK_FORMAT_G12X4_B12X4R12X4_2PLANE_444_UNORM_3PACK16_EXT
VK_FORMAT_G16_B16R16_2PLANE_444_UNORM_EXT

This CL extends existing YCbCr coverage to include these new formats.
In most cases the tests leverage vkGetPhysicalDeviceImageFormatProperties
to determine whether the format is supported and what image properties
it supports.

New tests:

dEQP-VK.*2plane_444*

Affects:

dEQP-VK.api.info.format_properties.*
dEQP-VK.api.info.image_format_properties.*
dEQP-VK.api.info.image_format_properties2.*
dEQP-VK.sparse_resources.*
dEQP-VK.ycbcr.*
dEQP-VK.protected_memory.interaction.ycbcr.*

Change-Id: I7b86ea1db14a953213e5277e87f274efb794d350
Components: Vulkan
(cherry picked from commit 81cc90f3eff3e224bb7c862c67a5a1b7ed6a9148)

3 years agoFix 'implicit-fallthrough' build error on GCC 9.3.0
Sławomir Cygan [Wed, 14 Apr 2021 16:12:12 +0000 (18:12 +0200)]
Fix 'implicit-fallthrough' build error on GCC 9.3.0

It seems the existing comment was not hitting the regular
expression used by the GCC compiler when reading user comments
before case switch fallthrough.

The warning is triggered by -Wextra, which on GCC enables
'-Wimplicit-fallthrough=3'.

Another way to avoid the warning would be to use
[[fallthrough]] statement, but it's from C++17, which does not seem
to be enabled.

Components: Vulkan

Change-Id: Ica52e88f94f4f1c303511d8462938856cb676146

3 years agoSupport GL 4.5 in the tessellation and geometry shader interaction tests
Alexander Galazin [Thu, 18 Mar 2021 06:44:23 +0000 (09:44 +0300)]
Support GL 4.5 in the tessellation and geometry shader interaction tests

Components: AOSP

Affects:
dEQP-GLES31.functional.tessellation_geometry_interaction.*
dEQP-GL45.functional.tessellation_geometry_interaction.*

Change-Id: If8001dfaf9ed833b5e786900a65384c92b7a56d1

3 years agoFix RT misc tests (querying shaderfloat64)
marz [Thu, 8 Apr 2021 10:01:37 +0000 (12:01 +0200)]
Fix RT misc tests (querying shaderfloat64)

Presence of data types that use double in shaders
wasn’t properly detected, the issue was solved
by changing conditions in usesF64 function.

VK-GL-CTS issue: 2867

Components: Vulkan

Affects:
dEQP-VK.ray_tracing_pipeline.misc.*

Change-Id: Id24366f758878bb9c8a34c5d74cdaad1dcd2a469

3 years agoAdd missing rasterizationStream in pipeline creation
Lionel Landwerlin [Mon, 12 Apr 2021 10:37:57 +0000 (13:37 +0300)]
Add missing rasterizationStream in pipeline creation

This fixes some new tests added in 0ffed122cb59b6 ("Add primitive
topologies for XFB query tests").

The rasterizationStream is not specified and it fails the expectation
of transform feedback query results.

Also if an implementation does not support
transformFeedbackRasterizationStreamSelect, streamId > 0 should not be
used as per VU :

   VUID-VkPipelineRasterizationStateStreamCreateInfoEXT-rasterizationStream-02326
   rasterizationStream must be zero if
   VkPhysicalDeviceTransformFeedbackPropertiesEXT::transformFeedbackRasterizationStreamSelect
   is VK_FALSE

VK-GL-CTS Issue: 2882

Components: Vulkan

Affects:
dEQP-VK.transform_feedback.simple.query*
dEQP-VK.transform_feedback.simple.host_query*

Change-Id: I9d29796022dfb05d92906eca724cc656d8034b15

3 years agoDrop unnecessary barrier
Sagar Ghuge [Tue, 13 Apr 2021 06:06:49 +0000 (23:06 -0700)]
Drop unnecessary barrier

This extra barrier which does the transition from UNDEFINED-> GENERAL,
image data is read immediately after that, which leads to the test
failure after enabling the storage image compression.

Components: Vulkan

VK-GL-CTS Issue: 2884

Affects:
dEQP-VK.synchronization.*
dEQP-VK.synchronization2.*

Change-Id: I2ef7ca40b9c869f69654797872ebabb83bfbec10

3 years agoPortability: fix ycbcr query tests
Piotr Byszewski [Fri, 5 Mar 2021 13:00:38 +0000 (14:00 +0100)]
Portability: fix ycbcr query tests

After adding support for VK_KHR_portability_subset
and executing CTS on MoltenVK some issues surfaced.
They are beeing resolved in a series of small CLs.

This change checks if VK_KHR_portability_subset is
available in ycbcr query tests (some of those tests
require tessellation isolines which are under feature
flag in portability).

See:
https://github.com/KhronosGroup/MoltenVK/issues/1285

Components: Vulkan

Affects:
dEQP-VK.ycbcr.query.*

Change-Id: I02e68718af4b7cdb0778890e231ad559e52ac19a

3 years agoMake tcu::Exception noexcept copy-constructible
Ricardo Garcia [Wed, 7 Apr 2021 14:22:03 +0000 (16:22 +0200)]
Make tcu::Exception noexcept copy-constructible

This avoids warnings when using clang-tidy and some IDEs while
preventing undefined behavior.

No tests should be affected by this change, as the interface for
tcu::Exception is not modified.

Components: Framework
VK-GL-CTS issue: 2872

Change-Id: I616ae2db1d28940251b6dcade2c4b3df7e1dc5f5

3 years agodEQP-VK.graphicsfuzz.stable-colorgrid-modulo-true-conditional-divided-1
Toni Salmivalli [Thu, 26 Nov 2020 13:11:01 +0000 (15:11 +0200)]
dEQP-VK.graphicsfuzz.stable-colorgrid-modulo-true-conditional-divided-1

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.stable-colorgrid-modulo-true-conditional-divided-1

Change-Id: I740bd7193a363ebd31b7fad1f8aa1c0251a46754

3 years agoAdd a batch of GraphicsFuzz tests
Toni Salmivalli [Thu, 26 Nov 2020 13:45:43 +0000 (15:45 +0200)]
Add a batch of GraphicsFuzz tests

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.do-while-false-if
dEQP-VK.graphicsfuzz.struct-array-index
dEQP-VK.graphicsfuzz.stable-colorgrid-modulo-float-mat-determinant-clamp
dEQP-VK.graphicsfuzz.stable-mergesort-clamped-conditional-bit-shift
dEQP-VK.graphicsfuzz.stable-quicksort-conditional-bitwise-or-clamp
dEQP-VK.graphicsfuzz.stable-triangle-clamp-conditional-mix
dEQP-VK.graphicsfuzz.stable-triangle-nested-conditional-clamped-float

Change-Id: I211d897d64f7c41b844cd0ab2bbb154b555e1496

3 years agoTests for VK_EXT_color_write_enable
Sharif Elcott [Fri, 26 Feb 2021 07:44:56 +0000 (16:44 +0900)]
Tests for VK_EXT_color_write_enable

Tests new pipeline state pColorWriteEnables, in new struct
VkPipelineColorWriteCreateInfoEXT, chained off of
VkPipelineColorBlendStateCreateInfo. Also the corresponding new dynamic
state VK_DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT and
vkCmdSetColorWriteEnableEXT.

New tests:

dEQP-VK.pipeline.color_write_enable.*

Components: Vulkan
VK-GL-CTS issue: 2823

Change-Id: I07e6d47e647b319b14e6a50d2feb2700b2bab24e
(cherry picked from commit dcd384bb52a4ac8fc68d52f4a82f14941ba5b277)

3 years agoTests for VK_EXT_vertex_input_dynamic_state
Piers Daniell [Tue, 6 Oct 2020 22:06:46 +0000 (16:06 -0600)]
Tests for VK_EXT_vertex_input_dynamic_state

This CL expands the existing dEQP-VK.pipeline.extended_dynamic_state.*
tests to also include coverage for the vertex input pipeline state
being dynamic. The new vertex_input tests utilize the same
extended_dynamic_state test framework which verifies all combinations
of setting the dynamic state before and after the static pipeline
state works correctly.

New tests:

dEQP-VK.pipeline.extended_dynamic_state.*.vertex_input

Affects:

dEQP-VK.pipeline.extended_dynamic_state.*

Components: Vulkan

VK-GL-CTS issue: 2610

Change-Id: I669f60ddec743571d9e3eff1120f0112a829ecb7
(cherry picked from commit 92aa842b6fd13ba0fdfea9a0fe07577816815d31)

3 years agoAdd VK_NV_inherited_viewport_scissor tests
David Zhao Akeley [Tue, 16 Mar 2021 22:24:46 +0000 (15:24 -0700)]
Add VK_NV_inherited_viewport_scissor tests

Components: Vulkan AOSP

New tests:

dEQP-VK.dynamic_state.inheritance.baseline
dEQP-VK.dynamic_state.inheritance.primary
dEQP-VK.dynamic_state.inheritance.secondary
dEQP-VK.dynamic_state.inheritance.split
dEQP-VK.dynamic_state.inheritance.primary_with_count
dEQP-VK.dynamic_state.inheritance.secondary_with_count

Change-Id: I39177c2e8b58c3ff25028ddcd8fca330aac25a9c
(cherry picked from commit 5a05fa25b8df2d807f59ef3f5561706539439f27)

3 years agoUpdate Vulkan Headers
Alexander Galazin [Tue, 13 Apr 2021 09:55:34 +0000 (12:55 +0300)]
Update Vulkan Headers

Components: Vulkan

Change-Id: I489a247c5d32a19dd48768654ab1ef76cce3687c

3 years agoSupport alternate file path lists for loading libs
James Jones [Tue, 12 Jan 2021 23:59:42 +0000 (15:59 -0800)]
Support alternate file path lists for loading libs

Add a new constructor to the dynamic library
loader helper class that allows callers to specify
more than one path for the desired library. The
ordered, NULL-terminated array of paths is walked
until loading one succeeds. The intention here is
to support both versioned and unversioned file
names for portability across operating systems
with different library naming conventions, e.g:

  { libfoo.so.3, libfoo.so, DE_NULL }

Should load "libfoo" on both Linux and BSD OSs.

Components: Framework

Change-Id: I1a0e1c055dd6eeee8e091be5148b99f1f63d86f6

3 years agoAlways include sys/system_properties.h for Android
Tim Van Patten [Tue, 6 Apr 2021 21:26:40 +0000 (15:26 -0600)]
Always include sys/system_properties.h for Android

The function __system_property_get() is always called, regardless of the
targetted SDK level, so always include sys/system_properties.h, where
the prototype is defined.

Change-Id: I09df7fbfa294bf13fce67c2c2dab463d459a25b1

3 years agoAdd primitive topologies for XFB query tests
Juha Heiskanen [Mon, 8 Mar 2021 11:34:18 +0000 (13:34 +0200)]
Add primitive topologies for XFB query tests

XFB query tests are now including the following primitive topologies:
line list, line strip, triangle list, triangle strip, triangle fan, line
list with adjacency, line strip with adjacency, triangle list with
adjacency and triangle list with adjacency.

Components: Vulkan

VK-GL-CTS Issue: 2791

New Tests:
dEQP-VK.transform_feedback.simple.query*
dEQP-VK.transform_feedback.simple.host_query*

Change-Id: Ica05747c981464988222938408dfbbe017c5147f

3 years agoMerge vk-gl-cts/github-master into vk-gl-cts/master
Alexander Galazin [Fri, 9 Apr 2021 07:51:43 +0000 (09:51 +0200)]
Merge vk-gl-cts/github-master into vk-gl-cts/master

Change-Id: I3ad26fa7552b6d16d7c1b4b95ac5f5e4c0196a94

3 years agoMerge pull request #253 from letidealsfly/letidealsfly-patch-1
Alexander Galazin [Fri, 9 Apr 2021 07:50:39 +0000 (10:50 +0300)]
Merge pull request #253 from letidealsfly/letidealsfly-patch-1

Add Big-Endian support in verifyColorGradient

3 years agoAdd OpImageQuerySamples with Storage Image test
Spencer Fricke [Mon, 11 Jan 2021 16:32:25 +0000 (08:32 -0800)]
Add OpImageQuerySamples with Storage Image test

* New test for SPIR-V Assembly instruction tests

Component: Vulkan

VK-GL-CTS Issue: 2713

New Tests: dEQP-VK.spirv_assembly.instruction.image_query.samples_storage

Change-Id: I1076f1f3719fe2154b75fd9eb7e92517e1b619e6

3 years agoEXT_multisampled_render_to_texture test using ReadPixels
James Darpinian [Tue, 18 Dec 2018 00:46:59 +0000 (16:46 -0800)]
EXT_multisampled_render_to_texture test using ReadPixels

Detects a bug where ReadPixels fails on multisampled textures.
See http://crbug.com/890002

Cherry pick from:
https://android-review.googlesource.com/c/platform/external/deqp/+/796566

Components: OpenGL

New test:
dEQP-GLES2.functional.multisampled_render_to_texture.readpixels

Bug: chromium:890002
Change-Id: I6e5e5d1fa3aa15daee69271339962a0b3ffc1927

3 years agoMerge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/master
Alexander Galazin [Thu, 8 Apr 2021 08:54:15 +0000 (11:54 +0300)]
Merge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/master

Change-Id: I9469755cff922fd7ab0e981c4f0f901f30ae9ebe

3 years agoMerge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7
Alexander Galazin [Thu, 8 Apr 2021 07:37:27 +0000 (10:37 +0300)]
Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7

Change-Id: Ie819b6fcb1a362f9414f075a2cbc8bb368c34581

3 years agoMerge vk-gl-cts/opengl-cts-4.6.0 into vk-gl-cts/master
Alexander Galazin [Thu, 8 Apr 2021 07:36:00 +0000 (10:36 +0300)]
Merge vk-gl-cts/opengl-cts-4.6.0 into vk-gl-cts/master

Change-Id: Ib6b4439d2c64221cb9923295668db391a12188fa

3 years agoMerge vk-gl-cts/opengl-es-cts-3.2.5 into vk-gl-cts/opengl-es-cts-3.2.6
Alexander Galazin [Thu, 8 Apr 2021 06:52:23 +0000 (09:52 +0300)]
Merge vk-gl-cts/opengl-es-cts-3.2.5 into vk-gl-cts/opengl-es-cts-3.2.6

Change-Id: Ia93ae886128b6368736e4dc433bbc689d80fae23

3 years agoRemove in-repo verify_submission scripts
Alexander Galazin [Fri, 19 Mar 2021 11:12:55 +0000 (14:12 +0300)]
Remove in-repo verify_submission scripts

These scripts are now replaced by the CTS Tools repo:
https://github.com/KhronosGroup/VK-GL-CTS-Tools

Components: Vulkan, OpenGL

Change-Id: If0f47b4186ed10f9946852e8d37956d7328625a8
(cherry picked from commit bdfb5d67b268ab2dba5178618cc1515f68087be3)

3 years agoUpdate Vulkan/GL Readme
Alexander Galazin [Mon, 22 Feb 2021 09:14:11 +0000 (10:14 +0100)]
Update Vulkan/GL Readme

Update the Readme files to point to the new
submission verifcation script

Components: Vulkan, OpenGL

Change-Id: I6fb35a383fcc49e543ae67822be22d744c5fcd9c
(cherry picked from commit 412f5a3363eb228ca1a63be337de172a2e622571)
(cherry picked from commit 0b536d84fdb4a4fb697ab852dadc643c5dac9736)

3 years agoRemove in-repo verify_submission scripts
Alexander Galazin [Fri, 19 Mar 2021 11:12:55 +0000 (14:12 +0300)]
Remove in-repo verify_submission scripts

These scripts are now replaced by the CTS Tools repo:
https://github.com/KhronosGroup/VK-GL-CTS-Tools

Components: Vulkan, OpenGL

Change-Id: If0f47b4186ed10f9946852e8d37956d7328625a8
(cherry picked from commit bdfb5d67b268ab2dba5178618cc1515f68087be3)

3 years agoUpdate Vulkan/GL Readme
Alexander Galazin [Mon, 22 Feb 2021 09:14:11 +0000 (10:14 +0100)]
Update Vulkan/GL Readme

Update the Readme files to point to the new
submission verifcation script

Components: Vulkan, OpenGL

Change-Id: I6fb35a383fcc49e543ae67822be22d744c5fcd9c
(cherry picked from commit 412f5a3363eb228ca1a63be337de172a2e622571)
(cherry picked from commit cdf7014b4bcecc17be7abe71ab604cd82f830d19)

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master
Alexander Galazin [Wed, 7 Apr 2021 16:14:33 +0000 (19:14 +0300)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master

Change-Id: I7e3d844b6fc36cc819fcd3af6c8f17008e228439

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6
Alexander Galazin [Wed, 7 Apr 2021 15:15:08 +0000 (18:15 +0300)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6

Change-Id: I402128a712866638b2b8cc04ac38143712237ebf

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/vulkan-cts-1.2.5
Alexander Galazin [Wed, 7 Apr 2021 14:49:03 +0000 (17:49 +0300)]
Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/vulkan-cts-1.2.5

Change-Id: Id90fcd730ba632a3a08f25a01226098421486753

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4
Alexander Galazin [Wed, 7 Apr 2021 13:11:48 +0000 (16:11 +0300)]
Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4

Change-Id: Iffa708c815ea869d459d6b5a951f69a3fae7d351

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3
Alexander Galazin [Wed, 7 Apr 2021 09:51:46 +0000 (12:51 +0300)]
Merge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3

Change-Id: I452f719e084e6decc02066064c6f0397e4b915e6

3 years agoAdd CMake detection logic for libdrm include files
James Jones [Tue, 12 Jan 2021 18:42:26 +0000 (10:42 -0800)]
Add CMake detection logic for libdrm include files

Determine if the base DRM header files are
available, and if so, add their paths to the
include directories and add a definition
indicating they were found.

Change-Id: Iaf014dc0978ba050995ed3ad61c0ddc6b751e3ea

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2
Alexander Galazin [Tue, 6 Apr 2021 14:13:37 +0000 (17:13 +0300)]
Merge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2

Change-Id: I2947e16b40c26feb3c95922e18e36e36acbc43b9

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/vulkan-cts-1.2.1
Alexander Galazin [Tue, 6 Apr 2021 11:46:52 +0000 (14:46 +0300)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/vulkan-cts-1.2.1

Change-Id: Id775a0b8cb86bd5929b61c49fbfac4825421c7a7

3 years agoAdd early fragment tests
Juha Heiskanen [Wed, 17 Mar 2021 08:15:32 +0000 (10:15 +0200)]
Add early fragment tests

When early fragment tests are enabled, any depth value computed by the
fragment shader has no effect. This CL adds 6 new tests, which are
enabling the Early Fragment Test Mode for depth calculations.

Components: Vulkan

VK-GL-CTS Issue: 2738

New Tests:
dEQP-VK.spirv_assembly.instruction.graphics.early_fragment*

Change-Id: Ieed7012fa413bdd43a4d71acb052d9ded0ae9bf3

3 years agoAdd tests for multisample resolve to level != 0
michal_jakubek [Fri, 19 Mar 2021 18:16:40 +0000 (19:16 +0100)]
Add tests for multisample resolve to level != 0

This test extends existent tests to be able to
render to an arbitrary mip level, not only 0.

It also introduces overloaded copyImageToBuffer()
routine which allows you to copy any image mip level
to a buffer with the appropriate amount of allocated
memory.

Components: Vulkan

VK-GL-CTS issue: 2782

Affects:
dEQP-VK.renderpass.suballocation.multisample_resolve.*

Change-Id: I119632180de4a7176e501e82889fb98b83635e28

3 years agoAdd coverage for 1D, 1D array and Cube array shadow images
Boris Zanin [Mon, 15 Feb 2021 22:13:03 +0000 (23:13 +0100)]
Add coverage for 1D, 1D array and Cube array shadow images

Add tests:
 * dEQP-VK.texture.shadow.1d.*
 * dEQP-VK.texture.shadow.1d_array.*
 * dEQP-VK.texture.shadow.cube_array.*

Affect tests:
 * dEQP-VK.pipeline*.1d_array.*

Components: Vulkan

VK-GL-CTS issue: 2521

Change-Id: I84b899ca5e5e47592b9bb831bbf80c4f9a2218c4

3 years agoAdd subgroup testing for ray tracing pipelines
Boris Zanin [Thu, 28 Jan 2021 16:30:59 +0000 (17:30 +0100)]
Add subgroup testing for ray tracing pipelines

Add tests:
 * dEQP-VK.subgroups.*.ray_tracing.*

Affected tests:
 * dEQP-VK.subgroups.*

In current implementation following tests will always
pass. Fix them.

Fix tests:
 * dEQP-VK.subgroups.builtin_var.graphics.subgroupinvocationid
 * dEQP-VK.subgroups.builtin_var.framebuffer.subgroupinvocationid*

Components: Framework, Vulkan

VK-GL-CTS issue: 2653

Change-Id: I7afa33c3d618f0dce54d656fad810273b36a3c98

3 years agoTest interaction between Workgroup explicit layout and zero initialization
Caio Marcelo de Oliveira Filho [Sat, 16 Jan 2021 07:31:56 +0000 (23:31 -0800)]
Test interaction between Workgroup explicit layout and zero initialization

Test interaction between VK_KHR_workgroup_memory_explicit_layout and
VK_KHR_zero_initialize_workgroup_memory.  Tests use SPIR-V ASM since
there's no syntax in GLSL to initialize a block.

Component: Vulkan
VK-GL-CTS Issue: 2524
New Tests: dEQP-VK.compute.workgroup_memory_explicit_layout.zero_ext.*

Change-Id: I015ba350bd15472d06b3bee657ce67f283e8e1e7

3 years agoMerge "Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master"
Alexander Galazin [Fri, 2 Apr 2021 08:00:17 +0000 (08:00 +0000)]
Merge "Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master"

3 years agoAdd waived tests support for cts tools
Cheryl Wei [Tue, 16 Mar 2021 07:43:48 +0000 (15:43 +0800)]
Add waived tests support for cts tools

Add TESTSTATUSCODE_WAIVER definition for cts tools to support waived tests.

Components: OpenGL ES
VK-GL-CTS issue: 2666

Change-Id: I99811c73bb96ec45cb0e5cbfab7d073bca4653db

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master
Alexander Galazin [Fri, 2 Apr 2021 07:18:54 +0000 (10:18 +0300)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master

Change-Id: I313cc115e39d09a7f40365d160b5ba3502b68269

3 years agoFixes transform feedback query tests
Matthew Netsch [Wed, 31 Mar 2021 15:51:36 +0000 (11:51 -0400)]
Fixes transform feedback query tests

Tests were not reseting the query pool prior
to using the queries, as is required by the spec.

Components: Vulkan
VK-GL-CTS Issue: 2866

Affects:
dEQP-VK.transform_feedback.simple.multiquery*

Change-Id: If62c75476f1c9a97ee4d819712bb9904dc6d83c7

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6
Alexander Galazin [Thu, 1 Apr 2021 16:57:27 +0000 (19:57 +0300)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6

Change-Id: I373a9df4f575b5f9d90b2c9f651c1a69b9265f1d

3 years agoFix test does not return failure status
Marcin Kantoch [Tue, 30 Mar 2021 14:47:11 +0000 (16:47 +0200)]
Fix test does not return failure status

Affected tests:
dEQP-VK.wsi.display_control.register_device_event

Components: Vulkan
VK-GL-CTS issue: 2864

Change-Id: I282ffc5e7b910209a509ae57ee8e38c662b97815

3 years agoFixes Fragment Shading Rate layered tests
Matthew Netsch [Wed, 31 Mar 2021 15:08:41 +0000 (11:08 -0400)]
Fixes Fragment Shading Rate layered tests

Test was exporting Layer and ViewportIndex
decorations in Vertex Shader in the
Geometry Shader tests without checking
for support.

Components: Vulkan
VK-GL-CTS Issue: 2865

Affects:
dEQP-VK.fragment_shading_Rate.srlayered.*.gs
dEQP-VK.fragment_shading_Rate.colorlayered.*.gs

Change-Id: Idbf6be2c14bb8409feec2d7262efb9a402cf35a2

3 years agoRemove duplicate dataSafe function from deSTLUtil
Ricardo Garcia [Wed, 24 Mar 2021 14:14:27 +0000 (15:14 +0100)]
Remove duplicate dataSafe function from deSTLUtil

The dataSafe() and dataOrNull() STL util functions were added almost at
the same time by two different CLs, with the same purpose and nearly
identical code.

No test should be affected by this simple change.

Components: Vulkan, Framework

Change-Id: I39f72c043d32522d1bf3b05e49b68fb3a0f088b2

3 years agoAdd keys deqp-log-decompiled-spirv and deqp-log-empty-loginfo
Boris Zanin [Tue, 7 Jul 2020 17:33:59 +0000 (19:33 +0200)]
Add keys deqp-log-decompiled-spirv and deqp-log-empty-loginfo

Add two keys to deqp-vk command line to optimize generated
TestResults.qpa for high level source shader analysis and comparision.

The key deqp-log-decompiled-spirv allows to control output of decompiled
SPIR-V sources. By default it is enabled to keep existing behaviour.

The key deqp-log-empty-loginfo allows to control output of empty LogInfo
section into the TestResults.qpa. By default it is enabled to keep
existing behaviour.

Components: Framework

VK-GL-CTS issue: 2447

Change-Id: I1f53cd89e7cb689236f4969fb4c82d9369a46f0f

3 years agoCheck for drawIndirectFirstInstance should only affect indirect draw calls
Alejandro Piñeiro [Tue, 23 Mar 2021 23:38:35 +0000 (00:38 +0100)]
Check for drawIndirectFirstInstance should only affect indirect draw calls

Without this change, if any driver doesn't support that feature, then
non-indirect draw calls, like vkCmdDrawIndexed are also tested using
only firstInstance==0.

Affects:
dEQP-VK.draw.instanced.*

Components: Vulkan

VK-GL-CTS issue: 2857

Change-Id: I432d5760258848d30e101baf702495980d2116fe

3 years agoSupport GL 4.5 in the uniform location tests
Alexander Galazin [Wed, 17 Mar 2021 13:45:56 +0000 (16:45 +0300)]
Support GL 4.5 in the uniform location tests

Components: AOSP

Affects:
dEQP-GLES31.functional.uniform_location.*
dEQP-GL45.functional.uniform_location.*

Change-Id: Icf467c7261295cb072a235083cc681d0fd964717

3 years agoSupport GL 4.5 in the multisample texture tests
Alexander Galazin [Wed, 17 Mar 2021 12:31:19 +0000 (15:31 +0300)]
Support GL 4.5 in the multisample texture tests

Components: AOSP

Affects:
dEQP-GLES31.functional.texture.multisample.*
dEQP-GL45.functional.texture.multisample.*

Change-Id: I03924cadf2076c4e7fb2cf2e5042ce8abd5ddd0e

3 years agoSupport GL 4.5 in the EXT_texture_border_clamp tests
Alexander Galazin [Tue, 16 Mar 2021 13:27:07 +0000 (16:27 +0300)]
Support GL 4.5 in the EXT_texture_border_clamp tests

Components: AOSP

Affects:
dEQP-GLES31.functional.texture.border_clamp.*
dEQP-GL45.functional.texture.border_clamp.*

Change-Id: Iea33af4d6cb90fa5dbf1108be6074a2d48c96f20

3 years agoUpdate Vulkan headers
Alexander Galazin [Mon, 29 Mar 2021 08:26:40 +0000 (11:26 +0300)]
Update Vulkan headers

Components: Vulkan

Change-Id: I1f2650958b9ec4d9af8eb5e6310afa3c72395880

3 years agoSupport GL 4.5 in the geometry shading tests
Alexander Galazin [Tue, 16 Mar 2021 11:13:47 +0000 (14:13 +0300)]
Support GL 4.5 in the geometry shading tests

Components: AOSP

Affects:
dEQP-GLES31.functional.geometry_shading.*
dEQP-GL45.functional.geometry_shading.*

Change-Id: I6dd14a7339e29ddf55ea762c729934fe6fc277ba

3 years agoSupport GL 4.5 in the tessellation tests
Alexander Galazin [Tue, 16 Mar 2021 08:27:49 +0000 (11:27 +0300)]
Support GL 4.5 in the tessellation tests

Components: AOSP

Affects:
dEQP-GLES31.functional.tessellation.*
dEQP-GL45.functional.tessellation.*

Change-Id: I875246c095b91e8011f6170d19901f5aab69b8b8

3 years agoMerge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/master
Alexander Galazin [Tue, 30 Mar 2021 07:16:29 +0000 (10:16 +0300)]
Merge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/master

Change-Id: I02d3645912b70e9c7c807d9f08a3896079d0f9e6

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master
Alexander Galazin [Tue, 30 Mar 2021 06:22:14 +0000 (09:22 +0300)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master

Change-Id: I532c8c99ffbca33a036d2a458f6f5f8c8f44b02c

3 years agoMerge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7
Alexander Galazin [Tue, 30 Mar 2021 06:21:00 +0000 (09:21 +0300)]
Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7

Change-Id: If1bdcafe2e19121b0d5d7f89bf44f89db1877f74

3 years agoRevise the render_list string of angle vulkan waiver
junxu01 [Mon, 15 Mar 2021 08:07:54 +0000 (16:07 +0800)]
Revise the render_list string of angle vulkan waiver

Use 'ANGLE (*Vulkan *' to replace 'ANGLE (Vulkan*'.

Components: OpenGL ES
VK-GL-CTS issue: 2770

Change-Id: I8e5c8a86a81a538b829873a7c133a4c14b181087

3 years agoSupport GL 4.5 in the copy image tests
Alexander Galazin [Mon, 15 Mar 2021 08:59:56 +0000 (11:59 +0300)]
Support GL 4.5 in the copy image tests

Components: AOSP

Affects:
dEQP-GLES31.functional.copy_image.*
dEQP-GL45.functional.copy_image.*

Change-Id: I22e6789a5e1d9c82c955f22808aa71c0191a3a69

3 years agoAllow more conservative coverage for degenerate triangles
Piers Daniell [Wed, 24 Mar 2021 22:53:56 +0000 (16:53 -0600)]
Allow more conservative coverage for degenerate triangles

Some implementations of conservative rasterization with degenerate
triangles produce more than one pixel worth of coverage, which is
allowed by the Vulkan specification.

This CL modifies the test to allow some extra coverage so it works
on these implementations.

Affects:

dEQP-VK.rasterization.conservative.overestimate.*.triangles.degenerate.*

Components: Vulkan

VK-GL-CTS issue: 2859

Change-Id: I65c6508813c04d5faa2312e26832efe16e44cea2

3 years agoFix insufficient BLAS indirect buffer size
Neslisah Torosdagli [Sat, 27 Mar 2021 03:27:06 +0000 (23:27 -0400)]
Fix insufficient BLAS indirect buffer size

BLAS indirect buffer size is not set correctly. It is set to
sizeof(VkAccelerationStructureBuildRangeInfoKHR) however
geometries number times sizeof(VkAccelerationStructureBuildRangeInfoKHR)
indirect buffer space is needed.

Components: Vulkan

https://gitlab.khronos.org/Tracker/vk-gl-cts/-/issues/2862

Affects: dEQP-VK.ray_tracing_pipeline.indirect.build_structure
Change-Id: I2b5df039aac6c3f2a51177c8bf9f5095ae5c7886

3 years agoAdded tests for most-negative snorm values in images
michal_jakubek [Tue, 8 Dec 2020 09:25:22 +0000 (10:25 +0100)]
Added tests for most-negative snorm values in images

This commit adds test for most-negative snorm values in images when using linear filtering.
Component: Vulkan

New tests:
  dEQP-VK.texture.conversion.snorm_clamp_linear.*

VK-GL-CTS issue: 2618

Change-Id: I414ab5aac47307e135563a3eb9870fa1484b7ba9

3 years agoNotice of withdrawal of Vulkan CTS 1.2.2.x
Alexander Galazin [Fri, 26 Mar 2021 07:23:05 +0000 (10:23 +0300)]
Notice of withdrawal of Vulkan CTS 1.2.2.x

Components: Vulkan

Change-Id: Ifda4ec091ba5e8e3b362aa7d828837dd3bad2202

3 years agoChange format used in pipeline cache control tests
James Fitzpatrick [Tue, 23 Mar 2021 11:39:48 +0000 (11:39 +0000)]
Change format used in pipeline cache control tests

The format used as a colour attachment by the pipeline creation cache
control tests is not required to be supported as a color attachment and
the tests do not query for it being supported.

Change it to R8G8B8A8 which is required to be supported as the specific
format is not important for this test.

Affects:
dEQP-VK.pipeline.creation_cache_control.graphics_pipelines.*

Components: Vulkan

VK-GL-CTS issue: 2856

Change-Id: I7ecfc4de8584dba6824101cb717313247070f12f

3 years agoInclude sys/system_properties.h in teglAndroidUtil.cpp
Tim Van Patten [Thu, 18 Mar 2021 22:15:34 +0000 (16:15 -0600)]
Include sys/system_properties.h in teglAndroidUtil.cpp

The following CL added a call to __system_property_get():
https://github.com/KhronosGroup/VK-GL-CTS/commit/8a537a0c916e1a10e134f648801f0812c4c749ba

However, it's failing to build:

  ../../third_party/angle/third_party/VK-GL-CTS/src/modules/egl/teglAndroidUtil.cpp:78:3:
  error: use of undeclared identifier '__system_property_get'
                __system_property_get("ro.build.version.sdk", value);

This is caused by teglAndroidUtil.cpp not including
sys/system_properties.h. Including the file fixes the error.

Change-Id: I0e63fcc9dfe0e872832da07e3b8d7f2f78f9d835
(cherry picked from commit 968b6ee77b11267cb6afb6fdbd9bef847eb14868)

3 years agoInclude sys/system_properties.h in teglAndroidUtil.cpp
Tim Van Patten [Thu, 18 Mar 2021 22:15:34 +0000 (16:15 -0600)]
Include sys/system_properties.h in teglAndroidUtil.cpp

The following CL added a call to __system_property_get():
https://github.com/KhronosGroup/VK-GL-CTS/commit/8a537a0c916e1a10e134f648801f0812c4c749ba

However, it's failing to build:

  ../../third_party/angle/third_party/VK-GL-CTS/src/modules/egl/teglAndroidUtil.cpp:78:3:
  error: use of undeclared identifier '__system_property_get'
                __system_property_get("ro.build.version.sdk", value);

This is caused by teglAndroidUtil.cpp not including
sys/system_properties.h. Including the file fixes the error.

Change-Id: I0e63fcc9dfe0e872832da07e3b8d7f2f78f9d835

3 years agoAdd a batch of GraphicsFuzz tests
Alastair Donaldson [Thu, 26 Nov 2020 16:04:36 +0000 (16:04 +0000)]
Add a batch of GraphicsFuzz tests

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.spv-stable-bubblesort-flag-complex-conditionals
dEQP-VK.graphicsfuzz.spv-stable-maze-O-dead-code
dEQP-VK.graphicsfuzz.spv-stable-maze-O-memory-accesses
dEQP-VK.graphicsfuzz.spv-stable-mergesort-dead-code
dEQP-VK.graphicsfuzz.spv-stable-quicksort-dontinline
dEQP-VK.graphicsfuzz.spv-stable-sampler-loop-extra-instructions
dEQP-VK.graphicsfuzz.spv-stable-sampler-polar-simple-O-access-chain

Change-Id: Id21ca55bcbc067b29105bb0b66f78b15f2a52a8d

3 years agoMerge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/master
Alexander Galazin [Thu, 25 Mar 2021 10:15:11 +0000 (13:15 +0300)]
Merge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/master

Change-Id: Ic5abe4e31f3520d5ba7d02a31f38c256a26b56f2

3 years agoMerge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7
Alexander Galazin [Thu, 25 Mar 2021 07:51:47 +0000 (10:51 +0300)]
Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7

Change-Id: I5517ebda304e88850ec6cd29bebce290aa237723

3 years agoQPA image viewer updates
Ricardo Garcia [Wed, 24 Mar 2021 14:19:50 +0000 (15:19 +0100)]
QPA image viewer updates

This commit fixes two issues with the HTML QPA image viewer tool:

* Make Firefox use nearest scaling for images.
* Add a "clear text" button to the text paste input field.

Change-Id: I3eb4222c4962c0de90978b580c768c1157abb1f4

3 years agoFulfill OpControlBarrier requirement
Boris Zanin [Wed, 17 Mar 2021 11:27:26 +0000 (12:27 +0100)]
Fulfill OpControlBarrier requirement

The valid usage requirement in vulkan specification 1.2.170
VUID-StandaloneSpirv-None-04641 requires: "If the Scope for
memory is Invocation, then memory semantics must be None".
New SPIRV-Tools enforces it.

Fix tests:
 * dEQP-VK.spirv_assembly.instruction.graphics.barrier.in_function
 * dEQP-VK.spirv_assembly.instruction.graphics.barrier.in_switch
 * dEQP-VK.spirv_assembly.instruction.graphics.barrier.in_if
 * dEQP-VK.spirv_assembly.instruction.graphics.barrier.after_divergent_if
 * dEQP-VK.spirv_assembly.instruction.graphics.barrier.in_loop

Update tests:
 * dEQP-VK.spirv_assembly.instruction.graphics.barrier.*

Components: Vulkan

Change-Id: Ie6997fdb36c0327d88a2b7b6b4826dfee690377d

3 years agoAdd an option to terminate after first failure, update READMEs
Sławomir Cygan [Fri, 5 Mar 2021 16:02:06 +0000 (17:02 +0100)]
Add an option to terminate after first failure, update READMEs

New command line argument: --deqp-terminate-on-fail=enable

Moreover update the READMEs:
 - update the command line documentation in OpenGL CTS Readme
 - add a chapter on Vulkan CTS command line
 - Move --deqp-runner-type= from chapter describing allowed CTS command line

Components: Framework

VK-GL-CTS Issue 2844

Change-Id: I4c6b339838a50fc2ddc0d493ac905f502179792d

3 years agoTerminate with an error if unrecognized arguments are passed to dEQP executable
Slawomir Cygan [Wed, 10 Mar 2021 16:50:37 +0000 (17:50 +0100)]
Terminate with an error if unrecognized arguments are passed to dEQP executable

de::cmdline seems to support options (starting with '-' or '--') and generic
arguments.

It seems the command line interface of dEQP, which wraps de:cmdline,  was
not making any use of the arguments, but at the same time ignored them.
This made a possibility for unrecognized command line arguments to be
completely ignored, instead of throwing and error

Components: Framework

VK-GL-CTS Issue: 2727

Change-Id: Ibea7413edec2899d33484ac8bb8183c4f4d398ac

3 years agoEnsure only Unix paths are added to deqp.apk
Vihanakangas [Mon, 15 Mar 2021 13:07:25 +0000 (15:07 +0200)]
Ensure only Unix paths are added to deqp.apk

Workaround for adding paths to deqp.apk
when using Windows as a build platform.

Components: Framework, Android

VK-GL-CTS issue: 2810

Change-Id: Id37cb13f3ab8a2636e43454ed0e00275a0e2ff52

3 years agoMerge vk-gl-cts/github-master into vk-gl-cts/master
Alexander Galazin [Fri, 19 Mar 2021 11:05:09 +0000 (12:05 +0100)]
Merge vk-gl-cts/github-master into vk-gl-cts/master

Change-Id: I228e2d537618b1c9b6b0cd631bd0fd1f8db13d82

3 years agoRemove in-repo verify_submission scripts
Alexander Galazin [Fri, 19 Mar 2021 11:12:55 +0000 (14:12 +0300)]
Remove in-repo verify_submission scripts

These scripts are now replaced by the CTS Tools repo:
https://github.com/KhronosGroup/VK-GL-CTS-Tools

Components: Vulkan, OpenGL

Change-Id: If0f47b4186ed10f9946852e8d37956d7328625a8

3 years agoMerge pull request #216 from werman/tests/xfb_explicit_location
Alexander Galazin [Fri, 19 Mar 2021 11:04:23 +0000 (14:04 +0300)]
Merge pull request #216 from werman/tests/xfb_explicit_location

Add tests for XFB output of matrices/arrays/structs with explicit location (GL_ARB_enhanced_layouts)

3 years agoAdd tests to exercise 'readonly' SSBOs
Jeff Bolz [Thu, 3 Dec 2020 13:55:34 +0000 (07:55 -0600)]
Add tests to exercise 'readonly' SSBOs

Extend the robustness2 and ssbo test groups to have 'readonly'
SSBO variants. These declare the SSBO variable as 'readonly' and
skip the stores.

Change the SSBO tests from 'result = result && compare()' to
'result = compare() && result'. This puts multiple loads in the
same basic block and makes vectorization more likely, which makes
the tests more stressful.

Component: Vulkan
Affects: dEQP-VK.robustness.robustness2.*
Affects: dEQP-VK.ssbo.*
Change-Id: Ic35fdb00a382cf0d2911e51da7ab9fc50846340d

3 years agoAllow Vulkan CTS 1.2.6.0
Alexander Galazin [Thu, 18 Mar 2021 18:04:32 +0000 (21:04 +0300)]
Allow Vulkan CTS 1.2.6.0

Affects: dEQP-VK.api.driver_properties.properties

Components: Vulkan

Change-Id: Ia8779d2c3ac92ec1a90d43225b551b7efabef023

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/master
Alexander Galazin [Thu, 18 Mar 2021 17:22:15 +0000 (20:22 +0300)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/master

Change-Id: Ie1fb3817afbffd0b18a695230594c2790f6a5d8c

3 years agoAllow false positive hits from build-in AABBs intersector
Sławomir Cygan [Tue, 16 Mar 2021 16:07:16 +0000 (17:07 +0100)]
Allow false positive hits from build-in AABBs intersector

This change allows the test to execute any hit shader,
in case of AABB geometry is used and the ray falsely 'intersects'
it.

This is needed, as the test does not calculate the proper
intersection in 'intersection' stage - it uses a shader that always
reports TRUE. Hence the test relies on build-in AABB
intersector, which may report false positives according to the
specification.

VK-GL-CTS Issue: 2848

Components: Vulkan

Affects: dEQP-VK.ray_tracing_pipeline.build.*aabbs*

Change-Id: Ib90f45227a7cd4c412fd4d1c97598f32a80eb6ca

3 years agoFix required features checks in shaderRecordExplicitScalarOffset_6 test case
Sławomir Cygan [Fri, 12 Mar 2021 09:27:57 +0000 (10:27 +0100)]
Fix required features checks in shaderRecordExplicitScalarOffset_6 test case

Due to typo in ShaderRecordBlockTest::isTest(), the test case was not
checked for optional features, required by ShaderRecordBlockTest class.

Components: Vulkan

VK-GL-CTS Issues: 2845

Affects: dEQP-VK.ray_tracing_pipeline.misc.shaderRecordExplicitScalarOffset_6
Change-Id: I437637e69294f10343f69d9f5b9a0abfe3acc7a5

3 years agoAdd VK_EXT_headless_surface surface tests
Tom Cooper [Mon, 20 Jul 2020 09:53:28 +0000 (11:53 +0200)]
Add VK_EXT_headless_surface surface tests

Adds vulkan_headless target which uses VK_EXT_headless_surface
for swapchain surface creation.

New tests:
dEQP-VK.image.swapchain_mutable.headless.*
dEQP-VK.wsi.headless.*
dEQP-VK.protected_memory.interaction.wsi.headless.*

Components: Vulkan

VK-GL-CTS issue: 2825

Change-Id: I21536c41c839b7bb795f05a17cbea68f8125133a

3 years agoFix robust buffer access result checking for partially out of bound cases
Junda Liu [Tue, 9 Mar 2021 08:21:32 +0000 (16:21 +0800)]
Fix robust buffer access result checking for partially out of bound cases

The spec says:
Out-of-bounds buffer loads will return any of the following values:
...
Values from anywhere within the memory range(s) bound to the buffer (possibly including bytes of memory past the end of the buffer, up to the end of the bound range).
...

So partially out of bound load may return memory content for the in bound part. E.g., loading a 64-bit value from a buffer with 3B size (allocated 4B size), the first 4B can be value within the buffer.

Affected tests:
dEQP-VK.robustness.buffer_access.through_pointers.*

Change-Id: I1fab8d3819cf4d5935904a1c7762c3660c67379b

3 years agoRemove the tests with too large device AS build workload
Sławomir Cygan [Tue, 16 Mar 2021 15:40:21 +0000 (16:40 +0100)]
Remove the tests with too large device AS build workload

This removes the tests that submit accelleration structure
builds with 1048576 instances * geometries * 'squares'.

The accelleation structure builds performed by these tests
were too long and may hit the device timeout imposed by
the operating system.

Components: Vulkan

VK-GL-CTS Issue: 2849

Removed Tests:

dEQP-VK.ray_tracing_pipeline.build.gpu*_1_1_1048576
dEQP-VK.ray_tracing_pipeline.build.gpu*_1_1048576_1
dEQP-VK.ray_tracing_pipeline.build.gpu*_1_1048576_1
dEQP-VK.ray_tracing_pipeline.build.gpu*_4_4_65536
dEQP-VK.ray_tracing_pipeline.build.gpu*_4_65536_4
dEQP-VK.ray_tracing_pipeline.build.gpu*_65536_4_4

Change-Id: Ief53cc01da4f749fd8a030bd8e2ebb5652208ce4

3 years agoUse linear tiling with external_memory_host tests
Tapani Pälli [Tue, 16 Feb 2021 14:58:19 +0000 (16:58 +0200)]
Use linear tiling with external_memory_host tests

With linear, app can query the image's memory layout with
vkGetImageSubresourceLayout. With optimal tiling there is no way for app
to query or provide memory layout, therefore we must use linear.

Component: Vulkan
Affects: dEQP-VK.memory.external_memory_host*
VK-GL-CTS issue: 2794

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Change-Id: I71e97a937415abe6170e6edd81eaec26a5c68867