platform/upstream/VK-GL-CTS.git
2 years agoFix freeing custom device in dynamic state tests
Ricardo Garcia [Mon, 4 Apr 2022 15:58:55 +0000 (17:58 +0200)]
Fix freeing custom device in dynamic state tests

Some dynamic state tests use a custom device that was not being properly
freed when existing a test group that used the device. This sometimes
caused crashes on program termination.

No tests should be affected by this change. This fix only touches the
test hierarchy. However, to check the fix doesn't break anything:

dEQP-VK.dynamic_state.*

Components: Vulkan
VK-GL-CTS issue: 3602

Change-Id: I6bf97900497b6e795c1fbacef5b3fc68619a9ff4

2 years agoCheck extension support before using its image extended usage bit
Samuel Iglesias Gonsálvez [Mon, 28 Mar 2022 08:33:55 +0000 (10:33 +0200)]
Check extension support before using its image extended usage bit

Components: Vulkan
VK-GL-CTS issue: 3523

Fix:

   dEQP-VK.image.extended_usage_bit_compatibility.*

Change-Id: I5339402896320eee4434cf80679aa986ba882100
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
2 years agoFix bad merge affecting create_device_unsupported_features test
Piers Daniell [Mon, 4 Apr 2022 20:45:43 +0000 (14:45 -0600)]
Fix bad merge affecting create_device_unsupported_features test

This CL fixes the dEQP-VK.api.device_init.create_device_unsupported_features
test from reporting a false error with the pageableDeviceLocalMemory
feature.

Affects:

dEQP-VK.api.device_init.create_device_unsupported_features

Components: Vulkan

VK-GL-CTS issue: 3607

Change-Id: If14a1e2d90c2d5d8d11d47f40590c35048f4b8a0

2 years agoCheck for graphics pipeline library support in FSR tests
Ricardo Garcia [Tue, 5 Apr 2022 09:01:47 +0000 (11:01 +0200)]
Check for graphics pipeline library support in FSR tests

Fragment shading rate test variants using graphics pipeline library
were not checking for the extension to be supported.

Affected tests:
dEQP-VK.fragment_shading_rate.*.pipeline_library.*
dEQP-VK.fragment_shading_rate.*.fast_linked_library.*

Components: Vulkan
VK-GL-CTS issue: 3605

Change-Id: Iaa825424f4801ed0a38a78dfdacff533877506fb

2 years agoRestore the default pipeline layout creation flag
Piers Daniell [Tue, 5 Apr 2022 19:14:42 +0000 (13:14 -0600)]
Restore the default pipeline layout creation flag

Setting the VK_PIPELINE_LAYOUT_CREATE_INDEPENDENT_SETS_BIT_EXT flag
in the core framework makePipelineLayout() function means that all
tests, even tests that aren't testing VK_EXT_graphics_pipeline_library,
are creating pipeline layouts optimized for independent
partial pipelines.

This flag should only be set when actually testing that feature
since it can be less optimal than the regular pipeline layout,
and is not the default all applications currently use.

This CL restores the default flag and updates the tests that
need it to override the default flag.

Affects:

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

Components: Vulkan

VK-GL-CTS issue: 3609

Change-Id: Iabc8643707f03878426c9bbe87bc0c9ee856bfb3

2 years agovulkan: Templatize the DRM format modifier tests
James Jones [Wed, 23 Mar 2022 00:49:43 +0000 (17:49 -0700)]
vulkan: Templatize the DRM format modifier tests

Components: Vulkan

Affected tests:

dEQP-VK.drm_format_modifiers.list_modifiers.*
dEQP-VK.drm_format_modifiers.create_list_modifiers.*
dEQP-VK.drm_format_modifiers.export_import.*

VK-GL-CTS issue: 3579

Change-Id: Id8720806840433a8860550e504646718e5127ce3

2 years agoMerge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/vulkan-cts-1.3.2
Matthew Netsch [Fri, 8 Apr 2022 19:01:03 +0000 (12:01 -0700)]
Merge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/vulkan-cts-1.3.2

Change-Id: I569c33579928f5ecef8f0a402261b2e2112b345c

2 years agoAdd tests for surfaceless queries
Jari Komppa [Wed, 9 Mar 2022 12:18:13 +0000 (14:18 +0200)]
Add tests for surfaceless queries

This change adds tests for the VK_GOOGLE_surfaceless_query
extension.

New tests:
dEQP-VK.wsi.*.surface.query_formats_surfaceless
dEQP-VK.wsi.*.surface.query_formats2_surfaceless
dEQP-VK.wsi.*.surface.query_present_modes_surfaceless

Components: Vulkan
VK-GL-CTS issue: 3557

Change-Id: I6febafc855b500052e8dedcba810dd80fb5c1e71

2 years agoMerge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1
Matthew Netsch [Fri, 8 Apr 2022 17:52:41 +0000 (10:52 -0700)]
Merge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1

Change-Id: I7a3dfef17070866462056327110f798dde9f119d

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0
Matthew Netsch [Fri, 8 Apr 2022 16:14:23 +0000 (09:14 -0700)]
Merge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0

Change-Id: I35b6b6a32a0ef4bb72d628f26b96a1ac8df46858

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8
Matthew Netsch [Thu, 7 Apr 2022 20:56:53 +0000 (13:56 -0700)]
Merge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8

Change-Id: I2c051a776b06d23239eb3ce501a999088cd0c1de

2 years agoRework extensions_data and mandatory_features
Piotr Byszewski [Mon, 25 Oct 2021 19:11:51 +0000 (21:11 +0200)]
Rework extensions_data and mandatory_features

Data from mandatory_features.txt was split to multiple json files
one per extension/vulkan_version. Those files now also include data
that was previously stored in extensions_data.txt .

VK-GL-CTS issue: 3197

Components: Framework, Vulkan

Affects:
dEQP-VK.*

Change-Id: I9756237829366ff4140dcf59dc7548a8f4328cb7

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/vulkan-cts-1.2.7
Matthew Netsch [Thu, 7 Apr 2022 18:47:24 +0000 (11:47 -0700)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/vulkan-cts-1.2.7

Change-Id: I69f0b9b087df9c33b26ddd014fc1a291fc50dbdd

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6
Matthew Netsch [Thu, 7 Apr 2022 17:48:16 +0000 (17:48 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6

Change-Id: I4a1b44642747f72803ff97dafd55f4ba3fabad9e

2 years agoUse associated physical device from custom instance
Ari Suonpaa [Tue, 29 Mar 2022 08:56:44 +0000 (11:56 +0300)]
Use associated physical device from custom instance

Some of the API feature info tests created a custom instance,
but still used the default physical device. This is fixed by
choosing a physical device using the custom instance.

Comparison of VkPhysicalDeviceMemoryProperties was also
changed to only check the active memoryTypes and memoryHeaps
array elements instead of doing one large deMemCmp.

VK-GL-CTS Issue: 3590

Affects:

dEQP-VK.api.info.*

Components: Vulkan
Change-Id: I2378bcd1e97b7f85e533d34c5b5f6ac3e4fa9b93

2 years agoWait for deferred operations before obtaining RT pipeline handle
Ricardo Garcia [Tue, 29 Mar 2022 14:51:18 +0000 (16:51 +0200)]
Wait for deferred operations before obtaining RT pipeline handle

The ray tracing utils, when creating ray tracing pipelines and using
deferred operations, were using the VkPipeline pointer and handler
before the deferred operation had completed, which is against the spec.

Affected tests:
dEQP-VK.ray_tracing_pipeline.pipeline_library.configurations.multithreaded_compilation_dho.*
dEQP-VK.ray_tracing_pipeline.large_shader_set.cpu_ht*

Components: Vulkan
VK-GL-CTS issue: 3588

Change-Id: Ied8f443c01e99878180130963b8988852171b8a0

2 years agoFix subgroup size control failure logging
Mike Blumenkrantz [Thu, 31 Mar 2022 13:07:29 +0000 (15:07 +0200)]
Fix subgroup size control failure logging

One of the failure messages was missing the message terminator, which
prevented it from ever being logged.

Affects:
dEQP-VK.subgroups.size_control*

Components: Vulkan
VK-GL-CTS issue: 3596

Change-Id: If649a11e0f6cf0f5e69e438d46b385b26e57dfe4

2 years agoParse test case result version when converting to XML
Ricardo Garcia [Fri, 1 Apr 2022 10:01:40 +0000 (12:01 +0200)]
Parse test case result version when converting to XML

When parsing QPA files, extract the test case result version so it can
be later used to print the proper version when converting to XML files.

Components: Framework
VK-GL-CTS issue: 3573
VK-GL-CTS public issue: 287

Change-Id: I34d005621685b0ef31a7092ec7c40e6626bf20e3

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/vulkan-cts-1.2.5
Matthew Netsch [Thu, 7 Apr 2022 17:24:00 +0000 (17:24 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/vulkan-cts-1.2.5

Change-Id: I25f8f2f56ab07a9c3f04e8cfa54f2efc11bfd80a

2 years agoAdd queue ownership release in modifier tests
Nanley Chery [Wed, 16 Mar 2022 20:08:04 +0000 (13:08 -0700)]
Add queue ownership release in modifier tests

Queue ownership transfers require a release operation and an acquire
operation. Before this patch, this test only performed the acquire
operation.

Components: Vulkan

VK-GL-CTS issue: 3575

Affects: dEQP-VK.drm_format_modifiers.export_import.*
Change-Id: I2998d7928d1042d6a159e1173257ee551c1120a5

2 years agoFix incorrect layout transition in modifier tests
Nanley Chery [Wed, 16 Mar 2022 20:40:46 +0000 (13:40 -0700)]
Fix incorrect layout transition in modifier tests

The queue family ownership acquire operation specifies a layout
transition from the pre-initialized layout. The image isn't in the
pre-initialized layout however, it's in the transfer dst optimal layout.
Align with the Vulkan spec, which says:

When performing a layout transition on an image subresource, the
old layout value must either equal the current layout of the
image subresource (at the time the transition executes), or else
be VK_IMAGE_LAYOUT_UNDEFINED (implying that the contents of the
image subresource need not be preserved).

Components: Vulkan

VK-GL-CTS issue: 3575

Affects: dEQP-VK.drm_format_modifiers.export_import.*
Change-Id: I76dbb54c699ed7d34e964de17f71ef01bc9e98a5

2 years agoFix lossy layout transitions in modifier tests
Nanley Chery [Wed, 16 Mar 2022 20:07:07 +0000 (13:07 -0700)]
Fix lossy layout transitions in modifier tests

The test performs several layout transitions that use
VK_IMAGE_LAYOUT_UNDEFINED for the initial layout. The spec says that
these transitions cause images to become undefined. The test expects
defined data from these images however. Replace these initial layouts
with layouts that don't cause data loss.

Components: Vulkan

VK-GL-CTS issue: 3575

Affects: dEQP-VK.drm_format_modifiers.export_import.*
Change-Id: I5e57dd197d461fba800d50239803d525c5334ac4

2 years agoFixes pipeline library merge
Matthew Netsch [Mon, 4 Apr 2022 15:10:33 +0000 (08:10 -0700)]
Fixes pipeline library merge

Components: Vulkan, Framework
VK-GL-CTS Issue: 3606

Change-Id: I0c14e4dac195977ac6bc13a5cc817e9089b65266

2 years agoMerge changes I12ee2542,Ic8530cb6 into main
Matthew Netsch [Fri, 1 Apr 2022 21:07:07 +0000 (21:07 +0000)]
Merge changes I12ee2542,Ic8530cb6 into main

* changes:
  Merge vk-gl-cts/dev/VK_EXT_pipeline_library into vk-gl-cts/main
  Merge vk-gl-cts/dev/VK_EXT_primitives_generated_query into vk-gl-cts/main

2 years agoAdd more video exclusions to gen_framework.py
Charles Johnston [Thu, 31 Mar 2022 21:45:29 +0000 (17:45 -0400)]
Add more video exclusions to gen_framework.py

Prevents build errors.

Components: Vulkan

VK-GL-CTS issue: 3551

Change-Id: I2b59ef06a3bcfbb8d328db748152ef3e4a7bf7bf

2 years agoRemove a wrong qualityWarning for fbo completeness test
houlei1994 [Sun, 27 Feb 2022 04:32:06 +0000 (12:32 +0800)]
Remove a wrong qualityWarning for fbo completeness test

Components: OpenGL
VK-GL-CTS public issue: 296

Affects:
dEQP-GLES2.functional.fbo.completeness.attachment_combinations.*

Change-Id: Ic0ebb0d861cf9e5503d2be1368050a88d2b4d9b7

2 years agoMerge vk-gl-cts/dev/VK_EXT_pipeline_library into vk-gl-cts/main
Matthew Netsch [Fri, 1 Apr 2022 20:55:22 +0000 (13:55 -0700)]
Merge vk-gl-cts/dev/VK_EXT_pipeline_library into vk-gl-cts/main

Change-Id: I12ee2542aa31e0942a3827ea59abc64e20624daf

2 years agoMerge vk-gl-cts/dev/VK_EXT_primitives_generated_query into vk-gl-cts/main
Matthew Netsch [Fri, 1 Apr 2022 20:52:51 +0000 (13:52 -0700)]
Merge vk-gl-cts/dev/VK_EXT_primitives_generated_query into vk-gl-cts/main

Change-Id: Ic8530cb607cee5062611ccf40f409549edfa94aa

2 years agoMerge vk-gl-cts/main into vk-gl-cts/dev/VK_EXT_primitives_generated_query
Matthew Netsch [Fri, 1 Apr 2022 20:50:55 +0000 (13:50 -0700)]
Merge vk-gl-cts/main into vk-gl-cts/dev/VK_EXT_primitives_generated_query

Change-Id: Id9a4afa9f27f79bc0c2fe5023197e82ca979157a

2 years agoFixes Conditional Rendering local memory tests
Matthew Netsch [Fri, 1 Apr 2022 20:36:43 +0000 (13:36 -0700)]
Fixes Conditional Rendering local memory tests

Commit was not up to date with android CTS
update

Components: Vulkan

Affects:
dEQP-VK.conditional_rendering.*

Change-Id: Idd3b56426888e788cd255f44ef6ba35672310944

2 years agoMerge main into VK_KHR_graphics_pipeline_library
Piotr Byszewski [Fri, 1 Apr 2022 14:40:35 +0000 (16:40 +0200)]
Merge main into VK_KHR_graphics_pipeline_library

Components: Vulkan

VK-GL-CTS issue: 3310

Affects:
dEQP-VK.dynamic_state.*
dEQP-VK.pipeline.*
dEQP-VK.fragment_shading_rate.*

Change-Id: I93de4c5a0c029b67484c1c23cf285649ff12189c

2 years agoReduce framebuffer size on some graphicsfuzz tests
Graeme Leese [Wed, 23 Mar 2022 11:44:36 +0000 (11:44 +0000)]
Reduce framebuffer size on some graphicsfuzz tests

Many graphicsfuzz tests are using a 256x256 framebuffer even though all
pixels or almost all pixels are generating the same results. This CL
reduces the framebuffer size to 16x16 for a some of the tests that are
causing problems in some of our test builds.

Components: Vulkan
Affects: dEQP-VK.graphicsfuzz.cov-dfdx-dfdy-after-nested-loops
         dEQP-VK.graphicsfuzz.cov-nested-loop-large-array-index-using-vector-components
         dEQP-VK.graphicsfuzz.cov-nested-loops-different-iteration-rates-function-copy-array-elements
         dEQP-VK.graphicsfuzz.cov-nested-loops-set-struct-data-verify-in-function

Change-Id: I25fbbb09473d86140a23b1218db344484b563653

2 years agoSimplify isDeviceFunctionalitySupported
Graeme Leese [Thu, 3 Mar 2022 17:55:48 +0000 (17:55 +0000)]
Simplify isDeviceFunctionalitySupported

Add comments explaining the two parts of the check and simplify the
checking of extensions that the device reports are supported -- the
feature bits are compulsory when the extension is supported.

Components: Vulkan
VK-GL-CTS issue: 3149
Affects: dEQP-VK.*

Change-Id: Iec81cdf588146d2adb07871b5950024d3cdcf189

2 years agoExtend conditional rendering tests to use buffer with device local memory
Illia Abernikhin [Wed, 16 Mar 2022 13:05:08 +0000 (15:05 +0200)]
Extend conditional rendering tests to use buffer with device local memory

Components: Vulkan

Affects:
dEQP-VK.conditional_rendering.*

Change-Id: I3ce597cf8850ff6cebf5f3e2db0b7fbe68d476b0

2 years agoActually test compatible depth/stencil attachment formats
Jason Ekstrand [Sat, 12 Feb 2022 05:36:02 +0000 (23:36 -0600)]
Actually test compatible depth/stencil attachment formats

These tests claimed to test "compatible" depth resolve formats, i.e.,
resolving to a depth-only format from a depth/stencil format.  However,
it only set the depth-only format on the renderpass and not on the
single-sampled image.  This meant it was in violation of the following
VU because the image view and attachment format didn't match:

    VUID-VkRenderPassBeginInfo-framebuffer-03216

    If framebuffer was created with a VkFramebufferCreateInfo::flags
    value that included VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT, each
    element of the pAttachments member of a
    VkRenderPassAttachmentBeginInfo structure included in the pNext
    chain must be a VkImageView of an image created with a value of
    VkImageViewCreateInfo::format equal to the corresponding value of
    VkAttachmentDescription::format in renderPass

Unfortunately, once I fixed the format, it turned into a bit of a rabbit
hole because aspects were also messed up various places and then layouts
as well.

Components: Vulkan
Affects: dEQP-VK.renderpass2.depth_stencil_resolve.*separate_layouts.*

Change-Id: I34f5dd2cbccae2a695cbe05a22908ba544b0a6a6

2 years agoAdd a GraphicsFuzz coverage test
Antto Mäkinen [Thu, 20 Jan 2022 09:15:52 +0000 (11:15 +0200)]
Add a GraphicsFuzz coverage test

Adds a GraphicsFuzz coverage test which has been separated by request.

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.cov-global-loop-counter-accumulate-integer-condition-large-array-elements

Change-Id: I3c90c09743f50f6ab23d271706f54269d703416d

2 years agoAdd coverage for depth bias with polygon topologies and fill modes
Juha Heiskanen [Tue, 21 Sep 2021 05:52:28 +0000 (08:52 +0300)]
Add coverage for depth bias with polygon topologies and fill modes

In these test we are applying the depth bias by using
depthBiasConstantFactor. Polygon topologies with fill, line and point
polygon modes are tested.

Components: Vulkan

VK-GL-CTS Issue: 3055

New tests: dEQP-VK.draw.renderpass.depth_bias.depth_bias_*

Change-Id: I5cb5a1c8ee13fa0f6c56edaf21eda4e19b6d144c

2 years agoFix feature checks in rasterization order attachment tests
Ricardo Garcia [Fri, 25 Feb 2022 13:02:21 +0000 (14:02 +0100)]
Fix feature checks in rasterization order attachment tests

This commit fixes the following issues:

* Do not filter the extension by default.
* Do not require Vulkan 1.2 in the tests.
* Chain the features struct in the right place when requesting it.
* Choose a supported depth/stencil format at runtime.
* Do not require the extension in explicit synchronization variants.
* Add missing VK_DEPENDENCY_BY_REGION_BIT in some barriers.

Affected tests:
dEQP-VK.rasterization.rasterization_order_attachment_access.*

Components: Vulkan
VK-GL-CTS issue: 3528

Change-Id: If8b96227174689e834efd5c71620082d389f4f80

2 years agoAdd a batch of GraphicsFuzz coverage tests
Ari Suonpaa [Wed, 23 Mar 2022 06:52:06 +0000 (08:52 +0200)]
Add a batch of GraphicsFuzz coverage tests

This commit adds a batch of GraphicsFuzz coverage tests.

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.cov-function-nested-loops-limit-uniform-xor-uniform
dEQP-VK.graphicsfuzz.cov-loop-array-index-decrement-never-negative
dEQP-VK.graphicsfuzz.cov-loop-condition-filter-some-iterations-never-discard
dEQP-VK.graphicsfuzz.cov-loop-increase-iterator-condition-uniform-copy-array-elements
dEQP-VK.graphicsfuzz.cov-loop-iterator-plus-one-variable-outside-index-array
dEQP-VK.graphicsfuzz.cov-loop-limiter-min-findlsb
dEQP-VK.graphicsfuzz.cov-loop-limiter-uniform-bitwise-and-one-always-break
dEQP-VK.graphicsfuzz.cov-loop-replace-output-color-restore-original
dEQP-VK.graphicsfuzz.cov-negative-integer-bitwise-or-uniform-increment-loop
dEQP-VK.graphicsfuzz.cov-nested-loops-copy-array-elements-skip-first
dEQP-VK.graphicsfuzz.cov-nested-loops-fragcoord-never-return-descending-loop
dEQP-VK.graphicsfuzz.cov-nested-loops-global-loop-counter-output-color-from-backup
dEQP-VK.graphicsfuzz.cov-nested-loops-identical-iterator-names-multiply-divide
dEQP-VK.graphicsfuzz.cov-two-functions-modify-struct-array-element-return-from-loop
dEQP-VK.graphicsfuzz.cov-vec2-dot-max-uniform

Change-Id: I3694d496c3e26f4fc429ac69161bb49d1cb6e9b8

2 years agoMerge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/main
Matthew Netsch [Fri, 1 Apr 2022 16:52:45 +0000 (16:52 +0000)]
Merge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/main

Change-Id: Id0703e74d7bb5553e60e33bfeedf35f1941ae797

2 years agoMerge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1
Matthew Netsch [Fri, 1 Apr 2022 16:29:11 +0000 (16:29 +0000)]
Merge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1

Change-Id: Ie7c9018ebfa517b331f6e48ca68abc0cfc4d171d

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0
Matthew Netsch [Fri, 1 Apr 2022 16:01:34 +0000 (16:01 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0

Change-Id: I31de5eca8b8354c5dbc80545d89e63be98d2509a

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8
Matthew Netsch [Fri, 1 Apr 2022 15:35:04 +0000 (15:35 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8

Change-Id: I4713730ea2497ef56f0c939a5e73a6bdc0cdcb6e

2 years agoFix memory leaks when creating test hierarchy
Ricardo Garcia [Mon, 28 Mar 2022 13:40:57 +0000 (15:40 +0200)]
Fix memory leaks when creating test hierarchy

The lack of a virtual destructor in one of the classes used as part of
some test parameters made createDescriptorValveMutableTests() leak
memory whenever it was called, in the moment the test hierarchy is being
destroyed. The leak will happen not only when running mutable descriptor
test, but when the binding_model test group needs to be generated for
any reason, including running tests in adjacent groups.

Hence, the change has no specific list of affected tests. At the same
time, no test result should be affected by the change.

Components: Vulkan
VK-GL-CTS issue: 3583

Change-Id: I7e847b5927359cef27f9992cd53991dd1a7cb781

2 years agoUse proper image tiling in synchronization test support checks
Ricardo Garcia [Thu, 17 Mar 2022 08:41:32 +0000 (09:41 +0100)]
Use proper image tiling in synchronization test support checks

Some test variants use LINEAR instead of OPTIMAL tiling and the proper
tiling mode features need to be checked.

Affected tests:
dEQP-VK.synchronization.*

Components: Vulkan
VK-GL-CTS issue: 3572

Change-Id: I16042ace7fb3a2f93b1503e539a5bbe59e03ae14

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/vulkan-cts-1.2.7
Matthew Netsch [Thu, 31 Mar 2022 19:30:35 +0000 (12:30 -0700)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/vulkan-cts-1.2.7

Change-Id: I5e73a149353915a09697633abab737ee8a38fdca

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6
Matthew Netsch [Thu, 31 Mar 2022 17:26:55 +0000 (17:26 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6

Change-Id: I4624140325b398fc901142f54425375b5ffa3d66

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/vulkan-cts-1.2.5
Matthew Netsch [Thu, 31 Mar 2022 17:02:52 +0000 (17:02 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/vulkan-cts-1.2.5

Change-Id: Ibcfcfa0cf5ad247b4c80017ad298d15a5139868f

2 years agomodifiers: Use dedicated memory consistently
James Jones [Fri, 27 Aug 2021 23:33:24 +0000 (16:33 -0700)]
modifiers: Use dedicated memory consistently

When a dedicated allocation device memory object
is exported, it must be imported as a dedicated
allocation created with a compatible resource as
well.  This change makes the DRM format modifier
tests self-consistent in that regard.

Components: Vulkan

Affected tests: dEQP-VK.drm_format_modifiers.export_import.*

VK-GL-CTS issue: 3544

Change-Id: I93a35180b9a5a1b98e0d4fa1f2934258134cef1b

2 years agodEQP-VK.pipeline.graphics_library
Boris Zanin [Tue, 8 Mar 2022 13:27:39 +0000 (14:27 +0100)]
dEQP-VK.pipeline.graphics_library

Include VkGraphicsPipelineLibraryCreateInfoEXT into chain
for empty flags.

Affected test:
 * dEQP-VK.pipeline.graphics_library.*

Components: Vulkan

VK-GL-CTS issue: 3553

Change-Id: I93a5a4dcc4dacc8a57cbb57834c4faa5f9485f16

2 years agoTest pSetLayouts in graphics_pipeline_library
Piotr Byszewski [Wed, 23 Mar 2022 15:44:55 +0000 (16:44 +0100)]
Test pSetLayouts in graphics_pipeline_library

VK_EXT_graphics_pipeline_library allows the entrys in
VkPipelineLayoutCreateInfo::pSetLayouts to be nullptr if
VK_PIPELINE_LAYOUT_CREATE_INDEPENDENT_SETS_BIT_EXT is set.
This change adds test that use nullptrs in various combinations
of pSetLayouts.

Components: Vulkan

VK-GL-CTS issue: 3567

Affects:
dEQP-VK.pipeline.pipeline_library.graphics_library.misc.*

New tests:
dEQP-VK.pipeline.pipeline_library.graphics_library.misc.bind_null_descriptor_set.*

Change-Id: I3d8958a1e234e4d47e4f65d31c09fe3f4ddb3b54

2 years agoMerge vk-gl-cts/opengl-cts-4.6.2 into vk-gl-cts/main
Matthew Netsch [Mon, 28 Mar 2022 14:19:49 +0000 (14:19 +0000)]
Merge vk-gl-cts/opengl-cts-4.6.2 into vk-gl-cts/main

Change-Id: I0fcff18bc616b1509a7780d9a589d4dd400443eb

2 years agoMerge vk-gl-cts/opengl-cts-4.6.1 into vk-gl-cts/opengl-cts-4.6.2
Matthew Netsch [Mon, 28 Mar 2022 14:19:33 +0000 (14:19 +0000)]
Merge vk-gl-cts/opengl-cts-4.6.1 into vk-gl-cts/opengl-cts-4.6.2

Change-Id: Ie1f7f2f793568ae79ccbb11f9678bb74cd7c1c82

2 years agoMerge vk-gl-cts/opengl-cts-4.6.0 into vk-gl-cts/opengl-cts-4.6.1
Matthew Netsch [Mon, 28 Mar 2022 14:19:24 +0000 (14:19 +0000)]
Merge vk-gl-cts/opengl-cts-4.6.0 into vk-gl-cts/opengl-cts-4.6.1

Change-Id: I02e16a1b389011005aebf279c6e689ca0a457ad5

2 years agoMerge vk-gl-cts/opengl-es-cts-3.2.8 into vk-gl-cts/main
Matthew Netsch [Mon, 28 Mar 2022 14:19:04 +0000 (14:19 +0000)]
Merge vk-gl-cts/opengl-es-cts-3.2.8 into vk-gl-cts/main

Change-Id: I2e3552647e64792f3f76fc8abcbcc7fac72bfe76

2 years agoMerge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/opengl-es-cts-3.2.8
Matthew Netsch [Mon, 28 Mar 2022 14:18:47 +0000 (14:18 +0000)]
Merge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/opengl-es-cts-3.2.8

Change-Id: Ie3bbc30b0ff206922ea5c2640467cf5b6dc219ba

2 years agoMerge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7
Matthew Netsch [Mon, 28 Mar 2022 14:18:36 +0000 (14:18 +0000)]
Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7

Change-Id: I52ff340b949967f446fd61423f6294f09106e492

2 years agoFix Zlib depedency
Peter Kohaut [Mon, 28 Mar 2022 11:53:49 +0000 (13:53 +0200)]
Fix Zlib depedency

Use newer version of Zlib as older is no longer available to download from the zlib.net page

Components: Framework

Affects:

None

VK-GL-CTS Issue: 3587

Change-Id: Ie166dc897b0d1318c1ae73434bfa19687b579691
(cherry picked from commit ec1804831b654ac55bd2a7a5dd27a556afe05030)

2 years agoFix Zlib depedency
Peter Kohaut [Mon, 28 Mar 2022 11:53:49 +0000 (13:53 +0200)]
Fix Zlib depedency

Use newer version of Zlib as older is no longer available to download from the zlib.net page

Components: Framework

Affects:

None

VK-GL-CTS Issue: 3587

Change-Id: Ie166dc897b0d1318c1ae73434bfa19687b579691
(cherry picked from commit ec1804831b654ac55bd2a7a5dd27a556afe05030)

2 years agoMerge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/main
Matthew Netsch [Mon, 28 Mar 2022 14:15:25 +0000 (14:15 +0000)]
Merge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/main

Change-Id: Iaf0a20b1b2a7d41797cf080ce30c8f67c4e187b2

2 years agoMerge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1
Matthew Netsch [Mon, 28 Mar 2022 14:15:10 +0000 (14:15 +0000)]
Merge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1

Change-Id: I5cf16d79906b53790ceb0362d6763ed07ff6462f

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0
Matthew Netsch [Mon, 28 Mar 2022 14:15:02 +0000 (14:15 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0

Change-Id: I7d9aa638cac5bfb8c73848b5aa1b698f12e170c6

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8
Matthew Netsch [Mon, 28 Mar 2022 14:14:55 +0000 (14:14 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8

Change-Id: I61b2991c59749bd8fe611add1809f596035a1027

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/vulkan-cts-1.2.7
Matthew Netsch [Mon, 28 Mar 2022 14:14:48 +0000 (14:14 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/vulkan-cts-1.2.7

Change-Id: Ie50f49d88d9a088bd86f6a659349557d5ad50cea

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6
Matthew Netsch [Mon, 28 Mar 2022 14:14:33 +0000 (14:14 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6

Change-Id: Iefb6b35452197d43db9dfc52b689476d2a81b8dd

2 years agoFix Zlib depedency
Peter Kohaut [Mon, 28 Mar 2022 11:53:49 +0000 (13:53 +0200)]
Fix Zlib depedency

Use newer version of Zlib as older is no longer available to download from the zlib.net page

Components: Framework

Affects:

None

VK-GL-CTS Issue: 3587

Change-Id: Ie166dc897b0d1318c1ae73434bfa19687b579691

2 years agoCreate custom device when testing VK_NV_shading_rate_image
Piers Daniell [Wed, 2 Mar 2022 22:03:20 +0000 (15:03 -0700)]
Create custom device when testing VK_NV_shading_rate_image

By default in the CTS framework the VK_NV_shading_rate_image extension
feature shadingRateImage is disabled because it cannot be enabled at the
same time as the VK_KHR_fragment_shading_rate extension features.

The dEQP-VK.dynamic_state.compute_transfer.* tests that test the
VK_NV_shading_rate_image dynamic state just used the default device
but shadingRateImage wasn't enabled there.

This CL modifies the dEQP-VK.dynamic_state.compute_transfer tests
to create a custom device with shadingRateImage enabled when testing the
VK_NV_shading_rate_image extension.

Affects:

dEQP-VK.dynamic_state.compute_transfer.*.viewport_coarse_sample_order_nv.*

Component: Vulkan
Change-Id: I3557479eadc38ac242b4a063e7c250114067881b

2 years agoEnable EGL AHB tests
Ari Suonpaa [Thu, 10 Mar 2022 12:28:31 +0000 (14:28 +0200)]
Enable EGL AHB tests

AHB tests were originally excluded from test lists because they were
using internal APIs. Later the AHB tests were modified to use the
public APIs and the tests were enabled for Android CTS. This change
enables the tests for OpenGL CTS too.

VK-GL-CTS Issue: 3563

New tests:

dEQP-EGL.functional.image.*android_native_*

Components: EGL
Change-Id: Id39cc7e03cb0cbcf00a5e842a5115656ba17c6e5

2 years agoMerge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/main
Matthew Netsch [Fri, 25 Mar 2022 16:00:21 +0000 (09:00 -0700)]
Merge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/main

Change-Id: I42ddb7aabadf75e9c35ce884a487c60ba5ce112d

2 years agoLimit number of storage buffers in divide by zero compute test
Ricardo Garcia [Thu, 17 Mar 2022 11:24:03 +0000 (12:24 +0100)]
Limit number of storage buffers in divide by zero compute test

The test is using 20 storage buffers and not checking if the
implementation supports such a large amount. The aspect being tested
does not need a particular amount of buffers, so the test can be changed
to use just one.

Affected tests:
dEQP-VK.glsl.crash_test.divbyzero_comp

Components: Vulkan
VK-GL-CTS issue: 3560

Change-Id: I4aa89a8cede8706b377563ab369577db667dabdc

2 years agoMerge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1
Matthew Netsch [Thu, 24 Mar 2022 21:34:07 +0000 (21:34 +0000)]
Merge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1

Change-Id: Ia23e7721a136d2b7617317d11487192ef729d0a2

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0
Matthew Netsch [Thu, 24 Mar 2022 21:07:12 +0000 (21:07 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0

Change-Id: Ie917d4d8cabd5c0eedb9ca7c935d236a74308f42

2 years agoIncrease tolerance in mat3 determinant compute test
Ricardo Garcia [Mon, 14 Mar 2022 16:11:04 +0000 (17:11 +0100)]
Increase tolerance in mat3 determinant compute test

The determinant operation does not have strict precision requirements
and a recent change in Mesa broke this test for RADV. A slight increase
in tolerance fixes it.

Affected tests:
dEQP-VK.glsl.builtin.precision_double.determinant.compute.mat3

VK-GL-CTS issue: 3571
Components: Vulkan

Change-Id: I5185bc4d45d848cbad11798f743ae65fbb798657

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8
Matthew Netsch [Thu, 24 Mar 2022 20:40:15 +0000 (20:40 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8

Change-Id: Ie55187998eab0ae965e731fc98511b86c842704e

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/vulkan-cts-1.2.7
Matthew Netsch [Thu, 24 Mar 2022 20:13:05 +0000 (20:13 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/vulkan-cts-1.2.7

Change-Id: I81f233780e77ccfb79e9b1b9d982c9406a9ca268

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6
Matthew Netsch [Thu, 24 Mar 2022 19:49:07 +0000 (19:49 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6

Change-Id: I8a313ea2aebdd5163a689b2cc31161e5963172a2

2 years agoCheck for visibility in external_memory_host test
Michael Chock [Wed, 2 Mar 2022 17:16:34 +0000 (09:16 -0800)]
Check for visibility in external_memory_host test

The external_memory_host synchronization test uses mapMemory when
validating the contents of the external memory, but does not ensure that
the memory is host-visible. When choosing a memory type for the
host-visible memory, additionally check the HOST_VISIBLE flag.

Affects:

dEQP-VK.memory.external_memory_host.synchronization.synchronization

Components: Vulkan

VK-GL-CTS issue: 3547

Change-Id: I0cff8f42debedd01db1760881a6f5f9481ea39bf

2 years agoFix link time optimization tests
Piotr Byszewski [Wed, 23 Mar 2022 19:12:24 +0000 (20:12 +0100)]
Fix link time optimization tests

Vertex input state for all pipeline_library tests didn't
have VK_PIPELINE_CREATE_RETAIN_LINK_TIME_OPTIMIZATION_INFO_BIT_EXT
set (all other states had this flag set). This change fixes that.

Components: Vulkan

VK-GL-CTS issue: 3578

Affects:
dEQP-VK.dynamic_state.pipeline_library.*
dEQP-VK.pipeline.pipeline_library.*
dEQP-VK.fragment_shading_rate.pipeline_library.*

Change-Id: Ic8ec0bb141dc7a1670ba3baee0229baf5203eae0

2 years agoUpdate Android CTS files for 2022
Paul Thomson [Tue, 22 Mar 2022 15:44:32 +0000 (15:44 +0000)]
Update Android CTS files for 2022

Update Android CTS files, including android mustpass test lists.

Components: Android

Change-Id: I24f7bd64ec98877075e259e1e30aa122a0073ce4

2 years agoFix GCC 11 misleading indentation warning
Mika Väinölä [Tue, 8 Mar 2022 07:57:11 +0000 (09:57 +0200)]
Fix GCC 11 misleading indentation warning

Make it clearer that the assignment is not guarded by the if.

Components: Vulkan

VK-GL-CTS issue: 3555

Change-Id: I75656a1cd7020a9d3a4886b7179f7995a001af56

2 years agoAdd dynamic state to instancing tests
Jari Komppa [Wed, 23 Feb 2022 13:20:40 +0000 (15:20 +0200)]
Add dynamic state to instancing tests

Adds variants of the instancing tests that use dynamic state.

New tests:
dEQP-VK.draw.dynamic_rendering.instanced.dynamic_state*

Components: Vulkan
VK-GL-CTS issue: 3239

Change-Id: Ic037f27724b9370cb43e70b54d98961dfc30c19a

2 years agoTest SRGB formats with UNIFORM_TEXEL_BUFFERs
Antto Mäkinen [Thu, 3 Mar 2022 08:47:51 +0000 (10:47 +0200)]
Test SRGB formats with UNIFORM_TEXEL_BUFFERs

This commit adds new tests that verify the implementation properly
linearizes the sRGB values when it fetches the contents of a uniform
texel buffer.

New tests:
dEQP-VK.texture.texel_buffer.uniform.srgb.*

Components: Vulkan
VK-GL-CTS issue: 3364

Change-Id: I2058f3b6613ad81acd2ebc190af1992637190ee3

2 years agoRewrite portability check for Amber tests
Ari Suonpaa [Fri, 25 Feb 2022 05:22:59 +0000 (07:22 +0200)]
Rewrite portability check for Amber tests

Test name based checking has been moved from the Amber test
case class to a callback function defined by the test itself.
Some of the Amber tests were slightly modified to run with
stricter portability requirements to avoid unnecessary support
checking.

VK-GL-CTS Issue: 3514

Affects:

dEQP-VK.draw.renderpass.output_location.*
dEQP-VK.rasterization.line_continuity.*

Components: Vulkan, Framework
Change-Id: I3de6f4c5b1b9218a5294f28aca6e6eea295f9fc1

2 years agoImprove coverage of MSAA copies
Ilkka Saarelainen [Wed, 16 Feb 2022 05:57:01 +0000 (07:57 +0200)]
Improve coverage of MSAA copies

Existing MSAA copy tests use the universal queue only (graphics and
compute capabilities). This CL adds variants of multisample copy tests
that run the image copy operation on compute and transfer queues.

New tests:

dEQP-VK.api.copy_and_blit.*.resolve_image.whole_copy_before_resolving_compute.*
dEQP-VK.api.copy_and_blit.*.resolve_image.whole_copy_before_resolving_transfer.*

Affects:

dEQP-VK.api.copy_and_blit.*

Components: Vulkan

VK-GL-CTS issue: 3071

Change-Id: I5300878a52bb081bf3a2632836799d91340eaa14

2 years agoAdd VK_EXT_graphics_pipeline_library to extensions_data.txt
Charles Johnston [Thu, 3 Mar 2022 03:45:59 +0000 (22:45 -0500)]
Add VK_EXT_graphics_pipeline_library to extensions_data.txt

dEQP-VK.info.device_extensions fails without this.

Affected test:
dEQP-VK.info.device_extensions

Components: Vulkan
VK-GL-CTS issue: 3549

Change-Id: Ic54e57e641fe240f4a9c9d69c2c7cafe5c23e0c6

2 years agoFix dEQP-VK.subgroups.size_control.compute.required_subgroup_size_*_require_full_subg...
Jason Ekstrand [Wed, 16 Mar 2022 22:33:17 +0000 (17:33 -0500)]
Fix dEQP-VK.subgroups.size_control.compute.required_subgroup_size_*_require_full_subgroups

The tests were testing full subgroups with four workgroup sizes:

 - Nx1x1
 - 1xNx1
 - 1x1xN
 - getLocalSizes() which returns a maximally large workgroup size

However, the Vulkan spec says:

    "If a VkPipelineShaderStageRequiredSubgroupSizeCreateInfo structure
    is included in the pNext chain, and flags has the
    VK_PIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT flag set,
    the local workgroup size in the X dimension of the pipeline must be
    a multiple of
    VkPipelineShaderStageRequiredSubgroupSizeCreateInfo::requiredSubgroupSize

This means that the middle two subgroup sizes are invalid for use with
VK_PIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT.

Components: Vulkan

Affects:
 - dEQP-VK.subgroups.size_control.compute.required_subgroup_size_max_require_full_subgroups
 - dEQP-VK.subgroups.size_control.compute.required_subgroup_size_min_require_full_subgroups

Change-Id: I46f2547e1a50f78cbed6695f96448f463ca57230

2 years agoMerge vk-gl-cts/opengl-cts-4.6.2 into vk-gl-cts/main
Matthew Netsch [Mon, 14 Mar 2022 17:17:55 +0000 (17:17 +0000)]
Merge vk-gl-cts/opengl-cts-4.6.2 into vk-gl-cts/main

Change-Id: I6a1b91fafab2a290283303d75b4f8048af2113b8

2 years agoMerge vk-gl-cts/opengl-cts-4.6.1 into vk-gl-cts/opengl-cts-4.6.2
Matthew Netsch [Mon, 14 Mar 2022 16:51:00 +0000 (16:51 +0000)]
Merge vk-gl-cts/opengl-cts-4.6.1 into vk-gl-cts/opengl-cts-4.6.2

Change-Id: I27e9df2eefc1ca63153c2fb10baf6b4118feaf4e

2 years agoMerge vk-gl-cts/opengl-es-cts-3.2.8 into vk-gl-cts/main
Matthew Netsch [Mon, 14 Mar 2022 16:00:35 +0000 (16:00 +0000)]
Merge vk-gl-cts/opengl-es-cts-3.2.8 into vk-gl-cts/main

Change-Id: Idfcd3157d21933d06a69356a3ce3c28f84fccb3c

2 years agoMerge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/opengl-es-cts-3.2.8
Matthew Netsch [Mon, 14 Mar 2022 14:08:56 +0000 (14:08 +0000)]
Merge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/opengl-es-cts-3.2.8

Change-Id: I9dbfb6be27277508e01e4d79583afc5f970353e2

2 years agoMerge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7
Matthew Netsch [Thu, 10 Mar 2022 21:58:48 +0000 (21:58 +0000)]
Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7

Change-Id: I216b8bf396d0ff5d4ceaa890d5b4dd9283c73040

2 years agoAvoid logging to stdout in buffer mem requirements tests
Ricardo Garcia [Thu, 3 Mar 2022 10:52:58 +0000 (11:52 +0100)]
Avoid logging to stdout in buffer mem requirements tests

Redirect informative messages to the output QPA file instead.

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

Components: Vulkan
VK-GL-CTS issue: 3539

Change-Id: I6e2c9a04488ad86fcac83a27beedab6e0bf36cf3

2 years agoFix fragment_shader_interlock vs fragment_shading_rate tests
Jeff Bolz [Tue, 1 Mar 2022 19:48:32 +0000 (13:48 -0600)]
Fix fragment_shader_interlock vs fragment_shading_rate tests

These tests were incorrectly running in a device created
with the NV extension enabled rather than the KHR.

Component: Vulkan

Affects: dEQP-VK.fragment_shader_interlock.*
Change-Id: Ic6005c0291dbd7c7bfd8befa135a7edcf253b91d

2 years agoUse standard type definitions on all platforms
Graeme Leese [Fri, 22 Oct 2021 11:24:38 +0000 (12:24 +0100)]
Use standard type definitions on all platforms

These definitions are used in the Vulkan headers, so they are guaranteed
to be available on all platforms that the CTS supports. Trying to define
things in terms of other types is unnecessarily complicated. This is a
first small step towards using the standard types everywhere in the CTS.

Component: Framework
Affects: *

Change-Id: I492dff86e4f6521703feac1d6398d791a579b6fd

2 years agoUse common code for robustness2 tests
Graeme Leese [Wed, 14 Jul 2021 12:04:58 +0000 (13:04 +0100)]
Use common code for robustness2 tests

Where the code is the same for every stage, keep a single copy instead
of writing it out every time. This makes it easier to understand what is
different between the cases and why. It also means that we only have to
fix issues once instead of 6 times.

Components: Vulkan
Affects: dEQP-VK.robustness.robustness2.*
         dEQP-VK.robustness.image_robustness.*

Change-Id: I8dcf6efee86165f78f657358a0f11fd6e2e2d163

2 years agoAdd tests to verify compressed texture downloads to non-zero mip levels
Jeff Bolz [Mon, 28 Feb 2022 18:41:26 +0000 (12:41 -0600)]
Add tests to verify compressed texture downloads to non-zero mip levels

Component: Vulkan

Affects tests: dEQP-VK.texture.compressed*

Change-Id: I95544554787cc0d4d7da378da73315a0ed14c16c

2 years agoMerge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/main
Matthew Netsch [Thu, 10 Mar 2022 19:03:00 +0000 (19:03 +0000)]
Merge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/main

Change-Id: I64f912202161fabd927dfc3d07db444b4ed0b5ef

2 years agoAdd support for 'alternative' image view min lod calculation
Sławomir Cygan [Mon, 7 Mar 2022 19:32:16 +0000 (20:32 +0100)]
Add support for 'alternative' image view min lod calculation

According to ''Image Level(s) Selection" in spec, the image view
minLod value can be used as-is, or floor()-ed.

This change runs verification in affected test twice, once requiring
'preferred' method, falling back to 'alternative' if 'preferred' method fails.

Components: Vulkan

VK-GL-CTS Issue: 3556

Affects: dEQP-VK.texture.*min_lod*

Change-Id: I3af08485dbd99ad8d666c6f19aac3456130c375d

2 years agoUpdate FBO tests to handle separate depth stencil in ES3
Thomas Spurden [Tue, 15 Feb 2022 11:12:00 +0000 (11:12 +0000)]
Update FBO tests to handle separate depth stencil in ES3

Extends FBO blit tests as they did not have cases for separate depth
stencil at all (as they are ES3 only).

Components: OpenGL
Affects: dEQP-GLES3.functional.fbo.*

Change-Id: Icc6dcd047db3b9c29baed0c5691766fb30242e31

2 years agoAvoid triangle fans in reinterpolation consistency tests
Ricardo Garcia [Wed, 2 Mar 2022 16:04:07 +0000 (17:04 +0100)]
Avoid triangle fans in reinterpolation consistency tests

These causes problems for portability implementations and are not needed
for the test itself. This commit replaces them with triangle strips.

Affected tests:
dEQP-VK.pipeline.multisample_interpolation.reinterpolation_consistency.interpolate_at_centroid
dEQP-VK.pipeline.multisample_interpolation.reinterpolation_consistency.interpolate_at_sample

Components: Vulkan
VK-GL-CTS issue: 3545

Change-Id: I29aae73b8a74795b5297eb546a1d150a61e82c33