platform/upstream/VK-GL-CTS.git
2 years agoMerge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1
Matthew Netsch [Thu, 5 May 2022 20:38:52 +0000 (13:38 -0700)]
Merge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1

Change-Id: I4378bcd20e3ec3e88838dbf9a2f6d6372ba463b6

2 years agoIncrease tolerance in fp64 mat3determinant compute
zhangkai [Thu, 14 Apr 2022 02:13:08 +0000 (19:13 -0700)]
Increase tolerance in fp64 mat3determinant compute

On QNX, the library function `strtod` has different behavior
from other platforms. It would convert string to a double value
slightly different. So increasing the tolerance slightly would
solve the problem.

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

VK-GL-CTS issue: 3642
Components: Vulkan

Change-Id: I2c30029d0d6297b660e2900217d6aeb5d3bf3186

2 years agoFix extension data for EXT_texel_buffer_alignment
Piotr Byszewski [Mon, 25 Apr 2022 12:14:16 +0000 (14:14 +0200)]
Fix extension data for EXT_texel_buffer_alignment

Only the properties structure was promoted for
VK_EXT_texel_buffer_alignment, the feature structure was not
promoted. This change removes specification of "core" attribute
from "register_extension" tag for this extension as only fully
promoted extensions can have it defined.

VK-GL-CTS issue: 3564

Components: Framework, Vulkan

Affects:
dEQP-VK.*

Change-Id: If1873b8292f1e79ef557876ebb7d8d9cf9d7de83

2 years agoSupport VK_KHR_portability_enumeration
Charles Giessen [Wed, 30 Mar 2022 22:41:48 +0000 (16:41 -0600)]
Support VK_KHR_portability_enumeration

The portability enumeration extension needs to be enabled if it is
present to allow for CTS to enumerate portability devices.

This commit refactors createDefaultInstance so that it only enumerates
the available instance extensions once instead of twice.

It fixees #3644 by adding VK_KHR_portability_enumeration to the list
of known extensions with the addition of a corresponding json file.

Components: Vulkan

Affected Tests:
All vulkan tests

Change-Id: Ib828ee9f385f2eb2e68e03a6b3b3632443da10df

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0
Matthew Netsch [Thu, 5 May 2022 18:41:19 +0000 (18:41 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0

Change-Id: Ia788a27e2bb8cf6ca92e09e378af26db6f50f68f

2 years agoReduce advertised sys mem on 32 bit Android
Ilkka Saarelainen [Tue, 29 Mar 2022 10:30:06 +0000 (13:30 +0300)]
Reduce advertised sys mem on 32 bit Android

This CL reduces the advertised system memory amount in 32 bit Android
builds to address some memory fragmentation issues in certain tests
that rely on the advertised memory amount.

Affects:

dEQP-VK.api.buffer.suballocation.*
dEQP-VK.api.buffer.dedicated_alloc.*
dEQP-VK.api.object_management.*
dEQP-VK.memory.allocation.*
dEQP-VK.memory.device_group_allocation.*
dEQP-VK.pipeline.render_to_image.*.small.*
dEQP-VK.pipeline.render_to_image.*.huge.*

Components: Framework, Vulkan

VK-GL-CTS issue: 3586

Change-Id: I15ef027e3f69ddbb87e8704d0cff479782b6bda6

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8
Matthew Netsch [Thu, 5 May 2022 18:13:29 +0000 (18:13 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8

Change-Id: Iba260ee0d9195e18e2e41ee3ec525cf5e66faa0d

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/vulkan-cts-1.2.7
Matthew Netsch [Thu, 5 May 2022 16:48:43 +0000 (09:48 -0700)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/vulkan-cts-1.2.7

Change-Id: Iaeb3f5ee3ef401ef4c0d4d7db27703e8f5b6012d

2 years agoDon't alias image views in separate_channels subpass dependency tests
Connor Abbott [Fri, 13 Aug 2021 15:37:54 +0000 (17:37 +0200)]
Don't alias image views in separate_channels subpass dependency tests

This is not allowed by the Vulkan spec:

> Multiple attachments that alias the same memory must not be used in a
> single subpass.

Instead we should have the input attachment and color attachment point
to the same attachment, which is allowed.

Components: Vulkan

Affects:
dEQP-VK.renderpass.suballocation.subpass_dependencies.separate_channels.*
dEQP-VK.renderpass2.suballocation.subpass_dependencies.separate_channels.*

VK-GL-CTS Issue: 3052

Change-Id: Iddb1111be5147f9816104fa879e023a9a3445555
(cherry picked from commit a3e659e828a535582207149cf58a8580d45a0342)

2 years agoFix DeqpTestRunnerTest
Paul Thomson [Wed, 13 Apr 2022 18:38:46 +0000 (19:38 +0100)]
Fix DeqpTestRunnerTest

Component: Android

Google bug: b/206657494
Google bug: b/201652781

Change-Id: I3438b200105bc04ee63b0454a7ce32e4acd4de4b

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6
Matthew Netsch [Thu, 5 May 2022 15:50:24 +0000 (15:50 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6

Change-Id: I4dbdafea321464fe25499e0a7d415488729d77ce

2 years agoSynchronize input attachment reads in IO chains
Ricardo Garcia [Tue, 19 Apr 2022 09:26:29 +0000 (11:26 +0200)]
Synchronize input attachment reads in IO chains

Each subpass in the render pass IO chain tests attempts to read the
output of the previous subpass as an input attachment, but the subpass
dependencies are missing VK_ACCESS_INPUT_ATTACHMENT_READ_BIT from the
flags in dstAccessMask.

Affected tests:
dEQP-VK.renderpass*.attachment_allocation.*

Components: Vulkan
VK-GL-CTS issue: 3643

Change-Id: I63b49709ee8cb03e364050253dc2a8a48c5b58cd

2 years agoWait for idle queue after submitting an empty job
Ricardo Garcia [Tue, 19 Apr 2022 09:53:54 +0000 (11:53 +0200)]
Wait for idle queue after submitting an empty job

The test below imports an external signaled semaphore and submits to the
queue an empty job that waits on that signaled sempahore, but the test
returns without any further wait, which means the external sempahore may
be destroyed before the driver has had a chance to use it.

Affected tests:
dEQP-VK.api.external.semaphore.sync_fd.import_signaled_temporary

Components: Vulkan
VK-GL-CTS issue: 3636

Change-Id: I3e8daa9146f6fd542ad20539a7e9b6c9f0242978

2 years agoLimit dimensionality of arrays-of-arrays in random SSBO tests
Boris Zanin [Wed, 13 Apr 2022 11:57:22 +0000 (13:57 +0200)]
Limit dimensionality of arrays-of-arrays in random SSBO tests

One of these tests used a 5 dimensional array-of-arrays, resulting
in thousands of instructions that caused issues on devices with low
ram. This change limits the total dimensionality to prevent this.

Components: Vulkan

VK-GL-CTS issue: 1829

Solves:
dEQP-VK.ssbo.layout.random.scalar.75

Affects:
dEQP-VK.ssbo.*.random.*

Change-Id: Ibee39ccb0bd1543dafce7c498f56def1e05b4815

2 years agoMerge pull request #314 from etra0/patch-1
Matthew Netsch [Fri, 29 Apr 2022 18:11:54 +0000 (14:11 -0400)]
Merge pull request #314 from etra0/patch-1

vulkancts: update mustpass path in README.

2 years agoSkip mipmap generation for integer sparse texture formats
Mike Blumenkrantz [Thu, 21 Apr 2022 19:52:14 +0000 (15:52 -0400)]
Skip mipmap generation for integer sparse texture formats

According to historical records, this is unsupported, and Mesa throws
GL_INVALID_OPERATION to confirm that it is unsupported.

Affects:
KHR-GL46.sparse_texture2_tests.UncommittedRegionsAccess

Components: OpenGL
VK-GL-CTS issue: 3653

Change-Id: I29dc008b6201939b2b7354b0843e018b9db4069c

2 years agoFix texture target for verifying sparse data
Mike Blumenkrantz [Thu, 21 Apr 2022 19:30:34 +0000 (15:30 -0400)]
Fix texture target for verifying sparse data

This otherwise is a mismatch of a 2D_ARRAY image in a shader
that expects 2D.

Affects:
KHR-GL46.sparse_texture2_tests.UncommittedRegionsAccess

Components: OpenGL
VK-GL-CTS issue: 3653

Change-Id: I85cb70b17b9174cbf4c24481c97bf49f81763a2b

2 years agoImprove sparse texture failure errors
Mike Blumenkrantz [Thu, 21 Apr 2022 17:56:46 +0000 (13:56 -0400)]
Improve sparse texture failure errors

Provide more error messages that help debug implementation issues.

Affects:
KHR-GL46.sparse_texture2_tests.SparseTexture2Commitment
KHR-GL46.sparse_texture2_tests.SparseTexture2Lookup
KHR-GL46.sparse_texture2_tests.UncommittedRegionsAccess
KHR-GL46.sparse_texture_clamp_tests.SparseTextureClampLookupColor
KHR-GL46.sparse_texture_clamp_tests.SparseTextureClampLookupResidency

Components: OpenGL
VK-GL-CTS issue: 3653

Change-Id: I45876884de16d3619b57027b9f9038d3b3135507

2 years agoFilter out invalid formats for sparse buffer texture queries
Mike Blumenkrantz [Thu, 21 Apr 2022 17:13:05 +0000 (13:13 -0400)]
Filter out invalid formats for sparse buffer texture queries

These formats are valid for textures, but not texture buffers
according to ARB_texture_buffer_object.

Affects:
KHR-GL46.sparse_texture2_tests.StandardPageSizesTestCase

Components: OpenGL
VK-GL-CTS issue: 3653

Change-Id: I0063ab333176958f5362b18b3e8363f033375efc

2 years agoFix deinit of gl sparse buffer test
Mike Blumenkrantz [Thu, 31 Mar 2022 20:50:41 +0000 (16:50 -0400)]
Fix deinit of gl sparse buffer test

deinit here is expected to uncommit the range that was committed by
init, so use the same range that was used by init.

Affects:
KHR-GL46.sparse_buffer_tests.BufferStorageTest

Components: OpenGL
VK-GL-CTS issue: 3653

Change-Id: I0adce28475c4eab48a8fb6b0aa538b7c016f435b

2 years agoFix 32-bit compilation warning
Piers Daniell [Wed, 20 Apr 2022 23:10:12 +0000 (17:10 -0600)]
Fix 32-bit compilation warning

There was a call to new[] in vktSpvAsmTrinaryMinMaxTests.cpp that used
a 64-bit values as an allocation size, which is not the type the
new operator expects when compiling for a 32-bit target.

Add a cast to fix the warning.

Affects:

dEQP-VK.spirv_assembly.instruction.amd_trinary_minmax.*

Components: Vulkan
Change-Id: I0941033614d67530f6cc157b5923e47bdca5c5a9

2 years agovulkancts: update mustpass path.
Sebastián Aedo [Tue, 19 Apr 2022 16:57:25 +0000 (12:57 -0400)]
vulkancts: update mustpass path.

Since the branch was renamed, the mustpass path was changed too.

Signed-off-by: Sebastián Aedo <saedo@codeweavers.com>
2 years agoMerge vk-gl-cts/github-main into vk-gl-cts/main
Matthew Netsch [Thu, 14 Apr 2022 21:03:31 +0000 (21:03 +0000)]
Merge vk-gl-cts/github-main into vk-gl-cts/main

Change-Id: If663da5dc063fd97bed82597175d269a29816912

2 years agoUpdate known conformance version for 1.3.2.0
Matthew Netsch [Mon, 11 Apr 2022 15:15:41 +0000 (08:15 -0700)]
Update known conformance version for 1.3.2.0

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

Affects:
dEQP-VK.api.driver_properties.conformance_version

Change-Id: I5d099f42fd1cc68f8a667ec368fc635ab41f8906

2 years agoUse getDevice() instead of m_logicalDevice.get() so it works in both paths
Piers Daniell [Fri, 8 Apr 2022 22:05:43 +0000 (16:05 -0600)]
Use getDevice() instead of m_logicalDevice.get() so it works in both paths

This CL fixes a regression introduced with CL9062. For the non-dynamic
paths of the test the m_logicalDevice does not contain a valid
device handle. The newly added getDevice() already handles both
the dynamic and non-dynamic paths, so use that instead of
m_logicalDevice.get().

Affects:

dEQP-VK.memory.binding.*

Components: Vulkan

VK-GL-CTS Issue: 3627

Change-Id: I4ebf74a000553d70db86035ac50b2d4f3257d6ac

2 years agoFix GLES CTS mustpass files moved after GPL merge
Piotr Byszewski [Tue, 12 Apr 2022 12:46:11 +0000 (14:46 +0200)]
Fix GLES CTS mustpass files moved after GPL merge

While performing merge from master to graphics_pipeline_library
dev branch two mustpass files were merged incorrectly. They
were somehow moved and this change restores those files.

Components: AOSP, OpenGL

VK-GL-CTS issue: 3633

Affects:
dEQP-GL*

Change-Id: I488e9f98decc434928dd64156ef4d81904b397e5

2 years agoAvoid using unsupported rasterization order feature struct
Ricardo Garcia [Thu, 7 Apr 2022 09:43:33 +0000 (11:43 +0200)]
Avoid using unsupported rasterization order feature struct

Rasterization order attachment tests with explicit synchronization
mechanisms were chaining the features structure, but these tests are run
on implementations not supporting the extension.

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

Components: Vulkan
VK-GL-CTS issue: 3617

Change-Id: Ia3d3fac2960d1588007c320ed1b92bb6160527fb

2 years agoFixed non zero mip compressed texture tests failure
Tomasz Owczarek [Tue, 5 Apr 2022 13:13:31 +0000 (14:13 +0100)]
Fixed non zero mip compressed texture tests failure

Fixed non zero mip compressed texture tests failure
when sampling coordinates at the edge of pixels.

Components: Vulkan

VK-GL-CTS Issue: 3619

Affects:
dEQP-VK.texture.compressed*_npot_mip1

Change-Id: I4bbc80831233ebcecc34612b7fa488e94dde630a

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

Change-Id: I877de4d3a18e22d812b8016f2cdaf9e2894f337d

2 years agoMerge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/vulkan-cts-1.3.2
Matthew Netsch [Thu, 14 Apr 2022 19:32:34 +0000 (19:32 +0000)]
Merge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/vulkan-cts-1.3.2

Change-Id: Ieaa4503461360290f485df78a83ba2422a6b0dfa

2 years agoFix accidentally removed extension
James Fitzpatrick [Thu, 14 Apr 2022 09:46:59 +0000 (10:46 +0100)]
Fix accidentally removed extension

VK_KHR_global_priority was accidentally removed from the list of allowed
extensions.

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

Components: vulkan

VK-GL-CTS issue: 3639

Change-Id: I3173fa11c27358ad04fb970518b53ecf0e917865

2 years agoUpdate known conformance version for 1.3.1.1
Piers Daniell [Wed, 13 Apr 2022 15:23:40 +0000 (09:23 -0600)]
Update known conformance version for 1.3.1.1

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

Affects:
dEQP-VK.api.driver_properties.conformance_version

Change-Id: I3aa80d23caf74db9a5b00be19f3e80013c6d5a5a

2 years agoexplicitly provides ssh urls to GitRepo declarations
Luc Ma [Thu, 14 Oct 2021 12:50:44 +0000 (20:50 +0800)]
explicitly provides ssh urls to GitRepo declarations

In case of poor cyber condition, git fetches based on ssh protocol
instead of https may be a better choice. The only thing that needs
is an appropriate url.

Also fixes issue 289

Signed-off-by: Luc Ma <onion0709@gmail.com>
Components: Framework
VK-GL-CTS public issue: 289

Change-Id: I6e121a50cfe3f0361defd34a8b961777e9f5751e

2 years agoFix support check in transform feedback tests
Toni Merilehti [Wed, 6 Apr 2022 12:42:13 +0000 (15:42 +0300)]
Fix support check in transform feedback tests

Vulkan transform feedback simple tests currently require
transformFeedbackRasterizationStreamSelect property for all test cases
using vertex streams other than zero. This CL changes the support check
to require the property only for test cases that rasterize vertex
streams other than zero. This CL also moves the support check to
checkSupport function which is called before initPrograms.

Affects:
dEQP-VK.transform_feedback.simple.*

Components: Vulkan

VK-GL-CTS issue: 3597

Change-Id: I09db67690aca607d5a9664b4967d65a8b07fb4a7

2 years agoFix framebuffer size for some GraphicsFuzz tests
Ari Suonpaa [Mon, 4 Apr 2022 05:20:52 +0000 (08:20 +0300)]
Fix framebuffer size for some GraphicsFuzz tests

A recent commit changed the draw size of some of the GraphicsFuzz
tests, but the frame buffer size was left untouched. This commit
fixes the frame buffer sizes.

Affects:

dEQP-VK.graphicsfuzz.cov-dfdx-dfdy-after-nested-loops
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

Components: Vulkan
Change-Id: Ib3c42a03041ea66830692ab23468c2d7752a03b3

2 years agoRay query helper invocations
michal_jakubek [Wed, 9 Feb 2022 00:01:03 +0000 (01:01 +0100)]
Ray query helper invocations

New tests:
dEQP-VK.ray_query.helper_invocations.*

Components: Vulkan

VK-GL-CTS issue: 3254

Change-Id: I2f62c4eb2dea21184587c086768297322a3f45d8

2 years agoModified ray tracing inactive triangle definition
Marcin Zając [Fri, 18 Mar 2022 13:25:27 +0000 (14:25 +0100)]
Modified ray tracing inactive triangle definition

New definition of inactive triangle has been established
so that any vertex of the triangle can now set it's
x component to NaN making it inactive.
Because of that test is now covering all possible
configuration of vertices that can trigger this.

Components: Vulkan

VK-GL-CTS issue: 3568

Affects:
dEQP-VK.ray_tracing_pipeline.acceleration_structures.empty*
dEQP-VK.ray_query.acceleration_structures.empty*

Change-Id: Ibbc4036d134b3b31590b6d2bd9d29896783aec6d

2 years agoAdd robustness2 limits validation test
Boris Zanin [Wed, 6 Apr 2022 08:56:47 +0000 (10:56 +0200)]
Add robustness2 limits validation test

Implements VK_EXT_robustness2 properties and features
validation test.

Add:
dEQP-VK.api.info.vulkan1p2_limits_validation.robustness2

Components: Vulkan
VK-GL-CTS issue: 3388

Change-Id: I2e14f062ad2b6826751d223d88db45ce855d0c74

2 years agoAdd a batch of GraphicsFuzz coverage tests
Ari Suonpaa [Wed, 13 Apr 2022 08:10:43 +0000 (11:10 +0300)]
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-global-loop-counter-sample-texture
dEQP-VK.graphicsfuzz.cov-function-index-array-redundant-clamps
dEQP-VK.graphicsfuzz.cov-function-loop-condition-constant-array-always-false
dEQP-VK.graphicsfuzz.cov-function-max-all-ones-select-always-true
dEQP-VK.graphicsfuzz.cov-function-struct-int-array-loop-check-element
dEQP-VK.graphicsfuzz.cov-loop-break-fragcoord-x-empty-loop
dEQP-VK.graphicsfuzz.cov-loop-condition-constant-struct-field-data
dEQP-VK.graphicsfuzz.cov-loop-global-counter-increment-iterator-select-uniform
dEQP-VK.graphicsfuzz.cov-loop-never-iterated-constant-vector-condition
dEQP-VK.graphicsfuzz.cov-loop-start-fragcoord-while-iterates-once
dEQP-VK.graphicsfuzz.cov-multiple-functions-global-never-change
dEQP-VK.graphicsfuzz.cov-nested-functions-vec4-array-element-argument
dEQP-VK.graphicsfuzz.cov-nested-loops-global-loop-counter-reached-second-iteration
dEQP-VK.graphicsfuzz.cov-two-loops-global-loop-counter-clamp-ivec-elements-index-array
dEQP-VK.graphicsfuzz.cov-two-loops-never-iterated

Change-Id: Ia12ea0e32ab889c203e3f3ef12459807252f30b5

2 years agoMerge vk-gl-cts/opengl-es-cts-3.2.8 into vk-gl-cts/main
Matthew Netsch [Thu, 14 Apr 2022 18:31:24 +0000 (18:31 +0000)]
Merge vk-gl-cts/opengl-es-cts-3.2.8 into vk-gl-cts/main

Change-Id: Ib38e0f175e993fd68742f3b009ee85788f8409b1

2 years agoMerge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1
Matthew Netsch [Thu, 14 Apr 2022 17:53:50 +0000 (10:53 -0700)]
Merge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1

Change-Id: I3e2c87a50425072269106efb75c250d0cc0be061

2 years agoFix dEQP-VK.image.sample_texture.* tests write out-of-bounds bug
Juha Heiskanen [Tue, 29 Mar 2022 09:02:53 +0000 (12:02 +0300)]
Fix dEQP-VK.image.sample_texture.* tests write out-of-bounds bug

Compute shader writing to the view is now made by using block size
instead of pixel count.

Components: Vulkan

VK-GL-CTS Issue: 3442

Affects: dEQP-VK.image.sample_texture.*
Change-Id: Ie351fb1d2730c5377c8110453bc34629c20b5d82

2 years agoFix one more missed extension promotion
Graeme Leese [Tue, 12 Apr 2022 16:04:36 +0000 (17:04 +0100)]
Fix one more missed extension promotion

VK_EXT_extended_dynamic_state2 was not marked as having been promoted,
which meant that the CTS code which uses the core function names
exclusively doesn't work on versions that support 1.2 + the extension.

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

Change-Id: Ia942b96f778d57337fa087042f176086d5bde608

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0
Matthew Netsch [Thu, 14 Apr 2022 17:16:14 +0000 (17:16 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.8 into vk-gl-cts/vulkan-cts-1.3.0

Change-Id: I786f14d2785e81098664f94cac78ac635da571fd

2 years agoFix dEQP-VK.image.sample_texture.* tests write out-of-bounds bug
Juha Heiskanen [Wed, 30 Mar 2022 12:38:24 +0000 (15:38 +0300)]
Fix dEQP-VK.image.sample_texture.* tests write out-of-bounds bug

Compute shader writing to the view is now made by using block size
instead of pixel count.

Components: Vulkan

VK-GL-CTS Issue: 3595

Affects: dEQP-VK.image.sample_texture.*

Change-Id: I50879fd7bb48f623e565c8972e7a517fb26f0ed0

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8
Matthew Netsch [Thu, 14 Apr 2022 16:49:27 +0000 (16:49 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.7 into vk-gl-cts/vulkan-cts-1.2.8

Change-Id: Id90879713fa5388ab2a4ebdd6811b454b0675763

2 years agoFix extension promotions
Iván Briano [Mon, 11 Apr 2022 20:26:06 +0000 (13:26 -0700)]
Fix extension promotions

VK_EXT_shader_image_atomic_int64 was promoted instead of
VK_KHR_shader_atomic_int64.
VK_KHR_external_semaphore lost its promotion.
VK_KHR_vulkan_memory_model was promoted to the wrong core version.

VK-GL-CTS issue: 3631

Affects:
dEQP-VK.*

Change-Id: I78712093945796adf4076e75f6f3e5c07a4ec832

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/vulkan-cts-1.2.7
Matthew Netsch [Thu, 14 Apr 2022 16:23:18 +0000 (16:23 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/vulkan-cts-1.2.7

Change-Id: Ie2a23e7c3811d6cebc0b7ace2351d5a4779bd7d0

2 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6
Matthew Netsch [Thu, 14 Apr 2022 15:58:41 +0000 (15:58 +0000)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6

Change-Id: I6ab43b2abea09721ad28bdba33565c7c0f0be5fd

2 years agoFix warnings with clang and GCC
Ricardo Garcia [Mon, 4 Apr 2022 08:14:57 +0000 (10:14 +0200)]
Fix warnings with clang and GCC

Affected tests:
No test result should be affected by these changes.

Components: OpenGL, Vulkan
VK-GL-CTS issue: 3602

Change-Id: If2eb0736d296add732aaff53c80a705cc306d7a3

2 years agoMerge pull request #312 from lfrb/windows-flush
Matthew Netsch [Thu, 14 Apr 2022 15:32:14 +0000 (11:32 -0400)]
Merge pull request #312 from lfrb/windows-flush

Flush stdout after printing test name and result on Windows

2 years agoAdd a batch of GraphicsFuzz coverage tests
Ari Suonpaa [Mon, 4 Apr 2022 11:03:37 +0000 (14:03 +0300)]
Add a batch of GraphicsFuzz coverage tests

This commit adds a batch of GraphicsFuzz coverage tests.

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.cov-double-negation-fragcoord-cast-ivec2-bitwise-and
dEQP-VK.graphicsfuzz.cov-function-always-return-negative-bitfield-extract
dEQP-VK.graphicsfuzz.cov-function-loop-clamp-no-effect
dEQP-VK.graphicsfuzz.cov-function-loops-vector-mul-matrix-never-executed
dEQP-VK.graphicsfuzz.cov-function-multiple-loops-compare-integer-return
dEQP-VK.graphicsfuzz.cov-global-loop-counter-findlsb-zero
dEQP-VK.graphicsfuzz.cov-loop-decrease-vector-component-only-first-iteration
dEQP-VK.graphicsfuzz.cov-loop-function-call-negative-argument
dEQP-VK.graphicsfuzz.cov-loop-iterator-start-shift-left-right
dEQP-VK.graphicsfuzz.cov-loop-min-max-clamp-increment-only-first-iteration
dEQP-VK.graphicsfuzz.cov-loops-and-conditions-fragcoord-always-false-floats-one
dEQP-VK.graphicsfuzz.cov-loops-same-code-outside-loop
dEQP-VK.graphicsfuzz.cov-nested-loops-array-choose-red-last-iteration
dEQP-VK.graphicsfuzz.cov-nested-loops-global-loop-counter-index-array-vec2
dEQP-VK.graphicsfuzz.cov-struct-array-ivec-negative-modulus-empty-function

Change-Id: I8d5bd2e526450b87f17fd1e1acc12641b634d380

2 years agoAdd a batch of GraphicsFuzz coverage tests
Ari Suonpaa [Tue, 22 Mar 2022 13:02:37 +0000 (15:02 +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-divide-argument-until-lt-one
dEQP-VK.graphicsfuzz.cov-function-loop-check-determinant-zero-return-vector
dEQP-VK.graphicsfuzz.cov-function-parameter-zero-divided-by-uniform
dEQP-VK.graphicsfuzz.cov-function-round-unpack-half-2x16
dEQP-VK.graphicsfuzz.cov-function-switch-case-constant-clamp-transpose-identity-matrices
dEQP-VK.graphicsfuzz.cov-increment-array-element-usub-borrow
dEQP-VK.graphicsfuzz.cov-large-number-of-false-conditions-return-discard-continue
dEQP-VK.graphicsfuzz.cov-loop-iterator-bitwise-negate
dEQP-VK.graphicsfuzz.cov-loop-overwrite-sample-texture-as-color-output
dEQP-VK.graphicsfuzz.cov-min-vec2-transpose-mat2-identity
dEQP-VK.graphicsfuzz.cov-nested-loops-assign-vector-elements-from-matrix-no-negative-indexing
dEQP-VK.graphicsfuzz.cov-nested-loops-fragcoord-conditions-empty-blocks
dEQP-VK.graphicsfuzz.cov-one-bitwise-and-bitwise-or-full-bits
dEQP-VK.graphicsfuzz.cov-set-array-elements-to-uniform-check-value-break
dEQP-VK.graphicsfuzz.cov-small-array-overwrite-most-uniform-value-check-data-break

Change-Id: I20d10f67d1e5ab4510c673cfc3a90446221700b7

2 years agoAdd a batch of GraphicsFuzz coverage tests
Ari Suonpaa [Tue, 22 Mar 2022 13:23:08 +0000 (15:23 +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-enable-bits-pixel-location-negate-not-equal-one
dEQP-VK.graphicsfuzz.cov-fragcoord-and-one-or-same-value
dEQP-VK.graphicsfuzz.cov-fragcoord-loop-limit-negative-decrease-sum-first-iteration
dEQP-VK.graphicsfuzz.cov-function-call-twice-clamp-global-variable
dEQP-VK.graphicsfuzz.cov-function-loop-variable-multiplied-unused
dEQP-VK.graphicsfuzz.cov-loop-array-element-bitfield-insert-undefined-never-read
dEQP-VK.graphicsfuzz.cov-loop-find-lsb-eight-fragcoord-never-discard
dEQP-VK.graphicsfuzz.cov-loop-index-array-max-negative-zero
dEQP-VK.graphicsfuzz.cov-loop-max-divide-integer-by-ten
dEQP-VK.graphicsfuzz.cov-loop-sampled-texel-integer-counter
dEQP-VK.graphicsfuzz.cov-loop-variable-less-than-itself
dEQP-VK.graphicsfuzz.cov-mix-uninitialized-float-never-selected
dEQP-VK.graphicsfuzz.cov-nested-loop-decrease-vector-components
dEQP-VK.graphicsfuzz.cov-nested-loops-while-condition-integer-range-increment-variable
dEQP-VK.graphicsfuzz.cov-uadd-carry-bit-count-index-array

Change-Id: I4160d3418b1a8fa3a29695f939af6aa79ded319d

2 years agoAdd a batch of GraphicsFuzz coverage tests
Ari Suonpaa [Wed, 23 Mar 2022 06:42:08 +0000 (08:42 +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-bitwise-or-uniform-zero-tenth-bit-loop-limit-find-lsb
dEQP-VK.graphicsfuzz.cov-copy-array-elements-except-first-nested-loop-replace-identical-values
dEQP-VK.graphicsfuzz.cov-decrement-vector-elements-clamp-index
dEQP-VK.graphicsfuzz.cov-function-large-loop-break-argument-lte-global-loop-bound
dEQP-VK.graphicsfuzz.cov-function-set-struct-field-zero-loop-reset-first-element
dEQP-VK.graphicsfuzz.cov-global-loop-count-array-struct-field-set-int-array-element
dEQP-VK.graphicsfuzz.cov-increment-one-array-element-check-index-from-fragcoord
dEQP-VK.graphicsfuzz.cov-loop-array-struct-field-index-array-with-uniforms
dEQP-VK.graphicsfuzz.cov-loop-construct-vec4-from-vec4-clamp-same-min-max
dEQP-VK.graphicsfuzz.cov-loop-copy-previous-array-element-first-undefined
dEQP-VK.graphicsfuzz.cov-loop-decrease-vector-components-assign-multiple-times
dEQP-VK.graphicsfuzz.cov-loop-increment-array-index-array-usuborrow-feedback
dEQP-VK.graphicsfuzz.cov-loop-large-array-index-clamp-negative-value
dEQP-VK.graphicsfuzz.cov-nested-loops-never-change-array-element-one
dEQP-VK.graphicsfuzz.cov-nested-loops-switch-add-zero-matrix-elements

Change-Id: Icbab932af39ff6070b622e5d71c360a890382e89

2 years agoAdd a batch of GraphicsFuzz coverage tests
Ari Suonpaa [Wed, 23 Mar 2022 07:02:46 +0000 (09:02 +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-fragcoord-integer-loop-reduce-to-range
dEQP-VK.graphicsfuzz.cov-function-infinite-loop-return-identical-condition
dEQP-VK.graphicsfuzz.cov-function-loop-modify-ivec-components-infinite-loop-never-executed
dEQP-VK.graphicsfuzz.cov-function-unused-argument-single-loop-iteration-icrement-global-counter
dEQP-VK.graphicsfuzz.cov-large-loop-break-early-condition-iterator-divided
dEQP-VK.graphicsfuzz.cov-large-loop-multiply-integer-by-uniform-one
dEQP-VK.graphicsfuzz.cov-loop-condition-increment-integer-fallback-global-counter
dEQP-VK.graphicsfuzz.cov-loop-multiple-iterator-variables-copy-array-elements
dEQP-VK.graphicsfuzz.cov-loop-read-array-index-from-array-data
dEQP-VK.graphicsfuzz.cov-nested-loops-decrease-ivec-component
dEQP-VK.graphicsfuzz.cov-nested-loops-identical-iterators-compare-same-array-elements
dEQP-VK.graphicsfuzz.cov-nested-loops-temporary-copy-output-color-index-matrix
dEQP-VK.graphicsfuzz.cov-nested-loops-while-min-iterator-condition-always-false
dEQP-VK.graphicsfuzz.cov-struct-int-array-select-uniform-ivec
dEQP-VK.graphicsfuzz.cov-two-functions-loops-copy-elements-infinite-loops-never-executed

Change-Id: Ia735b9f7c54ef62316dde087460df0bd7d2684f9

2 years agoAdd vkGetDeviceQueue2 tests for Protected memory feature
Ralph Potter [Wed, 2 Mar 2022 15:17:46 +0000 (16:17 +0100)]
Add vkGetDeviceQueue2 tests for Protected memory feature

The existing tests did not cover a wide range of vkGetDeviceQueue2 calls.
Added new tests that includes accessing Queues with different
VkDeviceQueueCreateFlags and Queue Family indices.

In addition the existing device_init.create_device_queue2_unmatched_flags
test is removed as it tries to perform a test case which is not allowed
by valid usage descriptions.

These changes are due to an update in Vulkan specification.
Additional details on the specification change:

https://gitlab.khronos.org/vulkan/vulkan/-/issues/2978
https://gitlab.khronos.org/vulkan/vulkan/-/merge_requests/5056

New Tests:

dEQP-VK.api.device_init.create_device_queue2_two_queues
dEQP-VK.api.device_init.create_device_queue2_all_protected
dEQP-VK.api.device_init.create_device_queue2_all_unprotected
dEQP-VK.api.device_init.create_device_queue2_split
dEQP-VK.api.device_init.create_device_queue2_all_families
dEQP-VK.api.device_init.create_device_queue2_all_families_protected
dEQP-VK.api.device_init.create_device_queue2_all_combinations

Affects:

dEQP-VK.api.device_init.create_device_queue2_unmatched_flags

Components: Vulkan

Vulkan issue: 5056

Change-Id: I53abb2818480305aaef5c236489c05fbf6b0f5ce

2 years agoCheck conditional rendering with non-zero memory offset
Ricardo Garcia [Wed, 6 Apr 2022 08:43:27 +0000 (10:43 +0200)]
Check conditional rendering with non-zero memory offset

This commit adds a new set of tests that check the conditional rendering
buffer works properly when the allocation is bound with a non-zero
offset to the buffer.

New tests:
dEQP-VK.conditional_rendering.dispatch.alloc_offset.*

Affected tests:
dEQP-VK.conditional_rendering.*

VK-GL-CTS issue: 3591
Components: Vulkan

Change-Id: I6485e6dc96f625d17b96c4771121ea540cab8d6a

2 years agoAdd coverage for IsHelperInvocationEXT
Juha Heiskanen [Thu, 24 Mar 2022 05:55:11 +0000 (07:55 +0200)]
Add coverage for IsHelperInvocationEXT

This test verifies helper invocations remain active in subgroup quad
operations after being demoted.

Components: Vulkan

VK-GL-CTS Issue: 3377

New tests: dEQP-VK.draw.renderpass.shader_invocation.helper_invocation

Change-Id: Ibcb31e19f7f5465358750c4b59dcd805a14621a1

2 years agoAdd notice of withdrawal for 1.2.6.x
Matthew Netsch [Thu, 7 Apr 2022 17:18:27 +0000 (10:18 -0700)]
Add notice of withdrawal for 1.2.6.x

Components: Framework
Change-Id: Ib81e63bd69e6a28c00655b1790e8c6bdf59cf6e7

2 years agoInterpolateAt{Offset, Sample} with linear interpolation tests
Juha Heiskanen [Thu, 17 Feb 2022 06:11:22 +0000 (08:11 +0200)]
InterpolateAt{Offset, Sample} with linear interpolation tests

This CL adds interpolateAtOffset and interpolateAtSample with linear
interpolation tests for Vulkan. These new tests can also be run by
using dynamic rendering.

Components: Vulkan

VK-GL-CTS Issue: 3191

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

Change-Id: I9a5d39d1c7cf2d1101dd380e481b155265793c25

2 years agoImage extended usage should include VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT
Martin Freebody [Mon, 14 Mar 2022 15:47:17 +0000 (15:47 +0000)]
Image extended usage should include VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT

In the vkGetPhysicalDeviceImageFormatProperties, VkImageCreateFlags
requires VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT as well as
VK_IMAGE_CREATE_EXTENDED_USAGE_BIT to allow compatibility with
all view formats.

Components: Vulkan

VK-GL-CTS issue: 3574

Affects: dEQP-VK.image.extended_usage_bit_compatibility.*

Change-Id: Ie05db422d5a511245ef7a5e8cbff3f0fb93e2f82

2 years agoAdd a batch of GraphicsFuzz coverage tests
Ari Suonpaa [Wed, 23 Mar 2022 07:34:40 +0000 (09:34 +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-array-cast-bool-float-div-by-zero-no-effect
dEQP-VK.graphicsfuzz.cov-array-set-element-condition-negative-modulus
dEQP-VK.graphicsfuzz.cov-clamp-min-bitcount-uniform
dEQP-VK.graphicsfuzz.cov-condition-clamp-min-from-uniform-never-larger
dEQP-VK.graphicsfuzz.cov-function-clamp-min-identical-shift-right
dEQP-VK.graphicsfuzz.cov-function-infinite-loop-always-return
dEQP-VK.graphicsfuzz.cov-function-loop-switch-increment-array-element-return
dEQP-VK.graphicsfuzz.cov-function-min-integer-large-shift-unused
dEQP-VK.graphicsfuzz.cov-loop-decrease-integer-never-break
dEQP-VK.graphicsfuzz.cov-loop-global-counter-break-set-ivec-elements
dEQP-VK.graphicsfuzz.cov-nested-loops-inner-loop-min-copy-array-elements
dEQP-VK.graphicsfuzz.cov-nested-loops-return-inside-while-never-executed
dEQP-VK.graphicsfuzz.cov-nested-loops-substract-matrix-element-change-float
dEQP-VK.graphicsfuzz.cov-nested-loops-switch-case-fallthrough-increment-array-element
dEQP-VK.graphicsfuzz.cov-two-loops-increment-integer-global-counter-break-square-threshold

Change-Id: Id55832113b3ebcd48fc4e6a2a8e0502725766944

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
(cherry picked from commit 33fba799401ba8e74907bf4bf7893d50f188e842)

2 years agovulkan: KHR_format_feature_flags2 modifier coverage
James Jones [Wed, 23 Mar 2022 00:50:23 +0000 (17:50 -0700)]
vulkan: KHR_format_feature_flags2 modifier coverage

Components: Vulkan

New tests:

dEQP-VK.drm_format_modifiers.list_modifiers_fmt_features2.*
dEQP-VK.drm_format_modifiers.create_list_modifiers_fmt_features2.*
dEQP-VK.drm_format_modifiers.export_import_fmt_features2.*

VK-GL-CTS issue: 3579

Change-Id: I9aa850ea60171523dd5097910e6d3104f7a86cf4

2 years agoKeep track which SBT records are needed and initialize all needed ones
Sławomir Cygan [Thu, 31 Mar 2022 13:17:59 +0000 (15:17 +0200)]
Keep track which SBT records are needed and initialize all needed ones

This fixes using uninitialized memory for SBT records, when
prepareShaderBindingTable() prepares them with flags == 0.

New boolean field is added to SBT description, marked as true when
SBT is needed according to prepareShaderBindingTable()  and needs to
be copied to device memory.

Components: Vulkan

VK-GL-CTS Issue: 3598

Affects: dEQP-VK.ray_tracing_pipeline.pipeline_no_null_shaders_flag.*

Change-Id: I5a0a4f6137cece312f7474e1c47c76eb358f62a4

2 years agoUse queues and entrypoints from custom device
Sławomir Cygan [Tue, 29 Mar 2022 15:48:53 +0000 (17:48 +0200)]
Use queues and entrypoints from custom device

This fixes the test to submit to the queue from same
device, that the command buffers where created from.

Moreover, this fixes the test to use entrypoints get from
the same device that is in use.

Components: Vulkan

VK-GL-CTS Issue: 3592

Affects: dEQP-VK.memory.binding.priority_dynamic.*

Change-Id: Ieca1f6843e31fd5dbf0ad31f4d5b4f3ce3c44453

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/main
Matthew Netsch [Fri, 8 Apr 2022 19:07:28 +0000 (12:07 -0700)]
Merge vk-gl-cts/vulkan-cts-1.3.1 into vk-gl-cts/main

Change-Id: I01fbe10ddaa35327ce769510b48d2c491af16e38

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 agoskip non-compresed 3D views of compressed images
Ilan Aelion [Mon, 4 Apr 2022 18:51:22 +0000 (11:51 -0700)]
skip non-compresed 3D views of compressed images

dEQP-VKSC.image.texel_view_compatible.graphic.*.3d_image.texture_read
tests violate VUID-VkImageViewCreateInfo-image-04739 - "If image was
created with the VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT flag
and format is a non-compressed format, viewType must not be
VK_IMAGE_VIEW_TYPE_3D"

Components: Vulkan, VulkanSC
Affected Tests:
dEQP-VKSC.image.texel_view_compatible.graphic.*.3d_image.texture_read.*

Change-Id: I48512da1cdedbaecc73ac1ae1289cbbb4bc2f70c

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 agoFlush stdout after printing test name and result on Windows
Louis-Francis Ratté-Boulianne [Sat, 2 Apr 2022 03:54:06 +0000 (23:54 -0400)]
Flush stdout after printing test name and result on Windows

On other platforms, the standard output mode is changed to line
buffered, but that isn't possible on Windows. To allow other tools
(such as deqp-runner) to properly parse the output even if a
crash occurs, we need to flush after printing the test case name
and result.

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
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