platform/upstream/VK-GL-CTS.git
16 months agoPrioritize downloaded ffmpeg over system ffmpeg
Ricardo Garcia [Tue, 10 Jan 2023 14:24:48 +0000 (15:24 +0100)]
Prioritize downloaded ffmpeg over system ffmpeg

This avoids breaking the build in many systems that have ffmpeg
installed including its development files and they don't match what
VK-GL-CTS expects.

VK-GL-CTS issue: 4212

Change-Id: I2df1347e6ce30d7aaa4cc876a7026ed5017238b4

16 months agoSkip testing the query result, if query was reset just before getting the result
Slawomir Cygan [Tue, 27 Dec 2022 18:37:17 +0000 (19:37 +0100)]
Skip testing the query result, if query was reset just before getting the result

The query result is undefined after resetting the query. Only availability bit
should be tested in this case.

Components: Vulkan

VK-GL-CTS Issue: 4190

Affects: dEQP-VK.mesh_shader.ext.query.*.reset_before.*

Change-Id: I24d96fa71639505d2c4467971c75577a0dc02b97

16 months agoMerge vk-gl-cts/vulkan-cts-1.3.4 into vk-gl-cts/vulkan-cts-1.3.5
Piotr Byszewski [Mon, 16 Jan 2023 10:30:49 +0000 (11:30 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.4 into vk-gl-cts/vulkan-cts-1.3.5

Change-Id: I8647fe247b3d23a554c87c16ec850a32647c48c0

16 months agoRemove tests that use DS format in inheritance info, but have no depth attachment...
Slawomir Cygan [Tue, 6 Dec 2022 12:45:28 +0000 (13:45 +0100)]
Remove tests that use DS format in inheritance info, but have no depth attachment in vkCmdBeginRendering

Remove test cases, that target functionality that is against following spec wording:

"""
If vkCmdExecuteCommands is being called within a render pass instance begun with vkCmdBeginRendering and the
VkRenderingInfo::pDepthAttachment->imageView parameter to vkCmdBeginRendering was VK_NULL_HANDLE, the value of the  >
depthAttachmentFormat member of the VkCommandBufferInheritanceRenderingInfo structure included in the pNext chain of
VkCommandBufferBeginInfo::pInheritanceInfo used to begin recording each element of pCommandBuffers must be VK_FORMAT_UNDEFINED
"""

VK-GL-CTS Issue: 4160

Components: Vulkan

Affects: dEQP-VK.dynamic_rendering.partial_secondary_cmd_buff.*.unused_clear_attachments

Change-Id: Ia67e0e7115dc69e55544c5de60b9a4ed6c17f60c

16 months agoRemove OpImage*Dref* from mismatch type tests
Mohd Faisal [Fri, 9 Dec 2022 15:52:28 +0000 (15:52 +0000)]
Remove OpImage*Dref* from mismatch type tests

Mismatch type group testing non-depth formats and using
OpImage*Dref* instructions with vulkan formats not having depth
component is invalid usage.

Extending the mismatch test type group to include depth/stencil
format later would require checking format features for
VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT

Components: Vulkan

Affects: dEQP-VK.spirv_assembly.instruction.graphics.image_sampler.*

VK-GL-CTS issue: 4172

Change-Id: I2353e235295cff4609799e14298e6df7d6a66221

16 months agoFix layer count in barriers in shader_layer tests
ziga-lunarg [Fri, 30 Dec 2022 16:04:22 +0000 (17:04 +0100)]
Fix layer count in barriers in shader_layer tests

Some barriers only transition the first layer of the image, instead of
all the layers used

Components: Vulkan

VK-GL-CTS issue: 4191

Affected tests:
dEQP-VK.draw.dynamic_rendering.*.shader_layer.*

Change-Id: I35d78b4575d450fbd7c3718ff2a639316f6113e4

16 months agoFix stencilAttachmentFormat in dynamic render clear tests
ziga-lunarg [Fri, 30 Dec 2022 19:18:21 +0000 (20:18 +0100)]
Fix stencilAttachmentFormat in dynamic render clear tests

The format in VkPipelineRenderingCreateInfo::stencilAttachmentFormat
must have a stencil aspect or be VK_FORMAT_UNDEFINED

Components: Vulkan

VK-GL-CTS issue: 4192

Affected tests:
dEQP-VK.draw.dynamic_rendering.*.load_clear_draw*

Change-Id: Ib0f055dd5ce49f5a2dff797274d5a243c46e8619

16 months agoAdd missing flags in dynamic rendering with secondary cmd buffers tests
ziga-lunarg [Mon, 2 Jan 2023 12:10:45 +0000 (13:10 +0100)]
Add missing flags in dynamic rendering with secondary cmd buffers tests

If vkCmdExecuteCommands is called within a dynamic render pass,
VkRenderingInfo::flags must include
VK_RENDERING_CONTENTS_SSECONDARY_COMMAND_BUFFERS_BIT

Components: Vulkan

VK-GL-CTS issue: 4194

Affected tests:
dEQP-VK.draw.dynamic_rendering.*.differing_interpolation.*

Change-Id: Ib8e3fa1e3144a6847a87dbf1542912c5c179e903

16 months agoFix tests that enable depth testing on undefined depth buffer
Iago Toral Quiroga [Mon, 9 Jan 2023 10:24:48 +0000 (11:24 +0100)]
Fix tests that enable depth testing on undefined depth buffer

There are tests in the load_store_op_none category set up like this:

Depth load: NONE
Depth store: NONE
Depth testing: ON
Depth op: GREATER
Depth write: OFF

This configuration is bogus because the depth buffer will be
undefined as this particular test won't initialize the render
area inside the render pass and it enabled depth testing
with a comparison function that depends on the contents of the
depth buffer.

Fix it by detecting this scenario and making the depth comparison
ALWAYS to ensure that depth testing doesn't drop any samples,
which is what the test expects.

Affects:
dEQP-VK.*.load_store_op_none.depth*

Components: Vulkan
VK-GL-CTS issue: 4209

Change-Id: Icab24dcf7f46156b7b59541ea64e5823deec53d1

16 months agoMerge vk-gl-cts/vulkan-cts-1.3.3 into vk-gl-cts/vulkan-cts-1.3.4
Piotr Byszewski [Mon, 16 Jan 2023 08:24:19 +0000 (09:24 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.3 into vk-gl-cts/vulkan-cts-1.3.4

Change-Id: I17cf242ff0a054151c0af294fdfb84646e743244

16 months agoUse tolerance for comparison in linear interpolation tests.
Amber [Tue, 3 Jan 2023 10:17:24 +0000 (11:17 +0100)]
Use tolerance for comparison in linear interpolation tests.

Components: Vulkan
VK-GL-CTS issue: 4159

Affected tests:
dEQP-VK.draw.*.linear_interpolation.*

Change-Id: I026bb0128dc78ddab75cbfdcaabab00a8d05386a

16 months agoFix memory offset in dedicated_allcation tests
ziga-lunarg [Mon, 2 Jan 2023 17:28:59 +0000 (18:28 +0100)]
Fix memory offset in dedicated_allcation tests

When dedicated allocation is used, memory offset must be 0

Components: Vulkan

VK-GL-CTS issue: 4195

Affected tests:
dEQP-VK.api.copy_and_blit.dedicated_allocation.*

Change-Id: I3bee6c17e7de2ee8bae5f218df9d2e03dc37689d

16 months agoMerge vk-gl-cts/vulkan-cts-1.3.2 into vk-gl-cts/vulkan-cts-1.3.3
Piotr Byszewski [Sun, 15 Jan 2023 16:59:05 +0000 (17:59 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.2 into vk-gl-cts/vulkan-cts-1.3.3

Change-Id: I7cfcfe8c9e3549a509420cbe1b63d089b3ee00dc

16 months agoFix color blend state in multisample mixed count tests
Ricardo Garcia [Tue, 10 Jan 2023 11:01:08 +0000 (12:01 +0100)]
Fix color blend state in multisample mixed count tests

Some test variants were passing a null color blend attachment state on
pipeline creation, when the subpass was being created with one color
attachment.

Affects:
dEQP-VK.pipeline.*.multisample.mixed_count.*

VK-GL-CTS issue: 4208
Components: Vulkan

Change-Id: I9e0c7a5be907baef3c2b7bb6286d92eaa6749a66

16 months agoMerge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/vulkan-cts-1.3.2
Piotr Byszewski [Sun, 15 Jan 2023 10:43:24 +0000 (11:43 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/vulkan-cts-1.3.2

Change-Id: I8ca4c0773084ff7b66bf7378ee9b610c693f15c6

16 months agoFix bind-transfer synchronization in sparse texture tests
Dae Kim [Fri, 16 Dec 2022 11:43:24 +0000 (11:43 +0000)]
Fix bind-transfer synchronization in sparse texture tests

The copyBufferToImage() utility function submits a command buffer with a
copy-buffer-to-image transfer operation. The caller can optionally pass
a semaphore for the transfer to wait on, but the semaphore's wait flags
are set to VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, which does not include
transfer operations.

As a consequence of this, the transfer operation may ignore the wait
semaphore. In the affected test set this means that the transfer may
happen before sparse bind operations are completed.

Affects: dEQP-VK.texture.*sparse*

Components: Vulkan

VK-GL-CTS issue: 4183

Change-Id: Ia0f0c721e492703301440dbfcf07ed6495fddb1e

16 months agoMerge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1
Piotr Byszewski [Fri, 13 Jan 2023 18:24:46 +0000 (19:24 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1

Change-Id: Icc5dc1c0cbfd798e6df0e7b88d4830e1549a4126

16 months agoMerge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0
Piotr Byszewski [Fri, 13 Jan 2023 16:21:02 +0000 (17:21 +0100)]
Merge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0

Change-Id: I2142832024febea1baee33b1df04af6921edb846

16 months agoRemove duplicated test groups
Piotr Byszewski [Fri, 13 Jan 2023 12:34:18 +0000 (13:34 +0100)]
Remove duplicated test groups

While adding support for dynamic rendering to renderpass group
a mistake was made that added 3 groups with the same tests to both
renderpass2 group and legacy renderpass group.

This mistake was fixed on 1.3.1 branch but is present on 1.2.8
and 1.3.0. There is no need to execute same tests twice - this
change removes duplicates. This fix should be propagated only to
1.3.0.

Components: Vulkan

VK-GL-CTS issue: 4225

Removed tests:
dEQP-VK.renderpass.depth_stencil_resolve.*
dEQP-VK.renderpass.fragment_density_map.*
dEQP-VK.renderpass2.multiple_subpasses_multiple_command_buffers.test

Change-Id: I571e499ead038acf1744c356b884f2be966e3c15

16 months agoFix oldLayout in image barriers in copy and blit tests
ziga-lunarg [Thu, 22 Dec 2022 12:52:24 +0000 (13:52 +0100)]
Fix oldLayout in image barriers in copy and blit tests

The same barriers are used twice, but the oldLayout is not updated

Components: Vulkan

VK-GL-CTS issue: 4054

Affected tests:
dEQP-VK.api.copy_and_blit.*

Change-Id: I8fd622846a2c9ce840ec6bfb5a431ae66a5af06f

16 months agoMerge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8
Piotr Byszewski [Fri, 13 Jan 2023 10:11:20 +0000 (11:11 +0100)]
Merge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8

Change-Id: I1139cfa0a1d27a08bd6d3c72b2d65fd754edc886

16 months agoRemove invalid separate_layouts tests on older branches
ziga-lunarg [Fri, 16 Dec 2022 16:31:54 +0000 (17:31 +0100)]
Remove invalid separate_layouts tests on older branches

These tests were fixed, but only on 1.3.2 newer, they should be removed
on older branches

Components: Vulkan

VK-GL-CTS issue: 3527

Removed tests:
dEQP-VK.renderpass2.depth_stencil_resolve.*separate_layouts.*

Change-Id: I467ea14cc5c2eb26723cc9e2453ea5a11a1556b9

16 months agoUpdate known conformance version for 1.3.5.0
Matthew Netsch [Mon, 9 Jan 2023 17:50:04 +0000 (09:50 -0800)]
Update known conformance version for 1.3.5.0

Components: Vulkan, Framework

Affects:
dEQP-VK.api.driver_properties.conformance_version

Change-Id: I0c959d1714251db1a571bc19890e19ce7e2cc493

16 months agoFix missing global_priority_transition tests
Piotr Byszewski [Wed, 21 Dec 2022 16:00:46 +0000 (17:00 +0100)]
Fix missing global_priority_transition tests

After recent vk video merge global_priority_transition tests
were removed from test tree. This issue is probably a result
of mistake that was done during video CL rebase 5 months ago.
This CL adds global_priority_transition tests back to test tree.

VK-GL-CTS issue: 4186

Components: Vulkan

Affects:
dEQP-VK.synchronization.*

Change-Id: I7d3ad9c6648ef560a0ce142574f7ec2ca3c0a504

16 months agoAdd tests for BufferView access with all formats supported interacted with fetchTexel...
Hyunjun Ko [Wed, 23 Nov 2022 04:35:33 +0000 (13:35 +0900)]
Add tests for BufferView access with all formats supported interacted with fetchTexel and ImageLoad

New tests:
dEQP-VK.api.buffer_view.access.uniform_texel_buffer.*
dEQP-VK.api.buffer_view.access.storage_texel_buffer.*

VK-GL-CTS Issue: 3812

Components: Vulkan

Change-Id: I02130542d4eb29bd9d0daf32c5c1727b7a53635f

16 months agoWarn if STORAGE_*_ATOMIC_BIT is set on multi-component formats.
Charlie Turner [Tue, 13 Dec 2022 18:24:44 +0000 (18:24 +0000)]
Warn if STORAGE_*_ATOMIC_BIT is set on multi-component formats.

VK-GL-CTS issue: 4174

Components: Vulkan

Affects: dEQP-VK.api.info.format_properties.*
Change-Id: I2ee730684aceb18130cc5f8a0d6cbad4865429b5

16 months agoEnable missing dedicated allocation tests in copy_and_blit
Charlie Turner [Mon, 12 Dec 2022 11:28:43 +0000 (11:28 +0000)]
Enable missing dedicated allocation tests in copy_and_blit

The compatible formats to test were being indexed from the wrong
array, colorImageFormatsToTest fortunately has fewer elements than
dedicatedAllocationImageToImageFormatsToTest so nothing was crashing,
but the CTS was missing test coverage here.

New tests:
dEQP-VK.api.copy_and_blit.copy_commands2.image_to_image.*r16g16b16a16_*
dEQP-VK.api.copy_and_blit.dedicated_allocation.image_to_image.*r16g16b16a16_*
dEQP-VK.api.copy_and_blit.copy_commands2.image_to_image.*r32g32b32_*
dEQP-VK.api.copy_and_blit.dedicated_allocation.image_to_image.*r32g32b32_*
dEQP-VK.api.copy_and_blit.copy_commands2.image_to_image.*r32g32b32a32_*
dEQP-VK.api.copy_and_blit.dedicated_allocation.image_to_image.*r32g32b32a32_*

Components: Vulkan
Change-Id: Ifbfad14e2d2a1b5b7f7b643eb41b36f8fa90f19a

16 months agoTreat DynamicLibrary library list as alternatives
Ricardo Garcia [Mon, 12 Dec 2022 09:17:21 +0000 (10:17 +0100)]
Treat DynamicLibrary library list as alternatives

Instead of attempting to load all libraries provided, we should only
attempt to load one of them and stop when the first one succeeds.

Affects WSI tests in DRM envs.

Specifically affects:
dEQP-VK.api.device_drm_properties.drm_files_exist

Components: Framework, Vulkan
VK-GL-CTS issue: 4171
VK-GL-CTS public issue: 303

Change-Id: Ib86d25662ce0b783b37ebacb26a6944452d22fd2

16 months agoEnsure that some clear commands ignore conditionals.
Amber [Fri, 16 Dec 2022 08:48:37 +0000 (09:48 +0100)]
Ensure that some clear commands ignore conditionals.

New tests:
dEQP-VK.conditional_rendering.conditional_ignore.*

Components: Vulkan
VK-GL-CTS issue: 3714

Change-Id: I0acef833ad08e961732d4567a6ee7128c857e35f

16 months agoAdd tests for a renderpass with LOAD_OP_CLEAR and STORE_OP_STORE
Amber [Mon, 12 Dec 2022 09:30:01 +0000 (10:30 +0100)]
Add tests for a renderpass with LOAD_OP_CLEAR and STORE_OP_STORE

VK-GL-CTS issue: 3734

Components: Vulkan

New tests:
dEQP-VK.renderpass.no_draws.render_pass_no_draw_clear_load_store
dEQP-VK.renderpass2.no_draws.render_pass2_no_draw_clear_load_store

Change-Id: Ic2567598ce13eaed9eec2788b6ec8e05101b3e5f

16 months agoTest device entry-points from instance extensions
Piotr Byszewski [Tue, 13 Dec 2022 15:24:31 +0000 (16:24 +0100)]
Test device entry-points from instance extensions

This change searches for all device-level entry-points
from instance extensions and saves them to new
vkEntryPointValidation.inl file.
It also ads a test case that uses data from this file
to verify that vkGetDeviceProcAddr returns
non-NULL for found functions.

VK-GL-CTS issue: 3940

Components: Vulkan

Affects:
dEQP-VK.info.instance_extension_device_functions

Change-Id: I07deb5402d4bf47de5556bca9e69d7e549527692

16 months agoFix state query tests for desktop GL context
Tapani Pälli [Tue, 13 Dec 2022 15:44:32 +0000 (17:44 +0200)]
Fix state query tests for desktop GL context

Affects:
dEQP-GL45-ES3.functional.state_query.integers.generate_mipmap_hint*
dEQP-GL45-ES3.functional.state_query.integers.viewport*
dEQP-GL45-ES3.functional.state_query.texture.texture*
dEQP-GL45-ES3.functional.state_query.rbo.renderbuffer_internal_format
dEQP-GL45-ES3.functional.state_query.shader.vertex_attrib*

Components: OpenGL
VK-GL-CTS issue: 3761

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

16 months agoSupport GL 4.5 in the 'negative' tests
Mykola Piatykop [Wed, 3 Aug 2022 11:01:04 +0000 (14:01 +0300)]
Support GL 4.5 in the 'negative' tests

This patch is port of 512fa1c1bc1930a1966df7caefb3c199ac02a919

Components: OpenGL
Public PR: 343
VK-GL-CTS Issue: 3761

Affects:
dEQP-GL45-ES3.functional.negative_api.*
dEQP-GLES3.functional.negative_api.*

Signed-off-by: Mykola Piatykop <mykola.piatykop@globallogic.com>
Change-Id: Ia542efae198fab6986d57502e25c49a01152653c

16 months agoMerge vk-gl-cts/vulkan-cts-1.3.4 into vk-gl-cts/main
Piotr Byszewski [Mon, 9 Jan 2023 09:34:02 +0000 (10:34 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.4 into vk-gl-cts/main

Change-Id: I1e73bed5ac5b17674402a1f177c6535906fab210

16 months agoMerge vk-gl-cts/vulkan-cts-1.3.3 into vk-gl-cts/vulkan-cts-1.3.4
Piotr Byszewski [Mon, 9 Jan 2023 08:17:58 +0000 (09:17 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.3 into vk-gl-cts/vulkan-cts-1.3.4

Change-Id: If8b58ba0befe6c8e2beb9a1867656da231a6cf87

16 months agoRequire sampleRateShading in multisample linear interpolation tests
Ricardo Garcia [Fri, 9 Dec 2022 11:57:38 +0000 (12:57 +0100)]
Require sampleRateShading in multisample linear interpolation tests

While these tests normally set sampleShadingEnable to VK_FALSE, their
shaders enable the SampleRateShading capability, which means
sampleRateShading is required to run them.

Affects:
dEQP-VK.draw.*.linear_interpolation.*

VK-GL-CTS issue: 4167
Components: Vulkan

Change-Id: I52f9f81b13186d2b152f46ecadbc73455ffbf063

17 months agoMerge vk-gl-cts/vulkan-cts-1.3.2 into vk-gl-cts/vulkan-cts-1.3.3
Piotr Byszewski [Sat, 7 Jan 2023 15:03:55 +0000 (16:03 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.2 into vk-gl-cts/vulkan-cts-1.3.3

Change-Id: I467e6a22adfe0bd549a37378b9eee8220859d0e0

17 months agoMake depth_bias_triangle_list_point write to PointSize
Amber [Tue, 3 Jan 2023 13:58:15 +0000 (14:58 +0100)]
Make depth_bias_triangle_list_point write to PointSize

VK-GL-CTS Issue: 4197
Components: Vulkan

Affect tests:
dEQP-VK.draw.renderpass.depth_bias.depth_bias_triangle_list_point

Change-Id: I21c223ff1e986c48fc90f97d21d472cfa713abdf

17 months agoMerge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/vulkan-cts-1.3.2
Piotr Byszewski [Sat, 7 Jan 2023 13:27:45 +0000 (14:27 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/vulkan-cts-1.3.2

Change-Id: I1ed2965c43158b0131f340237dbebfcf5b2aaf5f

17 months agoMerge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1
Piotr Byszewski [Sat, 7 Jan 2023 12:15:11 +0000 (13:15 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1

Change-Id: Ie8e4ee5b77cbea1aa87664a38a074f2381d2ea15

17 months agoMerge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0
Piotr Byszewski [Sat, 7 Jan 2023 11:05:29 +0000 (12:05 +0100)]
Merge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0

Change-Id: I7507fe1cee9b7bccdbfc4883f0ee6937c116b30a

17 months agoMerge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8
Piotr Byszewski [Thu, 5 Jan 2023 18:12:20 +0000 (19:12 +0100)]
Merge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8

Change-Id: Iea24c631e95fad0dbf694e67f141c243fda3a3d9

17 months agoFix 2d image views in fragment shading rate tests
ziga-lunarg [Sat, 19 Nov 2022 22:46:51 +0000 (23:46 +0100)]
Fix 2d image views in fragment shading rate tests

If viewType is VK_IMAGE_VIEW_TYPE_2D then subresourceRange.layerCount
must be 1

Components: Vulkan

VK-GL-CTS issue: 4124

Affected tests:
dEQP-VK.fragment_shading_rate.*

Change-Id: I32db55ce0785a2d91c391625bfed312d5e7371f0

17 months agoVideo tests plan for VK_KHR_video_queue
Marcin Zając [Thu, 31 Mar 2022 12:50:57 +0000 (14:50 +0200)]
Video tests plan for VK_KHR_video_queue

Test coverage for vulkan video

Add tests:
 * dEQP-VK.video.capabilities.*
 * dEQP-VK.video.decode.h264*
 * dEQP-VK.video.decode.h265*
 * dEQP-VK.video.synchronization.*
 * dEQP-VK.video.synchronization2.*

Affect tests:
 * dEQP-VK.*

Components: Framework, Vulkan

VK-GL-CTS issue: 2847

Change-Id: Ie15b46132b8260771074f011f33fed59357b7a5b

17 months agoAdd tests for interpolateAtSample with GPL and null MSAA state.
Amber [Thu, 24 Nov 2022 15:22:54 +0000 (16:22 +0100)]
Add tests for interpolateAtSample with GPL and null MSAA state.

New tests:
dEQP-VK.pipeline.fast_linked_library.misc.interpolate_at_sample_no_sample_shading

Components: Vulkan
VK-GL-CTS issue: #3976

Change-Id: Ic3a3508f6555a8f45e82fdf56ab192720fcfdd49

17 months agoAdd tests for dynamic patch control points and multiple pipelines.
Amber [Wed, 16 Nov 2022 08:47:03 +0000 (09:47 +0100)]
Add tests for dynamic patch control points and multiple pipelines.

These tests make sure that drawing while dynamic patch control points
are used along with multiple pipelines with differing tesselation shader
parameters works as expected.

VK-GL-CTS issue: 4028

Components: Vulkan

New tests:
dEQP-VK.pipeline.*.dynamic_control_points.change_output
dEQP-VK.pipeline.*.dynamic_control_points.change_output_winding
dEQP-VK.pipeline.*.dynamic_control_points.change_winding

Change-Id: Id3c4342708eb4f8bbe2f2a519da1ffbb1cd8dd1c

17 months agoSet each dyanmic state to proper stage on a pipeline with
Hyunjun Ko [Mon, 12 Dec 2022 01:50:38 +0000 (10:50 +0900)]
Set each dyanmic state to proper stage on a pipeline with
graphics pipleline library enabled.

Affects:
dEQP-VK.pipeline.pipeline_library.extended_dynamic_state.*
dEQP-VK.pipeline.fast_linked_library.extended_dynamic_state.*

VK-GL-CTS Issue: 3853

Components: Vulkan

Change-Id: Ie875d699ed475de9e60dae7abe88106ea1e3e2cd

17 months agoSkip implicit PrimitiveID checks on devices without geometry shader support
Charlie Turner [Wed, 7 Dec 2022 01:22:50 +0000 (01:22 +0000)]
Skip implicit PrimitiveID checks on devices without geometry shader support

Since the fragment shader unconditionally uses gl_PrimitiveID, these
tests must be run on a device with geometry shader support, since a
variable decorated with PrimitiveId in SPIR-V requires one of of the
Geometry or Tessellation features according to the SPIR-V spec.

Reported by Alexis Hetu.

Affects:
dEQP-VK.pipeline.fast_linked_library.misc.implicit_primitive_id
dEQP-VK.pipeline.monolithic.misc.implicit_primitive_id
dEQP-VK.pipeline.pipeline_library.misc.implicit_primitive_id

VK-GL-CTS issue: 3932
Components: Vulkan

Change-Id: Ic9df03d6c4d4f509d8ef93ed0ec7080d99248c68

17 months agoFix atomic tests' texture size
Aitor Camacho [Tue, 8 Nov 2022 19:01:27 +0000 (20:01 +0100)]
Fix atomic tests' texture size

Atomic tests did not check if the wanted texture size for the
tested texture type is supported by the device

Affects:
*.image_load_store.*.atomic.*return_value

Components: OpenGL, OpenGL ES

VK-GL-CTS issue: 2876

Change-Id: If3d7e233480f65877ceb981057fd9d620c563e58

17 months agoFix to enable the robustness extension.
Hyunjun Ko [Fri, 25 Nov 2022 01:48:36 +0000 (10:48 +0900)]
Fix to enable the robustness extension.

Affects:
dEQP-VK.binding_model.descriptor_buffer.robust.buffer_access.*

VK-GL-CTS Issue: 4141

Components: Vulkan

Change-Id: Iffbdc66b353d2192d1f15c1370a0ef114cc84c4c

17 months agoRename CTS "build" Python module to "ctsbuild"
Ricardo Garcia [Fri, 9 Dec 2022 14:38:39 +0000 (15:38 +0100)]
Rename CTS "build" Python module to "ctsbuild"

This avoid name conflicts with a popular Python module that may be
installed in the system.

VK-GL-CTS issue: 4162
VK-GL-CTS public issue: 334
Components: Framework

Change-Id: Ic89cbf59e0f9bc00c0a94fb303f3c2051332365f

17 months agoFix Android release build due to unused variable
Ricardo Garcia [Thu, 15 Dec 2022 09:28:31 +0000 (10:28 +0100)]
Fix Android release build due to unused variable

The affected variable is a static constexpr uint32_t that's only used
for an assertion in debug builds.

No test results should be affected by this change.

Components: Vulkan
VK-GL-CTS issue: 4178

Change-Id: I970b2c82760fd54be91bfe9549baa8ebc57bb0f9

17 months agoFix primitive fragment shading rate mesh feature requirements
Ricardo Garcia [Mon, 5 Dec 2022 09:55:16 +0000 (10:55 +0100)]
Fix primitive fragment shading rate mesh feature requirements

primitiveFragmentShadingRate is mandatory if
primitiveFragmentShadingRateMeshShader is supported. This was not
correctly expressed in the feature requirements test.

Affects:
dEQP-VK.info.device_mandatory_features
dEQP-VKSC.info.device_mandatory_features

Components: Vulkan
VK-GL-CTS issue: 4154

Change-Id: If34eeb119c0dc8404dbca14271119fc09461fe16

17 months agoAdd some extra boilerplate handling functions.
Amber [Tue, 22 Nov 2022 09:15:10 +0000 (10:15 +0100)]
Add some extra boilerplate handling functions.

These facilitate the creation of images with buffers
for verification and views associated with them, easier
creation of command buffers and a more compact way to
use instance interfaces devices and allocators.

Affected tests:
dEQP-VK.compute.basic.copy_ssbo_to_image_small
dEQP-VK.compute.basic.copy_ssbo_to_image_large

Components: Vulkan

Change-Id: I0bc396382fe6cab16e2b23fb3c2961cc4f7ae97b

17 months agoAdds missing coverage of buffer markers with non-zero memory offset
Charlie Turner [Tue, 29 Nov 2022 08:05:04 +0000 (09:05 +0100)]
Adds missing coverage of buffer markers with non-zero memory offset

Ensure that writing buffer markers to VkBuffer's backed with an
allocation at an offset works as intended.

Since SimpleAllocator was passing 0u as an offset to internal helper
classes, it seemed a logical place to expose the ability to perform a
suballocation in the backing device memory.

ExternalHostMemory was not a clean fit to the allocator interfaces, so
there the offset as been wedged in with some pointer arithmetic.

This covers an issue fixed by,

https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16698

Also included are some refactoring's to use more code from the DE
libraries, rather than duplicating in this test class.

Components: Vulkan

Co-authored-by: Amber <amber@igalia.com>
New tests:
dEQP-VK.api.buffer_marker.graphics.external_host_mem.top_of_pipe.sequential.64_offset_16
dEQP-VK.api.buffer_marker.graphics.external_host_mem.top_of_pipe.sequential.65536_offset_1024
dEQP-VK.api.buffer_marker.graphics.external_host_mem.top_of_pipe.overwrite.64_offset_24
dEQP-VK.api.buffer_marker.graphics.external_host_mem.top_of_pipe.memory_dep.draw_offset_24
dEQP-VK.api.buffer_marker.graphics.external_host_mem.top_of_pipe.memory_dep.dispatch_offset_24
dEQP-VK.api.buffer_marker.graphics.external_host_mem.top_of_pipe.memory_dep.buffer_copy_offset_24
dEQP-VK.api.buffer_marker.graphics.external_host_mem.bottom_of_pipe.sequential.64_offset_16
dEQP-VK.api.buffer_marker.graphics.external_host_mem.bottom_of_pipe.sequential.65536_offset_1024
dEQP-VK.api.buffer_marker.graphics.external_host_mem.bottom_of_pipe.overwrite.64_offset_24
dEQP-VK.api.buffer_marker.graphics.external_host_mem.bottom_of_pipe.memory_dep.draw_offset_24
dEQP-VK.api.buffer_marker.graphics.external_host_mem.bottom_of_pipe.memory_dep.dispatch_offset_24
dEQP-VK.api.buffer_marker.graphics.external_host_mem.bottom_of_pipe.memory_dep.buffer_copy_offset_24
dEQP-VK.api.buffer_marker.graphics.default_mem.top_of_pipe.sequential.64_offset_16
dEQP-VK.api.buffer_marker.graphics.default_mem.top_of_pipe.sequential.65536_offset_1024
dEQP-VK.api.buffer_marker.graphics.default_mem.top_of_pipe.overwrite.64_offset_24
dEQP-VK.api.buffer_marker.graphics.default_mem.top_of_pipe.memory_dep.draw_offset_24
dEQP-VK.api.buffer_marker.graphics.default_mem.top_of_pipe.memory_dep.dispatch_offset_24
dEQP-VK.api.buffer_marker.graphics.default_mem.top_of_pipe.memory_dep.buffer_copy_offset_24
dEQP-VK.api.buffer_marker.graphics.default_mem.bottom_of_pipe.sequential.64_offset_16
dEQP-VK.api.buffer_marker.graphics.default_mem.bottom_of_pipe.sequential.65536_offset_1024
dEQP-VK.api.buffer_marker.graphics.default_mem.bottom_of_pipe.overwrite.64_offset_24
dEQP-VK.api.buffer_marker.graphics.default_mem.bottom_of_pipe.memory_dep.draw_offset_24
dEQP-VK.api.buffer_marker.graphics.default_mem.bottom_of_pipe.memory_dep.dispatch_offset_24
dEQP-VK.api.buffer_marker.graphics.default_mem.bottom_of_pipe.memory_dep.buffer_copy_offset_24
dEQP-VK.api.buffer_marker.compute.external_host_mem.top_of_pipe.sequential.64_offset_16
dEQP-VK.api.buffer_marker.compute.external_host_mem.top_of_pipe.sequential.65536_offset_1024
dEQP-VK.api.buffer_marker.compute.external_host_mem.top_of_pipe.overwrite.64_offset_24
dEQP-VK.api.buffer_marker.compute.external_host_mem.top_of_pipe.memory_dep.dispatch_offset_24
dEQP-VK.api.buffer_marker.compute.external_host_mem.top_of_pipe.memory_dep.buffer_copy_offset_24
dEQP-VK.api.buffer_marker.compute.external_host_mem.bottom_of_pipe.sequential.64_offset_16
dEQP-VK.api.buffer_marker.compute.external_host_mem.bottom_of_pipe.sequential.65536_offset_1024
dEQP-VK.api.buffer_marker.compute.external_host_mem.bottom_of_pipe.overwrite.64_offset_24
dEQP-VK.api.buffer_marker.compute.external_host_mem.bottom_of_pipe.memory_dep.dispatch_offset_24
dEQP-VK.api.buffer_marker.compute.external_host_mem.bottom_of_pipe.memory_dep.buffer_copy_offset_24
dEQP-VK.api.buffer_marker.compute.default_mem.top_of_pipe.sequential.64_offset_16
dEQP-VK.api.buffer_marker.compute.default_mem.top_of_pipe.sequential.65536_offset_1024
dEQP-VK.api.buffer_marker.compute.default_mem.top_of_pipe.overwrite.64_offset_24
dEQP-VK.api.buffer_marker.compute.default_mem.top_of_pipe.memory_dep.dispatch_offset_24
dEQP-VK.api.buffer_marker.compute.default_mem.top_of_pipe.memory_dep.buffer_copy_offset_24
dEQP-VK.api.buffer_marker.compute.default_mem.bottom_of_pipe.sequential.64_offset_16
dEQP-VK.api.buffer_marker.compute.default_mem.bottom_of_pipe.sequential.65536_offset_1024
dEQP-VK.api.buffer_marker.compute.default_mem.bottom_of_pipe.overwrite.64_offset_24
dEQP-VK.api.buffer_marker.compute.default_mem.bottom_of_pipe.memory_dep.dispatch_offset_24
dEQP-VK.api.buffer_marker.compute.default_mem.bottom_of_pipe.memory_dep.buffer_copy_offset_24
dEQP-VK.api.buffer_marker.transfer.external_host_mem.top_of_pipe.sequential.64_offset_16
dEQP-VK.api.buffer_marker.transfer.external_host_mem.top_of_pipe.sequential.65536_offset_1024
dEQP-VK.api.buffer_marker.transfer.external_host_mem.top_of_pipe.overwrite.64_offset_24
dEQP-VK.api.buffer_marker.transfer.external_host_mem.top_of_pipe.memory_dep.buffer_copy_offset_24
dEQP-VK.api.buffer_marker.transfer.external_host_mem.bottom_of_pipe.sequential.64_offset_16
dEQP-VK.api.buffer_marker.transfer.external_host_mem.bottom_of_pipe.sequential.65536_offset_1024
dEQP-VK.api.buffer_marker.transfer.external_host_mem.bottom_of_pipe.overwrite.64_offset_24
dEQP-VK.api.buffer_marker.transfer.external_host_mem.bottom_of_pipe.memory_dep.buffer_copy_offset_24
dEQP-VK.api.buffer_marker.transfer.default_mem.top_of_pipe.sequential.64_offset_16
dEQP-VK.api.buffer_marker.transfer.default_mem.top_of_pipe.sequential.65536_offset_1024
dEQP-VK.api.buffer_marker.transfer.default_mem.top_of_pipe.overwrite.64_offset_24
dEQP-VK.api.buffer_marker.transfer.default_mem.top_of_pipe.memory_dep.buffer_copy_offset_24
dEQP-VK.api.buffer_marker.transfer.default_mem.bottom_of_pipe.sequential.64_offset_16
dEQP-VK.api.buffer_marker.transfer.default_mem.bottom_of_pipe.sequential.65536_offset_1024
dEQP-VK.api.buffer_marker.transfer.default_mem.bottom_of_pipe.overwrite.64_offset_24

VK-GL-CTS issue: 3721

Change-Id: I5990d2a4903f0b4091cfc6f5dc61ec52699c7bae

17 months agoTest unused shader stages with graphics pipeline libraries
Ricardo Garcia [Tue, 22 Nov 2022 16:29:58 +0000 (17:29 +0100)]
Test unused shader stages with graphics pipeline libraries

Test pStages is properly ignored when creating graphics pipeline
libraries that do not need shading stages, like for vertex input state
and for fragment output state.

New tests:
dEQP-VK.pipeline.*.misc.unused_shader_stages*

Components: Vulkan
VK-GL-CTS issue: 4007

Change-Id: I3453fb48a422e135fc394ffc7d4ad006f1739a1f

17 months agoSome refactorings to improve wildcard performance on debug CTS builds
Eric Werness [Thu, 10 Nov 2022 22:23:15 +0000 (14:23 -0800)]
Some refactorings to improve wildcard performance on debug CTS builds

Measuring a VS2019 debug build running "--deqp-case=dEQP-VK.*faketestname" these changes
take the runtime from 800 seconds to 240 seconds

Tests run locally:

 --deqp-case=dEQP-VK.*faketestname and confirmed zero tests run and improved performance with debug build

Following commands run and confirmed same count of tests before and after the change:

Wildcard without dot

 --deqp-case=dEQP-VK.ray_tracing_pipeline*rgen*

Wildcard with dot

 --deqp-case=dEQP-VK.info.*

Wildcard at start and end

 --deqp-case=*peer_memory*

Components: Framework

VK-GL-CTS issue: 4149

Change-Id: I91348b3e0824014897393b6ee07864a4b786186f

17 months agoFix enabling robustBufferAccess in robust buffer write tests
ziga-lunarg [Thu, 8 Dec 2022 20:27:20 +0000 (21:27 +0100)]
Fix enabling robustBufferAccess in robust buffer write tests

Components: Vulkan

VK-GL-CTS issue: 4168

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

Change-Id: I14f612e461093c777bdede50b3d665fa7914ea13

17 months agoFix promoted feature structures tests
ziga-lunarg [Wed, 7 Dec 2022 16:22:19 +0000 (17:22 +0100)]
Fix promoted feature structures tests

Do not use structures from partially promoted features

Components: Vulkan

VK-GL-CTS issue: 4161

Affected tests:
dEQP-VK.api.info.get_physical_device_properties2.features.create_device_with_promoted1*_structures

Change-Id: I06d27e5371c5193c557c628db715698e2ada07a5

17 months agoMerge vk-gl-cts/vulkan-cts-1.3.4 into vk-gl-cts/main
Piotr Byszewski [Mon, 19 Dec 2022 08:11:13 +0000 (09:11 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.4 into vk-gl-cts/main

Change-Id: I4518d23a12781a845bc33bacd811b692689ef907

17 months agoFix src stage value in pipeline barrier used to init resolve images
Sławomir Cygan [Fri, 16 Sep 2022 16:22:14 +0000 (18:22 +0200)]
Fix src stage value in pipeline barrier used to init resolve images

srcStage cannot be 0 it synchronization2 feature is not explicitely
required (enabled) by the test.

Components: Vulkan

VK-GL-CTS Issue: 3949

Change-Id: I66d3b5b55ca3732ede7284a010a68841c0a04275
Affects: dEQP-VK.pipeline.*.multisample.misc.dynamic_rendering.*

17 months agoAllow 0 creation duration for pipeline libraries without shaders
Slawomir Cygan [Tue, 22 Nov 2022 16:50:16 +0000 (17:50 +0100)]
Allow 0 creation duration for pipeline libraries without shaders

Affects: dEQP-VK.pipeline.pipeline_library.creation_feedback.graphics_tests.*

VK-GL-CTS Issue: 4130

Components: Vulkan
Change-Id: Iebdeb76d30d4144ccba83c7d3ad4de7f269552c8

17 months agoMerge vk-gl-cts/vulkan-cts-1.3.3 into vk-gl-cts/vulkan-cts-1.3.4
Piotr Byszewski [Sun, 18 Dec 2022 16:24:48 +0000 (17:24 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.3 into vk-gl-cts/vulkan-cts-1.3.4

Change-Id: I473fdbb6258063ddc4b07598519f9212cf4850ef

17 months agoMerge vk-gl-cts/vulkan-cts-1.3.2 into vk-gl-cts/vulkan-cts-1.3.3
Piotr Byszewski [Fri, 16 Dec 2022 16:02:14 +0000 (17:02 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.2 into vk-gl-cts/vulkan-cts-1.3.3

Change-Id: I5b755219964c807f381973f14ad15f7806eb44ab

17 months agoAdd randomized constants to shaders in compare_link_times test
Slawomir Cygan [Mon, 14 Nov 2022 16:28:10 +0000 (17:28 +0100)]
Add randomized constants to shaders in compare_link_times test

Add some randomization to shaders in compare_link_times test
to get reproductible compilation times.

VK-GL-CTS Issue: 4109

Components: Vulkan

Affects:
dEQP-VK.pipeline.pipeline_library.graphics_library.misc.timing.compare_link_times

Change-Id: Idbd38d611edc955916b2c756115702cccd16a7d8

17 months agoFix invalid framebuffer in compressed texture 3D tests
ziga-lunarg [Sat, 10 Dec 2022 22:09:31 +0000 (23:09 +0100)]
Fix invalid framebuffer in compressed texture 3D tests

Framebuffer attachments must be created with viewType not equal to
VK_IMAGE_VIEW_TYPE_3D

Components: Vulkan

VK-GL-CTS issue: 4118

Affected tests:
dEQP-VK.texture.compressed_3D.*

Change-Id: I221fcc033266f8c344079f9ee9b1fa70c56d9dd9

17 months agoFix stencil op in depth bounds tests
ziga-lunarg [Mon, 5 Dec 2022 14:12:06 +0000 (15:12 +0100)]
Fix stencil op in depth bounds tests

If stencil attachment is in a read only layout and stencil test is
enabled, the stencil ops in VkPipelineDepthStencilStateCreateInfo must
be VK_STENCIL_OP_KEEP

Components: Vulkan

VK-GL-CTS issue: 4155

Affected tests:
dEQP-VK.dynamic_state.*.ds_state.depth_bounds_2*

Change-Id: Ifeb2ddca71e5cbd60afebd8d8b6dd77b5e7f2e9b

17 months agoFix result image format in RT pipeline flags test
Friedrich Vock [Mon, 5 Dec 2022 08:13:06 +0000 (09:13 +0100)]
Fix result image format in RT pipeline flags test

Tests were using an rgba32i format (VK_FORMAT_R32G32B32A32_SINT) but
declaring it in the shader as r32i.

Affects:
dEQP-VK.ray_tracing_pipeline.pipeline_no_null_shaders_flag.*

Components: Vulkan
VK-GL-CTS issue: 4151
VK-GL-CTS public issue: 365

Change-Id: Ia9dbd97544fce8a29a4fe7270fc617981648032f

17 months agoAdds missing multisample state structs.
Charlie Turner [Wed, 23 Nov 2022 21:35:05 +0000 (21:35 +0000)]
Adds missing multisample state structs.

When compiling a fragment shader pipeline library, the fragment shader
state is defined by, among other state, the
VkPipelineMultisampleStateCreateInfo if sample shading is enabled.

In the affected tests, a fragment shader module was being compiled
which accessed builtins decorated with SampleId. This in turn enabled
sample shading, and in such cases, the
VkPipelineMultisampleStateCreateInfo is potentially required by
drivers for their internal logic. For this reason the spec mandates
the struct's inclusion in the fragment shader state when sample
shading is enabled.

Unfortunately it's not simple to change the GraphicsPipelineWrapper to
avoid this erroneous configuration, since in general it would require
parsing the SPIR-V to check if the fragment shader is accessing any
input builtins with the problematic decorations.

Instead a validation run was done over
dEQP-VK.pipeline.pipeline_library.* to ensure there aren't other
callsites falling into this trap, and no other cases were found.

Components: Vulkan

Affects:
dEQP-VK.pipeline.pipeline_library.multisample.*

VK-GL-CTS issue: 3975

Change-Id: I33a6b391af800eb6c23d846b70a4aac2387a74e3

17 months agoMerge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/vulkan-cts-1.3.2
Piotr Byszewski [Fri, 16 Dec 2022 14:13:57 +0000 (15:13 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/vulkan-cts-1.3.2

Change-Id: I2d8979c34c4b9a18509e5c00ba123fa2a7520451

17 months agoFix VK_KHR_global_priority tests
Andrew Fobel [Mon, 5 Dec 2022 21:16:01 +0000 (16:16 -0500)]
Fix VK_KHR_global_priority tests

Use enabledExtensions to properly enable VK_EXT_global_priority_query
along with passing the globalPriorityQueryFeatures struct.

Components: Vulkan

VK-GL-CTS issue: 4157

Affected tests:
dEQP-VK.api.device_init.create_device_global_priority*

Change-Id: Ib024f187f835914bbcb94e42a40d60a32fed0f99

17 months agoWork around deArraySizeHelper deficiency with multi-dimension arrays
Piers Daniell [Mon, 5 Dec 2022 22:01:43 +0000 (15:01 -0700)]
Work around deArraySizeHelper deficiency with multi-dimension arrays

This fixes a compilation issue with some compilers with deArraySizeHelper
and implicitly sized multi-dimensional arrays.

Affects:

Compilation only.

Components: Framework, Vulkan

VK-GL-CTS issue: 4158

Change-Id: Ie200647f34096b54544aff7f8d82b1eefabbd586

17 months agoMerge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1
Piotr Byszewski [Fri, 16 Dec 2022 12:35:27 +0000 (13:35 +0100)]
Merge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1

Change-Id: Id3cf5e258bce8b7aec13bc44abdada774159136b

17 months agoMerge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0
Piotr Byszewski [Fri, 16 Dec 2022 11:15:18 +0000 (12:15 +0100)]
Merge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0

Change-Id: Ifdc6f7c08ccb5f65d44e406a7dc6ea6866102ad5

17 months agoMerge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8
Piotr Byszewski [Fri, 16 Dec 2022 08:42:48 +0000 (09:42 +0100)]
Merge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8

Change-Id: Ib14adccc08aa0dd8767e6dea0199e021885d292d

17 months agoFix errors in sparse resources tests
ziga-lunarg [Sat, 19 Nov 2022 13:02:59 +0000 (14:02 +0100)]
Fix errors in sparse resources tests

VK_EXT_shader_image_atomic_int64 extension must be enabled on the device
if used
Feature structs from non-enabled extensions must not be passed to
VkDeviceCreateInfo pNext
Checks if image formats are supported are missing

Components: Vulkan

VK-GL-CTS issue: 4122

Affected tests:
dEQP-VK.sparse_resources.shader_intrinsics.*

Change-Id: I4fcac8eae1d53826d5ef5f8a7dcc04bfe95f7360

17 months agoFix subpass dependency dstStageMask in shader_fragment_mask tests
ziga-lunarg [Fri, 18 Nov 2022 18:49:35 +0000 (19:49 +0100)]
Fix subpass dependency dstStageMask in shader_fragment_mask tests

Stage VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUT_BIT must be included if
access mask is VK_ACCESS_COLOR_ATTACHMENT_READ_BIT

Components: Vulkan

VK-GL-CTS issue: 4120

Affected tests:
dEQP-VK.pipeline.*.shader_fragment_mask.*

Change-Id: Iea2a62ff5781c50ad39d707a8eb0f1f4ce344f48

17 months agoSet correct pipeline barrier between clear image and trace ray
Yun Shu [Mon, 5 Dec 2022 08:20:43 +0000 (16:20 +0800)]
Set correct pipeline barrier between clear image and trace ray

The image is cleared with fixed value, then used as write destination
in ray tracing shaders. The pipeline barrier set for the image is
incorrect between clear command and trace ray command.

Affects:

dEQP-VK.ray_tracing_pipeline.large_shader_set.*

Components: Vulkan

VK-GL-CTS issue: 4137

Change-Id: I41dd55d51ea995c4c878e053f6d617b2e38ba5b1

17 months agoAdd check for the return value of vkGetPhysicalDeviceImageFormatProperties2
Amber [Mon, 21 Nov 2022 10:54:07 +0000 (11:54 +0100)]
Add check for the return value of vkGetPhysicalDeviceImageFormatProperties2

Also do not attempt to create images for depth/stencil usage using color formats.

Components: Vulkan

VK-GL-CTS issue: 4125

Affected tests:
dEQP-VK.api.external.memory.dma_buf.suballocated.image.info

Change-Id: If1f41b967d03f1b862c85277d6fe30b20ab1a110

17 months agoMerge vk-gl-cts/opengl-cts-4.6.2 into vk-gl-cts/main
Matthew Netsch [Mon, 12 Dec 2022 20:19:03 +0000 (20:19 +0000)]
Merge vk-gl-cts/opengl-cts-4.6.2 into vk-gl-cts/main

Change-Id: I6c10b7e95f3cbe7e67bba6b42515744f72793bb7

17 months agoMerge vk-gl-cts/opengl-es-cts-3.2.8 into vk-gl-cts/main
Matthew Netsch [Mon, 12 Dec 2022 19:26:52 +0000 (19:26 +0000)]
Merge vk-gl-cts/opengl-es-cts-3.2.8 into vk-gl-cts/main

Change-Id: Id6c7c5596314ec9e71f3bbe066c13c2e15311dab

17 months agoMerge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/opengl-es-cts-3.2.8
Matthew Netsch [Mon, 12 Dec 2022 18:58:05 +0000 (18:58 +0000)]
Merge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/opengl-es-cts-3.2.8

Change-Id: Ic173c93f035b93abbccffc972026a02ec3dfe924

18 months agoMerge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7
Matthew Netsch [Thu, 8 Dec 2022 23:06:19 +0000 (23:06 +0000)]
Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7

Change-Id: Idb97e283368a6bf5cd2532e2089083aee9ac6ef1

18 months agoCorrected shaders to draw uniform colors.
George Liu [Wed, 9 Nov 2022 07:55:45 +0000 (15:55 +0800)]
Corrected shaders to draw uniform colors.

For MSAA, the subsample of the pixel may be in the triangle, but the
center of the pixel is outside the triangle. This pixel depth may be out
of the depth range and gl_FragCoord.z is negative, especially when the
triangle is narrow and the depth gradient is large. This will draw an
unexpected black for the pixel after the calculation.

This only happens for configs that are not in the must-pass:
'--deqp-surface-width=3840 --deqp-surface-height=2160
--deqp-gl-config-name=rgba8888d24s8ms4'

Components: OpenGL ES
VK-GL-CTS issue: 4110
Affects: dEQP-GLES3.functional.occlusion_query.*

Change-Id: Ib92fe4b90e326bc8a313f123b1df1cdc4417f6d1

18 months agoAdd tests for 0 pWaitDstStageMask in VkSubmitInfo and events.
Amber [Fri, 11 Nov 2022 10:04:38 +0000 (11:04 +0100)]
Add tests for 0 pWaitDstStageMask in VkSubmitInfo and events.

VK-GL-CTS issue: 3904

Components: Vulkan

New tests:
dEQP-VK.synchronization2.basic.event.none_set_reset
dEQP-VK.synchronization2.basic.binary_semaphore.none_wait_submit

Change-Id: I54647969f51e2cb9f209b7a9d029bd3c83dbb822

18 months agoMerge vk-gl-cts/vulkan-cts-1.3.4 into vk-gl-cts/main
Matthew Netsch [Thu, 8 Dec 2022 22:01:49 +0000 (22:01 +0000)]
Merge vk-gl-cts/vulkan-cts-1.3.4 into vk-gl-cts/main

Change-Id: Ibe3bafb476b2ce3a0b76a469b8c2de3c2952ea23

18 months agoRemove clearing of pipeline creation feedbacks while veryfying them
Slawomir Cygan [Tue, 22 Nov 2022 16:37:51 +0000 (17:37 +0100)]
Remove clearing of pipeline creation feedbacks while veryfying them

This re-enables verification of pipeline creation feedbacks by not
zeroing them out just before verification.

VK-GL-CTS Issue: 4129

Affects: dEQP-VK.pipeline.pipeline_library.creation_feedback.graphics_tests.*

Components: Vulkan
Change-Id: I37010973db235f993b85e9ac3c2645ae5b2db79e

18 months agoMerge vk-gl-cts/vulkan-cts-1.3.3 into vk-gl-cts/vulkan-cts-1.3.4
Matthew Netsch [Thu, 8 Dec 2022 21:12:41 +0000 (21:12 +0000)]
Merge vk-gl-cts/vulkan-cts-1.3.3 into vk-gl-cts/vulkan-cts-1.3.4

Change-Id: Ieafa2f3085c673bd861f1e4ddff26897a16b43d9

18 months agoMerge vk-gl-cts/vulkan-cts-1.3.2 into vk-gl-cts/vulkan-cts-1.3.3
Matthew Netsch [Thu, 8 Dec 2022 20:28:58 +0000 (20:28 +0000)]
Merge vk-gl-cts/vulkan-cts-1.3.2 into vk-gl-cts/vulkan-cts-1.3.3

Change-Id: Ie018c65908482fac3de9a6030d79029e2429d734

18 months agoFix to get supported depth format instead of using VK_FORMAT_D32_SFLOAT
Hyunjun Ko [Tue, 29 Nov 2022 05:09:41 +0000 (14:09 +0900)]
Fix to get supported depth format instead of using VK_FORMAT_D32_SFLOAT
always.

Affets:
dEQP-VK.pipeline.pipeline_library.graphics_library.*

VK-GL-CTS Issue: 4142

Components: Vulkan
Change-Id: Ia8cb48061acd4813aecabb050c775a27ce1b4926

18 months agoMerge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/vulkan-cts-1.3.2
Matthew Netsch [Thu, 8 Dec 2022 19:57:31 +0000 (19:57 +0000)]
Merge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/vulkan-cts-1.3.2

Change-Id: I193ea9253a0d2d405e25d951ba1564f5ad805f3b

18 months agoMerge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1
Matthew Netsch [Thu, 8 Dec 2022 18:58:13 +0000 (18:58 +0000)]
Merge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1

Change-Id: Icc350abe29e7c1545a65d99884a281cd63239fc4

18 months agoMerge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0
Matthew Netsch [Thu, 8 Dec 2022 18:30:33 +0000 (18:30 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0

Change-Id: Ibfc5624676bae49d9630978494cdfdc660a0fba4

18 months agoMerge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8
Matthew Netsch [Thu, 8 Dec 2022 18:01:39 +0000 (18:01 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8

Change-Id: If5512ea90e2442bc7304502d78cc3b1333f53479

18 months agoWrite gl_PointSize in depth tests
ziga-lunarg [Sun, 4 Dec 2022 20:48:26 +0000 (21:48 +0100)]
Write gl_PointSize in depth tests

Some depth tests use VK_PRIMITIVE_TOPOLOGY_POINT_LIST but the shaders
don't write the point size

Components: Vulkan

VK-GL-CTS issue: 4153

Affected tests:
dEQP-VK.pipeline.*.depth.*

Change-Id: Idaa9ea65f7c43ca02d7780d1825d4558b712a133

18 months agoAdd check if format is supported in external memory host tests
ziga-lunarg [Mon, 5 Dec 2022 15:34:50 +0000 (16:34 +0100)]
Add check if format is supported in external memory host tests

Format properties for format used for color attachment must contain
VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT

Components: Vulkan

VK-GL-CTS issue: 4156

Affected tests:
dEQP-VK.memory.external_memory_host.bind_image_memory_and_render.*

Change-Id: Ib0346cbc849b94a5af67e5645cc057ca392f9b2f

18 months agoFix invalid framebuffer in compressed texture 3D tests
ziga-lunarg [Fri, 18 Nov 2022 18:11:56 +0000 (19:11 +0100)]
Fix invalid framebuffer in compressed texture 3D tests

Framebuffer attachments must be created with viewType not equal to
VK_IMAGE_VIEW_TYPE_3D

Components: Vulkan

VK-GL-CTS issue: 4118

Affected tests:
dEQP-VK.texture.compressed_3D.*

Change-Id: I9ae036d02daa3579567bf514c70bf623a0bc9aa9

18 months agoFix flushing memory range in memory model shared tests
ziga-lunarg [Sat, 19 Nov 2022 19:06:44 +0000 (20:06 +0100)]
Fix flushing memory range in memory model shared tests

Each size of pMemRanges in vkFlushMappedMemoryRanges must be either a
multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize or equal to the
size of memory

Components: Vulkan

VK-GL-CTS issue: 4123

Affected tests:
dEQP-VK.memory_model.shared.*

Change-Id: I0f3ea96736aa73eb92c7809c04297923d84e348c

18 months agoAdd tests with primitive restart generating no primitives
ziga-lunarg [Tue, 1 Nov 2022 18:43:21 +0000 (19:43 +0100)]
Add tests with primitive restart generating no primitives

If a primitive restart occurs while there's not enough vertices
specified to generate a primitive, the primitive should be dropped

Components: Vulkan

VK-GL-CTS issue: 3742

New tests:
dEQP-VK.pipeline.*.input_assembly.primitive_restart.*.restart_all_*

Change-Id: I3d1c2ca93cb2b0fd8c41faad2b07be8dd2b7b240

18 months agoAdd tests for VK_EXT_extended_dynamic_state3
Ricardo Garcia [Fri, 2 Dec 2022 16:47:13 +0000 (17:47 +0100)]
Add tests for VK_EXT_extended_dynamic_state3

This commit adds tests for every new dynamic state present in the
extension above.

New tests:
dEQP-VK.pipeline.*.extended_dynamic_state.*logic_op_enable*
dEQP-VK.pipeline.*.extended_dynamic_state.*logic_op_disable*
dEQP-VK.pipeline.*.extended_dynamic_state.*color_blend*
dEQP-VK.pipeline.*.extended_dynamic_state.*tess_domain_origin*
dEQP-VK.pipeline.*.extended_dynamic_state.*depth_clamp*
dEQP-VK.pipeline.*.extended_dynamic_state.*polygon_mode*
dEQP-VK.pipeline.*.extended_dynamic_state.*sample_mask*
dEQP-VK.pipeline.*.extended_dynamic_state.*alpha_to_coverage*
dEQP-VK.pipeline.*.extended_dynamic_state.*alpha_to_one*
dEQP-VK.pipeline.*.extended_dynamic_state.*color_write_mask*
dEQP-VK.pipeline.*.extended_dynamic_state.*rasterization_stream*
dEQP-VK.pipeline.*.extended_dynamic_state.*provoking_vertex*
dEQP-VK.pipeline.*.extended_dynamic_state.*negative_one_to_one*
dEQP-VK.pipeline.*.extended_dynamic_state.*depth_clip_enable*
dEQP-VK.pipeline.*.extended_dynamic_state.*line_stipple*
dEQP-VK.pipeline.*.extended_dynamic_state.*sample_locations*
dEQP-VK.pipeline.*.extended_dynamic_state.*conservative_rasterization*
dEQP-VK.pipeline.*.extended_dynamic_state.*extra_overestimation*
dEQP-VK.pipeline.*.extended_dynamic_state.*line_raster_mode*
dEQP-VK.pipeline.*.extended_dynamic_state.*coverage_to_color*
dEQP-VK.pipeline.*.extended_dynamic_state.*coverage_modulation*
dEQP-VK.pipeline.*.extended_dynamic_state.*coverage_reduction*
dEQP-VK.pipeline.*.extended_dynamic_state.*viewport_swizzle*
dEQP-VK.pipeline.*.extended_dynamic_state.*shading_rate_image*
dEQP-VK.pipeline.*.extended_dynamic_state.*viewport_w_scaling*
dEQP-VK.pipeline.*.extended_dynamic_state.*repr_frag_*
dEQP-VK.pipeline.*.extended_dynamic_state.*repr_frag_*
dEQP-VK.pipeline.*.extended_dynamic_state.*rasterization_samples*
dEQP-VK.api.*.extended_dynamic_state3_features_ext

Removed tests:
dEQP-VK.pipeline.*.extended_dynamic_state.*prim_restart_disable*
dEQP-VK.pipeline.*.extended_dynamic_state.*prim_restart_enable_on_both*

Affected tests:
dEQP-VK.pipeline.*.extended_dynamic_state.*

VK-GL-CTS issue: 3825
Components: Framework, Vulkan

Change-Id: I7cb6be852ceeedb6bb68590f88c5c5dd025c8eff