platform/upstream/VK-GL-CTS.git
4 years agoUse VK_FORMAT_R32G32_UINT in unused attachment sparse filling tests
Chris Forbes [Thu, 19 Dec 2019 22:09:31 +0000 (14:09 -0800)]
Use VK_FORMAT_R32G32_UINT in unused attachment sparse filling tests

VK_FORMAT_R16G16_UINT is not guaranteed to be supported as a storage
image. Use something that is.

VK-GL-CTS Issue: 2155
Components: Vulkan
Affects: dEQP-VK.renderpass.suballocation.attachment_sparse_filling.*

Change-Id: I9a116f824aa8ca00c2bf174b8786c8f9ae2cdafa

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/vulkan-cts-1.2.1
Alexander Galazin [Sat, 21 Dec 2019 11:23:06 +0000 (12:23 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/vulkan-cts-1.2.1

Change-Id: I4b8288ca5eab177cd2a6c2684a78a6cf8786b739

4 years agoRe-enable tests
Alexander Galazin [Sat, 21 Dec 2019 09:50:50 +0000 (10:50 +0100)]
Re-enable tests

Change-Id: Ic4d90d99b69ef931ba2f3f49538201762eb6746e

4 years agoUpdate SPIR-V Tools
Alexander Galazin [Wed, 18 Dec 2019 18:56:23 +0000 (19:56 +0100)]
Update SPIR-V Tools

Components: Framework

Change-Id: Ifef943741a8d8532f5c289e8121d6c503a0a537d

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/vulkan-cts-1.2.1
Alexander Galazin [Fri, 20 Dec 2019 20:55:23 +0000 (21:55 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/vulkan-cts-1.2.1

Change-Id: I54ba10b36ec4fabe9d4c9d6ff66857c8e2bbef62

4 years agoAccount for VS executing more than once when atomics are used.
Matthew Netsch [Fri, 4 Oct 2019 15:46:04 +0000 (11:46 -0400)]
Account for VS executing more than once when atomics are used.

Components: Vulkan

Affects: dEQP-VK.glsl.opaque_type_indexing.atomic_counter.*
         dEQP-VK.glsl.atomic_operations.*

Change-Id: I15eabf9b47af204fd13370efdc323af141b6b11b

4 years agoMerge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-1.2.1
Alexander Galazin [Fri, 20 Dec 2019 15:20:52 +0000 (16:20 +0100)]
Merge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-1.2.1

Change-Id: I5e885ca6903eb166df83a1387c5592559e7df469

4 years agoAdd buffer reference comparison tests
Ricardo Garcia [Wed, 23 Oct 2019 09:46:15 +0000 (11:46 +0200)]
Add buffer reference comparison tests

This commit adds tests to convert buffer references to both uint64_t and
uvec2 and compare them against zero and against other references.

In addition, new test variants also check cross conversions, i.e., when
a reference is loaded as a uint64_t and later converted to uvec2 or vice
versa.

New tests:
dEQP-VK.binding_model.buffer_device_address.*.convertchecku64.*
dEQP-VK.binding_model.buffer_device_address.*.convertcheckuv2.*
dEQP-VK.binding_model.buffer_device_address.*.crossconvertu2p.*
dEQP-VK.binding_model.buffer_device_address.*.crossconvertp2u.*

Components: Vulkan
VK-GL-CTS issue: 1968

Change-Id: I4ae5b66473953097a52f169e5b8c425647eedb2c
(cherry picked from commit d0ee43aaa980dab94ed247e467999864373868d8)

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Fri, 20 Dec 2019 12:51:17 +0000 (13:51 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: If326d580f29fd87e9e72e81a11a39e8629d35bb5

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6
Alexander Galazin [Fri, 20 Dec 2019 12:50:25 +0000 (13:50 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6

Change-Id: I0f9446b635621472d72566a6176c7d0c00306263

4 years agoAvoid undefined behaviour when calculating subgroup ballot masks
Dae Kim [Fri, 13 Dec 2019 09:26:05 +0000 (09:26 +0000)]
Avoid undefined behaviour when calculating subgroup ballot masks

The affected tests are shifting the bits of the last component of the
computed ballot masks by 32. However, the SPIR-V specification
establishes that the result of OpShift* is undefined if `Shift` is
greater than *or equal* to the bit width of the components of `Base`.

Affects:

dEQP-VK.subgroups.ballot_other.*

Components: Vulkan

VK-GL-CTS issue: 2083

Change-Id: I8c9b4373f1429669a40741986916e8d71b7eb573

4 years agoFix bad merge from https://gerrit.khronos.org/#/c/5107/
Piers Daniell [Wed, 11 Dec 2019 22:19:18 +0000 (15:19 -0700)]
Fix bad merge from https://gerrit.khronos.org/#/c/5107/

When https://gerrit.khronos.org/#/c/4874/ was cherry-picked
to the vulkan-cts-1.1.6 branch it would have hit conflicts
with the new VK_EXT_line_rasterization tests from
https://gerrit.khronos.org/#/c/3997/.

This CL fixes a bad conflict resolution in
tcuRasterizationVerifier.cpp that forced the verification
mode of all line types top be scrict, when they should
have got their verification mode from
scene.verificationMode.

This CL also modifies the position of the test lines
for case 2 of LinesTestInstance::generateLines(). The
position of the last line, added with CL 5107, was moved
lower to avoid excessive overlap with the other three
lines. This excessive overlap caused many pixels to
share edges and aggravate a minor flaw in the software
line rasterizer where it always assumes full coverage on
pixels that share edges of two or more triangles.
They may actually still be only partial coverage when
doing smooth or multisample rendering, and forcing it
to full coverage won't match what hardware does.

Affects: dEQP-VK.rasterization.primitives.*

Components: Vulkan

VK-GL-CTS Issue: 2062

Change-Id: Ie865f46c24e8265fd47354faaf9be5efd002b2d4

4 years agoFix invalid CFG in SPIR-V 1.4 tests
Alan Baker [Thu, 19 Dec 2019 14:57:38 +0000 (09:57 -0500)]
Fix invalid CFG in SPIR-V 1.4 tests

VK-GL-CTS Issue: 2122

Component: Vulkan

Affected tests:
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrdiff.variable_pointers_vars_ssbo_2_diff
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrequal.variable_pointers_ssbo_2_equal
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrnotequal.variable_pointers_ssbo_2_not_equal
dEQP-VK.spirv_assembly.instruction.spirv1p4.nonwritable.function_nonwritable
dEQP-VK.spirv_assembly.instruction.spirv1p4.nonwritable.private_nonwritable

Change-Id: Ie886aba331a7721d3d3468dd8c616ca7ab2d5664

4 years agoFix invalid CFG in SPIR-V 1.4 tests
Alan Baker [Thu, 19 Dec 2019 14:50:54 +0000 (09:50 -0500)]
Fix invalid CFG in SPIR-V 1.4 tests

VK-GL-CTS Issue: 2122

Component: Vulkan

Affected tests:
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrdiff.variable_pointers_vars_ssbo_2_diff
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrequal.variable_pointers_ssbo_2_equal
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrnotequal.variable_pointers_ssbo_2_not_equal
dEQP-VK.spirv_assembly.instruction.spirv1p4.nonwritable.function_nonwritable
dEQP-VK.spirv_assembly.instruction.spirv1p4.nonwritable.private_nonwritable

Change-Id: Ifcdae634224c08be8ebbd7efaa9e63c046acbae5

4 years agoFix texture shadow test using image views with zero aspect
Slawomir Cygan [Fri, 6 Dec 2019 13:26:00 +0000 (14:26 +0100)]
Fix texture shadow test using image views with zero aspect

addCubeTexture / add2DArrayTexture functions are wrongly used, backingMode is
passed as view aspect, leading to 0 aspect being used in vkImageViewCreateInfo

Components: Vulkan

VK-GL-CTS Issue: 2144

Affects:
    dEQP-VK.texture.shadow.2d_array.*
    dEQP-VK.texture.shadow.cube.*

Change-Id: I4c338756bb6e693b815c39ab8dc5c0c046fad2a5
(cherry picked from commit b969f4eca91c110200389673c5b7d0500b2b3e59)

4 years agoWhitelist Vulkan CTS 1.2.1.0
Alexander Galazin [Wed, 18 Dec 2019 08:04:27 +0000 (09:04 +0100)]
Whitelist Vulkan CTS 1.2.1.0

Affects: dEQP-VK.api.driver_properties.properties

Components: Vulkan

Change-Id: I695bd9e5dc036ca3f96be8f58ffc400a86a5ef31

4 years agoMerge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Alexander Galazin [Tue, 17 Dec 2019 19:45:09 +0000 (20:45 +0100)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev

Change-Id: I33077806ad26f3035b0de21db7e64eefc9390ea8

4 years agoMerge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-next-dev
Alexander Galazin [Tue, 17 Dec 2019 18:03:54 +0000 (19:03 +0100)]
Merge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-next-dev

Change-Id: I0203949263fcf64b57646556bf90655c36d82b4c

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master
Alexander Galazin [Tue, 17 Dec 2019 16:42:08 +0000 (17:42 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master

Change-Id: I1480366fa7076b474ea7d3da34a1375c09b9da0c

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6
Alexander Galazin [Tue, 17 Dec 2019 15:30:21 +0000 (16:30 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6

Change-Id: I7054b3a97f5f57fb5d5829f21991efe70108c77a

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Tue, 17 Dec 2019 15:29:31 +0000 (16:29 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: I8752672f5ba4807bc8e638b117a7c37d5e161d05

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5
Alexander Galazin [Tue, 17 Dec 2019 14:34:21 +0000 (15:34 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5

Change-Id: I4d9b046396a757d9fce9a0a326b150deb37015ce

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Tue, 17 Dec 2019 12:32:46 +0000 (13:32 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: Ia01386a2e8fec477414b8488a7bfa883265c32ec

4 years agodEQP-VK.graphicsfuzz.modf-temp-modf-color
Paul Thomson [Tue, 8 Oct 2019 15:18:27 +0000 (16:18 +0100)]
dEQP-VK.graphicsfuzz.modf-temp-modf-color

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.modf-temp-modf-color

Change-Id: Ib41611b5813421bdfe24e4e9e4f2ccde4c9d008b

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.2 into vk-gl-cts/vulkan-cts-1.1.3
Alexander Galazin [Tue, 17 Dec 2019 10:58:46 +0000 (11:58 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.2 into vk-gl-cts/vulkan-cts-1.1.3

Change-Id: Iecc5fe7d8f5119a46a78fd7d6f3c3b613c45059d

4 years agoFix setting Amber fence timeout
Slawomir Cygan [Thu, 5 Dec 2019 18:27:11 +0000 (19:27 +0100)]
Fix setting Amber fence timeout

The call to SetFenceTimeout() does nothing, if the Amber
document is not parsed yet (it's a pimpl doing NOP, when
pimpl is not set).

Move setting the fence timeout after document parsing.

Components: Vulkan,Framework

VK-GL-CTS Issue 2119

Affects: dEQP-VK.*   (Amber tests only).

Change-Id: I9debec1bc2709ad7ad2170a887dabc9bd92bd148

4 years agoAdd helper function to query extension properties
Boris Zanin [Fri, 6 Dec 2019 10:18:10 +0000 (11:18 +0100)]
Add helper function to query extension properties

Introduce template function getPhysicalDeviceExtensionProperties
that enables to query physical device extension properties in one call.

Components: Framework

VK-GL-CTS issue: 2142

Change-Id: I252fd5deb9883d1c93b7163ef26f13a479b685de

4 years agoRe-include some Android CTS tests
Paul Thomson [Mon, 9 Dec 2019 16:03:38 +0000 (16:03 +0000)]
Re-include some Android CTS tests

Components: Android

Included tests:

dEQP-VK.glsl.builtin.precision.*
dEQP-VK.spirv_assembly.instruction.compute.opfunord.*
dEQP-VK.spirv_assembly.instruction.*.indexing.*u32*
dEQP-VK.spirv_assembly.instruction.*.indexing.*s32*

Change-Id: Ib9be1f9ef388c7baeaf8f11b1dd7e60efdf72dc5

4 years agoProvide a highp variable to MAKE_HIGH_BALLOT_RESULT
Paul Thomson [Thu, 5 Dec 2019 18:13:00 +0000 (18:13 +0000)]
Provide a highp variable to MAKE_HIGH_BALLOT_RESULT

The MAKE_HIGH_BALLOT_RESULT macro assumes the input is 32bit.
Given a mediump variable, ex: gl_SubgroupSize, would produce an
undefined result when the input value is >= 16 and the computation
is in 16 bits.
Provide a highp input would ensure the computation is in 32 bits.

Affects:
  dEQP-VK.subgroups.ballot_other.*

Components: vulkan

VK-GL-CTS issue: 1894

Change-Id: I22987f20be3d08444c52cb722fc23494777a5636

4 years agoRemove event tests which use illegal behaviour
Peter Quayle [Thu, 5 Dec 2019 11:34:25 +0000 (11:34 +0000)]
Remove event tests which use illegal behaviour

Two event tests were relying on being able to wait on the device for
an event to be set on the host. This behaviour is not allowed.

Affects:

dEQP-VK.synchronization.smoke.events
dEQP-VK.synchronization.basic.event.host_set_device_wait

Components: Vulkan

VK-GL-CTS issue: 2108

Change-Id: Idbb8b4e2468d617b3e47d5055622789a2dd3eb00

4 years agoFix init error
Alexander Galazin [Sun, 8 Dec 2019 20:53:00 +0000 (21:53 +0100)]
Fix init error

Components: Vulkan

Change-Id: I32a3f494fdd0690ad839ff317d9458dd2644d04b

4 years agoGLES 3.1 negative framebuffer texture2D test fails
Courtney Goeltzenleuchter [Wed, 4 Dec 2019 21:01:39 +0000 (14:01 -0700)]
GLES 3.1 negative framebuffer texture2D test fails

Test is using wrong max size when checking cube map textures.

Affected Test:
   dEQP-GLES31.functional.debug.negative_coverage.get_error.buffer.framebuffer_texture2d

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

Change-Id: I35bcdcfb8181a9eb062da10234f56267c56ac188

4 years agoFix incorrect use of dlopen/dlclose
Victor Khimenko [Tue, 10 Sep 2019 21:25:00 +0000 (23:25 +0200)]
Fix incorrect use of dlopen/dlclose

Function pointers returned by dlsym are retained after dlclose() is
called. If the library is actually unloaded by that dlclose() call, then
calling through those function pointers then triggers undefined
behavior.

Components: Vulkan
Affects: dEQP-VK.api.external.memory.android_hardware_buffer.*

Google Bug: b/140826027

Change-Id: I1da2d10e97e5567578bf06d768820764882f7126

4 years agoFix memory leaks in dEQP-VK.api.invariance.random
Arkadiusz Sarwa [Fri, 15 Nov 2019 16:35:24 +0000 (17:35 +0100)]
Fix memory leaks in dEQP-VK.api.invariance.random

Test dEQP-VK.api.invariance.random contains memory leaks.
Change fixes memory leaks.

Components: Vulkan

VK-GL-CTS Issue: 2110

Affects: dEQP-VK.api.invariance.random

Change-Id: I4ccd9d87b69f51da661ca85f10eb347086594aaa

4 years agoFix VU error in swapchain creation tests
Ricardo Garcia [Tue, 26 Nov 2019 16:13:23 +0000 (17:13 +0100)]
Fix VU error in swapchain creation tests

dEQP-VK.wsi.*.swapchain.create.image_sharing_mode checks if creating a
swapchain works with VK_SHARING_MODE_CONCURRENT, but passes a single
queue in the creation structure.

This commit changes the test to obtain all valid queue families for the
surface and uses all of them in the creation structure when using
concurrent sharing.

Affected tests:
dEQP-VK.wsi.*.swapchain.create.image_sharing_mode

Components: Vulkan
VK-GL-CTS issue: 2126

Change-Id: If745ed50c8223b6b73405f0af2f54a096e846bff

4 years agoYield inside looping worker thread
Michael Chock [Tue, 26 Nov 2019 19:32:50 +0000 (11:32 -0800)]
Yield inside looping worker thread

Add a deYield() inside a worker thread that does not otherwise contain
any thread synchronization. This avoids potential starvation of the main
thread.

Fix the spelling of 'monotonically' in the same file.

VK-GL-CTS issue: 2128
Components: Vulkan

Affects:
dEQP-VK.synchronization.timeline_semaphore.device_host.misc.max_difference_value

Change-Id: I8e7cf83583a39e7d3a732d8a8e8c7caa48f824e4

4 years agoFix invalid SPIR-V in GraphicsFuzz tests
Alastair Donaldson [Tue, 26 Nov 2019 14:17:11 +0000 (14:17 +0000)]
Fix invalid SPIR-V in GraphicsFuzz tests

Components: Vulkan

VK-GL-CTS Issue: 2122

Affected tests:

dEQP-VK.graphicsfuzz.continue-and-merge
dEQP-VK.graphicsfuzz.control-flow-switch
dEQP-VK.graphicsfuzz.discard-continue-return
dEQP-VK.graphicsfuzz.fragcoord-control-flow-2
dEQP-VK.graphicsfuzz.fragcoord-control-flow
dEQP-VK.graphicsfuzz.loop-call-discard
dEQP-VK.graphicsfuzz.mat-array-deep-control-flow
dEQP-VK.graphicsfuzz.mat-array-distance
dEQP-VK.graphicsfuzz.return-in-loop-in-function
dEQP-VK.graphicsfuzz.unreachable-continue-statement

Change-Id: Iaa7448ee4a815d9e3a1c8a5582214ecd599ac143

4 years agoFix invalid SPIR-V in GraphicsFuzz tests
Alastair Donaldson [Tue, 26 Nov 2019 14:17:11 +0000 (14:17 +0000)]
Fix invalid SPIR-V in GraphicsFuzz tests

Components: Vulkan

VK-GL-CTS Issue: 2122

Affected tests:

dEQP-VK.graphicsfuzz.always-false-if-in-do-while
dEQP-VK.graphicsfuzz.call-if-while-switch
dEQP-VK.graphicsfuzz.complex-nested-loops-and-call
dEQP-VK.graphicsfuzz.continue-and-merge
dEQP-VK.graphicsfuzz.control-flow-switch
dEQP-VK.graphicsfuzz.disc-and-add-in-func-in-loop
dEQP-VK.graphicsfuzz.discard-continue-return
dEQP-VK.graphicsfuzz.fragcoord-control-flow-2
dEQP-VK.graphicsfuzz.fragcoord-control-flow
dEQP-VK.graphicsfuzz.loop-call-discard
dEQP-VK.graphicsfuzz.mat-array-deep-control-flow
dEQP-VK.graphicsfuzz.mat-array-distance
dEQP-VK.graphicsfuzz.return-before-writing-wrong-color
dEQP-VK.graphicsfuzz.return-float-from-while-loop
dEQP-VK.graphicsfuzz.return-in-loop-in-function
dEQP-VK.graphicsfuzz.two-nested-do-whiles
dEQP-VK.graphicsfuzz.undefined-integer-in-function
dEQP-VK.graphicsfuzz.uninit-element-cast-in-loop
dEQP-VK.graphicsfuzz.unreachable-continue-statement
dEQP-VK.graphicsfuzz.while-function-always-false

Change-Id: Ie216398ba044cb936b4e8a36fe44f7f0ced5dbbf

4 years agoExtra testing for layouts
Piotr Byszewski [Thu, 28 Nov 2019 12:57:56 +0000 (13:57 +0100)]
Extra testing for layouts

This change extends layout tests with tests that use
VK_EXT_descriptor_indexing.

Components: Vulkan

VK-GL-CTS issue: 1453

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

Change-Id: I320ba9b46d08605dd98a60d9bbc4000a664da6b8

4 years agoAdd memory model padding access test
Ricardo Garcia [Tue, 3 Dec 2019 09:52:04 +0000 (10:52 +0100)]
Add memory model padding access test

This commit adds a test to make sure padding bytes at the end of
structures are not touched when performing structure-wise store
operations, as required by the memory model spec.

New tests:
dEQP-VK.memory_model.padding.*

Components: Vulkan
VK-GL-CTS issue: 2088

Change-Id: Ib271c6ab44bd402c2499cc7549809ab6d5178ee1

4 years agodEQP-VK.graphicsfuzz.two-2-iteration-loops
Alastair Donaldson [Wed, 4 Dec 2019 17:42:55 +0000 (17:42 +0000)]
dEQP-VK.graphicsfuzz.two-2-iteration-loops

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.two-2-iteration-loops

Change-Id: Ic5f9f1683ec96bd45889d3b9f73628e7492fca7d

4 years agodEQP-VK.graphicsfuzz.mat-mul-in-loop
Alastair Donaldson [Wed, 4 Dec 2019 17:44:23 +0000 (17:44 +0000)]
dEQP-VK.graphicsfuzz.mat-mul-in-loop

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.mat-mul-in-loop

Change-Id: Iac5112a7bb0f8abfb02da029348427986c79ebf0

4 years agodEQP-VK.graphicsfuzz.int-mat2-struct
Alastair Donaldson [Wed, 4 Dec 2019 17:44:59 +0000 (17:44 +0000)]
dEQP-VK.graphicsfuzz.int-mat2-struct

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.int-mat2-struct

Change-Id: I806cc78bb14d955a4e9c256640e3583924ab7134

4 years agodEQP-VK.graphicsfuzz.struct-controlled-loop
Alastair Donaldson [Wed, 4 Dec 2019 17:45:29 +0000 (17:45 +0000)]
dEQP-VK.graphicsfuzz.struct-controlled-loop

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.struct-controlled-loop

Change-Id: Iff73d5ed464c0e88c33555becd641f49b64e5072

4 years agodEQP-VK.graphicsfuzz.break-in-do-while-with-nested-if
Venni Ihanakangas [Tue, 19 Nov 2019 07:45:31 +0000 (09:45 +0200)]
dEQP-VK.graphicsfuzz.break-in-do-while-with-nested-if

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.break-in-do-while-with-nested-if

Change-Id: Ibc066e302b78827137c0f4501f92e1a62f1258a3

4 years agoExtend non-const quad broadcast tests
Graeme Leese [Fri, 6 Sep 2019 16:00:13 +0000 (17:00 +0100)]
Extend non-const quad broadcast tests

Add two extra broadcasts to the _nonconst tests for lane indices that
are:
1. dynamically uniform in all active lanes but not all lanes are active.
2. Uniform within a quad but different in adjacent quads.

Components: Vulkan
VK-GL-CTS issue: 1978
Affects: dEQP-VK.subgroups.quad.*broadcast_nonconst_*

Change-Id: I1b4c95423de12f3750ed19789e7ca35bf718d366

4 years agoTest vkQueuePresentKHR with multiple swapchains
Ricardo Garcia [Tue, 26 Nov 2019 16:13:23 +0000 (17:13 +0100)]
Test vkQueuePresentKHR with multiple swapchains

This commit adds test to call vkQueuePresentKHR with multiple swapchains
and check results from the results array.

In addition, some common code has been moved to vkWsiUtil and reused in
several different places. Hence marking all swapchain tests as affected.

Affected tests:
dEQP-VK.wsi.*.swapchain.*

New tests:
dEQP-VK.wsi.*.swapchain.render.*swapchains*

Components: Vulkan
VK-GL-CTS issue: 2113

Change-Id: I312ad1500fa5172e7a5e5d45300d986d8712a4fb

4 years agoAdd tests for presentation support functions
Pawel Ksiezopolski [Thu, 14 Nov 2019 09:39:21 +0000 (10:39 +0100)]
Add tests for presentation support functions

Test concerns platform-specific presentation support functions
defined in chapter 32.4 ( Querying for WSI Support ) of the
Vulkan specification.

New tests:
dEQP-VK.wsi.*.surface.query_presentation_support

Components: Vulkan Framework

VK-GL-CTS issue: 1798

Change-Id: I0b5017e58fe3b4c2f49c94b2f2808103734793eb

4 years agodEQP-VK.graphicsfuzz.smoothstep-after-loop
Alastair Donaldson [Sun, 3 Nov 2019 23:13:40 +0000 (23:13 +0000)]
dEQP-VK.graphicsfuzz.smoothstep-after-loop

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.smoothstep-after-loop

Change-Id: I7b58ea75980f0eded5f5d09e4a729d7c0d75194b

4 years agoFix compiler warning
Alexander Galazin [Sun, 8 Dec 2019 18:05:33 +0000 (19:05 +0100)]
Fix compiler warning

Components: OpenGL

Change-Id: I12feaac604e8a7c9a0617cc3b62bde8d04cbf8e1

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master
Alexander Galazin [Fri, 6 Dec 2019 19:28:58 +0000 (20:28 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master

Change-Id: Ia42787234c2094a0e7f92b0b40ae00edf3ae9361

4 years agoAdd tests to check blend constant clamping
Ricardo Garcia [Wed, 20 Nov 2019 17:19:23 +0000 (18:19 +0100)]
Add tests to check blend constant clamping

Add tests to check unsigned and signed normalized values for the source
color and blend constants are clamped to the proper ranges when using
color blending, as required by the spec.

New tests:
dEQP-VK.pipeline.blend.clamp.*

Components: Vulkan
VK-GL-CTS issue: 2021

Change-Id: I76abb5f720564d3c5c0f6c965a97276638fe923c

4 years agoAdd tests for VK_EXT_display_control
Piotr Byszewski [Tue, 12 Nov 2019 08:27:04 +0000 (09:27 +0100)]
Add tests for VK_EXT_display_control

VK-GL-CTS issue: 1680

Components: Vulkan

Affects:
dEQP-VK.wsi.display_control.*

Change-Id: I56ca004a884f459958287a96ff342c51a0962075

4 years agodEQP-VK.graphicsfuzz.discard-in-loop
Alastair Donaldson [Fri, 1 Nov 2019 11:26:48 +0000 (11:26 +0000)]
dEQP-VK.graphicsfuzz.discard-in-loop

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.discard-in-loop

Change-Id: I7ff8a88209bba73932f86fbf397b721e994c4c18

4 years agoWhitelist Vulkan CTS 1.1.6.3
Alexander Galazin [Thu, 5 Dec 2019 10:48:22 +0000 (11:48 +0100)]
Whitelist Vulkan CTS 1.1.6.3

Affects: dEQP-VK.api.driver_properties.properties

Components: Vulkan

Change-Id: Ib46d2ea03898930641539bd0ad1cf657c2994aa4

4 years agoMerge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Alexander Galazin [Thu, 5 Dec 2019 17:14:19 +0000 (18:14 +0100)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev

Change-Id: I09306fa49d83c7421e370054676427ef0dad1d24

4 years agouvec2 tests for VK_KHR_buffer_device_address
Jeff Bolz [Tue, 24 Sep 2019 22:01:10 +0000 (17:01 -0500)]
uvec2 tests for VK_KHR_buffer_device_address

Add variants of the 'convert' tests that convert to and from uvec2
rather than uint64_t.

Components: Vulkan
VK-GL-CTS Issue: 2018

Affects: dEQP-VK.binding_model.buffer_device_address.*
Change-Id: I9e1a2f031e295b9200faff571aae2fc5cbb9005c
(cherry picked from commit bcc3bf2dee4bcd8505c1b0c16ee05cafad185749)

4 years agoTests for VK_KHR_buffer_device_address
Jeff Bolz [Tue, 9 Jul 2019 04:09:44 +0000 (23:09 -0500)]
Tests for VK_KHR_buffer_device_address

Components: Vulkan
Affects: dEQP-VK.binding_model.buffer_device_address*
Affects: dEQP-VK.compute.cooperative_matrix*phys*
Affects: dEQP-VK.memory_model.*phys*
Affects: dEQP-VK.ssbo.*phys*
Affects: dEQP-VK.spirv_assembly.*phys*
Change-Id: I045b5832e9857f6e826957e204237a32e0bcbce4
(cherry picked from commit 86db0cf343430c2b434f9313c6c4ef5188d9bc23)

4 years agoBump timeout for the basic fence tests
Ben Clayton [Wed, 4 Dec 2019 17:13:41 +0000 (17:13 +0000)]
Bump timeout for the basic fence tests

10ms for the LONG_FENCE_WAIT could cause spurious test failures for CPU-based
Vulkan implementations when the CPU is under heavy load.
This is now bumped to a second, but assuming the test passes, this should never
block for the entire second.

Affects: dEQP-VK.synchronization.basic.fence.*

Components: Vulkan
Change-Id: Ice07a1697b57e789b9f57f4a5da663c83a0c132a

4 years agoTemporarily remove lines_wide tests
Alexander Galazin [Thu, 5 Dec 2019 16:22:40 +0000 (17:22 +0100)]
Temporarily remove lines_wide tests

Components: Vulkan

Affects:
dEQP-VK.rasterization.primitives.no_stipple.smooth_lines_wide
dEQP-VK.rasterization.primitives_multisample_2_bit.no_stipple.smooth_lines_wide
dEQP-VK.rasterization.primitives_multisample_4_bit.no_stipple.smooth_lines_wide
dEQP-VK.rasterization.primitives_multisample_8_bit.no_stipple.rectangular_line_strip_wide
dEQP-VK.rasterization.primitives_multisample_8_bit.no_stipple.smooth_lines_wide
dEQP-VK.rasterization.primitives_multisample_16_bit.no_stipple.smooth_lines_wide

Change-Id: Id74c00f56519d03fb300a4a06bc20f8f0365bd3e

4 years agodEQP-VK.graphicsfuzz.modf-gl-color
Paul Thomson [Mon, 9 Sep 2019 14:20:33 +0000 (15:20 +0100)]
dEQP-VK.graphicsfuzz.modf-gl-color

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.modf-gl-color

Change-Id: I8394577742339f2c02a6c1e2d1b7a7093542c68e

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master
Alexander Galazin [Thu, 5 Dec 2019 11:19:21 +0000 (12:19 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master

Change-Id: I551ad86d1ae9ea8c9ff8fbd04402ee9c7c0e5a89

4 years agoMerge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-next-dev
Alexander Galazin [Thu, 5 Dec 2019 10:36:41 +0000 (11:36 +0100)]
Merge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-next-dev

Change-Id: I682747bb0bea6ceec1604222f26531996bc3f113

4 years agoFix RGB9E5 encode
Graeme Leese [Thu, 5 Dec 2019 10:19:01 +0000 (10:19 +0000)]
Fix RGB9E5 encode

The overflow correction was broken and resulted in encoded values being
2x too large.

Components: Framework
VK-GL-CTS issue: 2132
Affects: dEQP-VK.*e5*

Change-Id: Ibcab4c889b044c8668aae3c7a1288b8cda1ff0e6

4 years agoRemove todo in vktYCbCrFormatTests
Samuel Iglesias Gonsálvez [Mon, 2 Dec 2019 11:11:48 +0000 (12:11 +0100)]
Remove todo in vktYCbCrFormatTests

VK_IMAGE_TILING_LINEAR and all shader stages are already tested.

Components: Vulkan
VK-GL-CTS issue: 1065

Change-Id: Ie23f53bf8e108799575b12c49149399d89bdde61

4 years agoRemove memory alias todo in YCbCr tests
Samuel Iglesias Gonsálvez [Mon, 2 Dec 2019 11:06:56 +0000 (12:06 +0100)]
Remove memory alias todo in YCbCr tests

There are already tests implemented to test memory alias.

Components: Vulkan
VK-GL-CTS issue: 1064

Change-Id: I4ceee106fabb9945b9a77a8eedd46b6c07f9afb9

4 years agodEQP-VK.graphicsfuzz.discard-in-loop-in-function
Alastair Donaldson [Fri, 1 Nov 2019 11:43:40 +0000 (11:43 +0000)]
dEQP-VK.graphicsfuzz.discard-in-loop-in-function

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.discard-in-loop-in-function

Change-Id: Ic486aa7665e01ba71d12f35dad66a668cb22554b

4 years agoGenerate a non-zero exit code on test failure
Piers Daniell [Mon, 21 Oct 2019 22:47:25 +0000 (16:47 -0600)]
Generate a non-zero exit code on test failure

If there are any failed tests, or the test run was not
compelte, the process will now generate EXIT_FAILURE (1)
instead of EXIT_SUCCESS (0).

Affects:

cts-runner

Components: Framework

VK-GL-CTS issue: 1982

Change-Id: I50fb7d51c095a09f53476b5ba56b72835337f339

4 years agoFix uninitialized index array
Courtney Goeltzenleuchter [Thu, 21 Nov 2019 17:07:41 +0000 (10:07 -0700)]
Fix uninitialized index array

The test is doing a glDrawRangeElements using uninitialized data for
the element array. ANGLE validates that the indices fall within the
specified range. Data needs to be initialized to ensure that happens.

The spec says:
It is an error for index values (other than the primitive restart index,
when primitive restart is enabled) to lie outside the range [start, end], but
implementations are not required to check for this. Such indices will cause
implementation-dependent behavior.

Either the test needs to allow for an error or initialize the data so
as to be valid for the call.

Affected Test:
    dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_range_elements

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

Change-Id: I51f8abb86f088b67990001454bb00d59313200c2

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6
Alexander Galazin [Thu, 5 Dec 2019 09:37:17 +0000 (10:37 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6

Change-Id: Ie910031c0296648e7ff34fb69cdbed0de5f24a1b

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Thu, 5 Dec 2019 09:35:38 +0000 (10:35 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: I379c93b2ba1b05af60dab773496d8fa81ebb7c33

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5
Alexander Galazin [Thu, 5 Dec 2019 08:38:48 +0000 (09:38 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5

Change-Id: I13e1238c4bfc3cb1366e25def3b081591a8101de

4 years agoDo the 'from UNDEFINED' layout transition only on the first pass
Slawomir Cygan [Fri, 29 Nov 2019 13:06:03 +0000 (14:06 +0100)]
Do the 'from UNDEFINED' layout transition only on the first pass

The test uses multiple submissions, each rendering to a part
of the same render target. Only the first submission should do
the transition 'from' UNDEFINED layout, otherwise each pass (submit)
would invalidate render target contents from previous submits.

Components: Vulkan

VK-GL-CTS Issue: 2131

Change-Id: Ic424e391e0348f6333b50d4c0f4f57d161ec95fb
Affects: dEQP-VK.descriptor_indexing.*

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Thu, 5 Dec 2019 07:47:58 +0000 (08:47 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: I4d9bef08ce50fbba4d6a61cbba1e3cdb28051543

4 years agoAdd two more formats with proper threshold values.
Yanjun Zhang [Sat, 16 Nov 2019 05:54:57 +0000 (21:54 -0800)]
Add two more formats with proper threshold values.

Need to add two more formats with proper threshold values in
vkApiCopiesAndBlittingTests.cpp: getFormatThreshold() to make
CTS pass on some VSI mobile GPUs.

Affects:
dEQP-VK.api.copy_and_blit.core.blit_image.simple_tests.*
dEQP-VK.api.copy_and_blit.core.blit_image.all_formats.*
dEQP-VK.api.copy_and_blit.dedicated_allocation.blit_image.*

Components: Vulkan

VK-GL-CTS issue: 2112

Change-Id: Ia3a314fd825ed13c44e49720fffffa2dff8f26af

4 years agoCreate tests for VK_EXT_astc_decode_mode
Piotr Byszewski [Wed, 30 Oct 2019 16:04:22 +0000 (17:04 +0100)]
Create tests for VK_EXT_astc_decode_mode

VK-GL-CTS issue: 1672

Components: Vulkan

Affects:
dEQP-VK.image.astc_decode_mode.*

Change-Id: Ib76e7cca25a82e8712ea2fd4028f8b1d6db3f8c2

4 years agoMerge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Alexander Galazin [Wed, 4 Dec 2019 09:42:50 +0000 (10:42 +0100)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev

Change-Id: I3696dd5668797086ee86d5c872bc2fb92c9366e9

4 years agoMerge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-next-dev
Alexander Galazin [Wed, 4 Dec 2019 08:00:31 +0000 (09:00 +0100)]
Merge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-next-dev

Change-Id: Ibddbc03494b4a0f392003b4c96630cdbf4314bcc

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master
Alexander Galazin [Tue, 3 Dec 2019 20:42:54 +0000 (21:42 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master

Change-Id: I29f005101057e815c4ba8e6cd1fb1115e01a54ad

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Tue, 3 Dec 2019 20:19:18 +0000 (21:19 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: If4306c39b07180416c2b5187b26ed72ba994b892

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6
Alexander Galazin [Tue, 3 Dec 2019 18:46:18 +0000 (19:46 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6

Change-Id: I0845a703755ac572d54f56394a04a9a4ace2fdce

4 years agoExtend rasterization testing, modify verification
Mike Byrne [Mon, 13 May 2019 14:15:02 +0000 (15:15 +0100)]
Extend rasterization testing, modify verification

dEQP-VK.rasterization.primitives.lines tests are extended to add tests
drawing vertical and horizontal lines.

Extend dEQP-VK.rasterization.primitives.lines and
dEQP-VK.rasterization.primitives_multisample_n_bit.lines to test at 258
resolution (a non power of two resolution).

The strict line verification coverage is modified to allow checking of
vertical and horizontal lines. Previously pixels in vertical or hori-
zontal lines were marked as partially covered and hence the test did
not detect whether the lines were rendered correctly or not.

Affects: dEQP-VK.rasterization.primitives*

Components: Vulkan

VK-GL-CTS Issue: 2062

Change-Id: Ifb76a44ba1ebdc97353bbd1a4b2552e415f2723d
(cherry picked from commit d297d9af7e55da0b0377bec4b9c1eb9d7209a40b)

4 years agoExtend rasterization testing, modify verification
Mike Byrne [Mon, 13 May 2019 14:15:02 +0000 (15:15 +0100)]
Extend rasterization testing, modify verification

dEQP-VK.rasterization.primitives.lines tests are extended to add tests
drawing vertical and horizontal lines.

Extend dEQP-VK.rasterization.primitives.lines and
dEQP-VK.rasterization.primitives_multisample_n_bit.lines to test at 258
resolution (a non power of two resolution).

The strict line verification coverage is modified to allow checking of
vertical and horizontal lines. Previously pixels in vertical or hori-
zontal lines were marked as partially covered and hence the test did
not detect whether the lines were rendered correctly or not.

Affects: dEQP-VK.rasterization.primitives*

Components: Vulkan

VK-GL-CTS Issue: 2062

Change-Id: Ifb76a44ba1ebdc97353bbd1a4b2552e415f2723d

4 years agodEQP-VK.graphicsfuzz.struct-and-unreachable-infinite-loop
Alastair Donaldson [Sun, 3 Nov 2019 23:15:05 +0000 (23:15 +0000)]
dEQP-VK.graphicsfuzz.struct-and-unreachable-infinite-loop

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.struct-and-unreachable-infinite-loop

Change-Id: I65b528b4f4739dced9752d79a440884373aafe7e

4 years agodEQP-VK.graphicsfuzz.transpose-rectangular-matrix
Alastair Donaldson [Sun, 3 Nov 2019 23:16:55 +0000 (23:16 +0000)]
dEQP-VK.graphicsfuzz.transpose-rectangular-matrix

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.transpose-rectangular-matrix

Change-Id: Ibbef1909c846e35048fa8b9d3da62bddb91e05f4

4 years agodEQP-VK.graphicsfuzz.unreachable-switch-case-with-discards
Alastair Donaldson [Thu, 31 Oct 2019 11:42:55 +0000 (11:42 +0000)]
dEQP-VK.graphicsfuzz.unreachable-switch-case-with-discards

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.unreachable-switch-case-with-discards

Change-Id: Ic0bdb602fbcebd460072ca88acb3a8b4b4641bf1

4 years agoCorrect link dependency for glc subgroups library
Graeme Leese [Tue, 26 Nov 2019 10:21:20 +0000 (10:21 +0000)]
Correct link dependency for glc subgroups library

Because the 'subgroups' library depends on helper functions in the
'gl-common' library this needs to be added to the link command even
though it is its parent.

Components: OpenGL

Change-Id: I47f9c2c6491d241adcb241822225bf16273009cc

4 years agoFix amber index parser for archive dir
Graeme Leese [Wed, 27 Nov 2019 15:48:19 +0000 (15:48 +0000)]
Fix amber index parser for archive dir

The new amber index file parser wasn't taking account of the archive-dir
option.

Components: Vulkan
Affects: dEQP-VK.graphicsfuzz.*
         dEQP-VK.amber-example.*

Change-Id: Ib955adbdbb979f9910c6ad82f3ca7288c52ef91a

4 years agoFix a couple of typos with separate_layout clearing tests
Piers Daniell [Wed, 27 Nov 2019 22:58:45 +0000 (15:58 -0700)]
Fix a couple of typos with separate_layout clearing tests

The VkAttachmentReferenceStencilLayoutKHR structure was using the
wrong sType and VkAttachmentDescriptionStencilLayoutKHR was
using the wrong stencil-only initial layout.

Affects:

dEQP-VK.api.image_clearing.*.clear_depth_stencil_image.*

Components: Vulkan

VK-GL-CTS issue: 2130

Change-Id: I33141f69d03a788faf1618ab0f75f37dbbe62950

4 years agoCheck memory model support in volatile atomic tests
Samuel Iglesias Gonsálvez [Wed, 27 Nov 2019 10:06:54 +0000 (11:06 +0100)]
Check memory model support in volatile atomic tests

Volatile atomic tests were not checking vulkan memory model support.

Components: Vulkan
VK-GL-CTS issue: 2125

Affected tests:

   dEQP-VK.spirv_assembly.*atomic*

Change-Id: I67557361e2df9fc057ab38a1104f66512a532cf0
(cherry picked from commit 5ded1abda3169e29a6116b6e6b53ce0b9a6d5ab2)

4 years agoCheck memory model support in volatile atomic tests
Samuel Iglesias Gonsálvez [Wed, 27 Nov 2019 10:06:54 +0000 (11:06 +0100)]
Check memory model support in volatile atomic tests

Volatile atomic tests were not checking vulkan memory model support.

Components: Vulkan
VK-GL-CTS issue: 2125

Affected tests:

   dEQP-VK.spirv_assembly.*atomic*

Change-Id: I67557361e2df9fc057ab38a1104f66512a532cf0
(cherry picked from commit 5ded1abda3169e29a6116b6e6b53ce0b9a6d5ab2)

4 years agoCheck memory model support in volatile atomic tests
Samuel Iglesias Gonsálvez [Wed, 27 Nov 2019 10:06:54 +0000 (11:06 +0100)]
Check memory model support in volatile atomic tests

Volatile atomic tests were not checking vulkan memory model support.

Components: Vulkan
VK-GL-CTS issue: 2125

Affected tests:

   dEQP-VK.spirv_assembly.*atomic*

Change-Id: I67557361e2df9fc057ab38a1104f66512a532cf0

4 years agoFix SPIR-V assembly tests with bad cfgs
Alan Baker [Mon, 25 Nov 2019 18:03:36 +0000 (13:03 -0500)]
Fix SPIR-V assembly tests with bad cfgs

* Update SPIR-V assembly tests to not declare a continue target as a
merge block

Component: Vulkan

VK-GL-CTS Issue: 2122

Affects:
dEQP-VK.spirv_assembly.instruction.graphics.switch_block_order.out_of_order*
dEQP-VK.spirv_assembly.instruction.graphics.opphi.out_of_order*
dEQP-VK.spirv_assembly.instruction.graphics.loop.multi_block_loop_construct*
dEQP-VK.spirv_assembly.instruction.graphics.loop.multi_block_continue_construct*
dEQP-VK.spirv_assembly.instruction.graphics.loop.continue*
dEQP-VK.spirv_assembly.instruction.graphics.loop.break*
dEQP-VK.spirv_assembly.instruction.graphics.loop.return*

Change-Id: I370331414aae27b53ed79b448b72581e2352c3d7

4 years agoFix merge problem with ballot_broadcast tests
Graeme Leese [Wed, 20 Nov 2019 10:48:45 +0000 (10:48 +0000)]
Fix merge problem with ballot_broadcast tests

Components: Vulkan
VK-GL-CTS issue: 2115
Affects: dEQP-VK.subgroups.ballot_broadcast.*nonconst_*

Change-Id: I85a95cd8a09fa59ba79230c2a58eac431391da51

4 years agoFix device group rendering CTS crash
Ricardo Garcia [Wed, 25 Sep 2019 09:51:47 +0000 (11:51 +0200)]
Fix device group rendering CTS crash

dEQP-VK.device_group.* tests use --deqp-vk-device-group-id as the group
id to use and --deqp-vk-device-id as the index for the physical device
to use from that group when creating the logical device.

--deqp-vk-device-id is checked by the program, in general, to be valid
regarding the total number of physical devices in the system, but these
tests were not verifying it to be valid regarding the selected group.

In a machine with two devices in two separate groups (one device per
group), the program would accept the following options as valid, only to
segfault later:

  $ deqp-vk --deqp-vk-device-group-id=1 --deqp-vk-device-id=2 ...

  or

  $ deqp-vk --deqp-vk-device-group-id=2 --deqp-vk-device-id=2 ...

This commit checks the provided device id is valid for the selected
group.

Affected tests:
dEQP-VK.device_group.*

Components: Vulkan
VK-GL-CTS issue: 1553

Change-Id: Ied8f2fb73384303b793258cbaeaa7fad503a03c1

4 years agoAdd new tests for quad broadcast with uniform IDs
Graeme Leese [Fri, 6 Sep 2019 15:35:50 +0000 (16:35 +0100)]
Add new tests for quad broadcast with uniform IDs

Add tests for quad broadcasts with non-uniform lane IDs. These are
exactly analogous to the same tests for subgroupBroadcast.

Components: Vulkan
VK-GL-CTS issue: 1978
New tests: dEQP-VK.subgroups.quad.*broadcast_nonconst_*

Change-Id: I213a252d8ce8e02c4578c774a8c2c8c54216d0a5

4 years agoAdd test checking depth/stencil resolve properties
Ricardo Garcia [Thu, 14 Nov 2019 09:47:45 +0000 (10:47 +0100)]
Add test checking depth/stencil resolve properties

Check VkPhysicalDeviceDepthStencilResolvePropertiesKHR values according
to the spec.

New tests:
dEQP-VK.renderpass2.depth_stencil_resolve.misc.properties

Components: Vulkan
VK-GL-CTS issue: 2089

Change-Id: I58bbf7a2d492a459cac35a213d10c144843bfd05

4 years agoTest stencil-only images in unused attachment clear tests
Ricardo Garcia [Thu, 14 Nov 2019 13:09:17 +0000 (14:09 +0100)]
Test stencil-only images in unused attachment clear tests

Affected and new tests:
dEQP-VK.renderpass*.unused_clear_attachments.*

Components: Vulkan
VK-GL-CTS issue: 2106

Change-Id: I2dfa2aafe1afe8c3a90a652c3c7f8c15aea48657

4 years agoTest VK_ATTACHMENT_UNUSED with depth/stencil resolve
Ricardo Garcia [Fri, 15 Nov 2019 12:53:14 +0000 (13:53 +0100)]
Test VK_ATTACHMENT_UNUSED with depth/stencil resolve

This commit adds new tests to use VK_ATTACHMENT_UNUSED as the attachment
number for the depth/stencil resolve attachment and later verifies the
image has not been touched.

New tests:
dEQP-VK.renderpass2.depth_stencil_resolve.*unused_resolve*

Components: Vulkan
VK-GL-CTS issue: 2107

Change-Id: Ie00cf61c813b0993c8313c62f8f67a53505602ca

4 years agoAdd coverage for stencil image sampling
Pawel Ksiezopolski [Tue, 19 Nov 2019 14:36:15 +0000 (15:36 +0100)]
Add coverage for stencil image sampling

Add tests for sampling using nearest filter from following
stencil image formats: VK_FORMAT_S8_UINT, VK_FORMAT_D24_UNORM_S8_UINT,
VK_FORMAT_D32_SFLOAT_S8_UINT.

New tests:
dEQP-VK.texture.filtering.2d.formats.s8_uint.nearest
dEQP-VK.texture.filtering.2d.formats.d24_unorm_s8_uint_stencil.nearest
dEQP-VK.texture.filtering.2d.formats.d32_sfloat_s8_uint_stencil.nearest
dEQP-VK.texture.filtering.unnormal.formats.s8_uint.nearest
dEQP-VK.texture.filtering.unnormal.formats.d24_unorm_s8_uint_stencil.nearest
dEQP-VK.texture.filtering.unnormal.formats.d32_sfloat_s8_uint_stencil.nearest
dEQP-VK.texture.filtering.cube.formats.s8_uint.nearest
dEQP-VK.texture.filtering.cube.formats.d24_unorm_s8_uint_stencil.nearest
dEQP-VK.texture.filtering.cube.formats.d32_sfloat_s8_uint_stencil.nearest
dEQP-VK.texture.filtering.2d_array.formats.s8_uint.s8_uint_nearest
dEQP-VK.texture.filtering.2d_array.formats.d24_unorm_s8_uint_stencil.d24_unorm_s8_uint_stencil_nearest
dEQP-VK.texture.filtering.2d_array.formats.d32_sfloat_s8_uint_stencil.d32_sfloat_s8_uint_stencil_nearest
dEQP-VK.texture.filtering.3d.formats.s8_uint.s8_uint_nearest
dEQP-VK.texture.filtering.3d.formats.d24_unorm_s8_uint_stencil.d24_unorm_s8_uint_stencil_nearest
dEQP-VK.texture.filtering.3d.formats.d32_sfloat_s8_uint_stencil.d32_sfloat_s8_uint_stencil_nearest

Components: Vulkan

VK-GL-CTS issue: 2048

Change-Id: I43f28e6ec4eee5c04e444c9cded1c0a15b3d5e4c