platform/upstream/VK-GL-CTS.git
4 years agoMerge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master
Alexander Galazin [Sun, 5 Jan 2020 10:04:42 +0000 (13:04 +0300)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master

Change-Id: Ic25e82563986f46ea4a8b9356d0579f299740420

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6
Alexander Galazin [Sun, 5 Jan 2020 08:33:44 +0000 (11:33 +0300)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6

Change-Id: Id7608050ab3f1c5ce3d26a1480af0de7d90d75ff

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5
Alexander Galazin [Sun, 5 Jan 2020 07:48:47 +0000 (10:48 +0300)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5

Change-Id: I51213fc50189215a04c9206a8b805962052235cb

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Sun, 5 Jan 2020 06:36:56 +0000 (09:36 +0300)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: I2a051b8a36b997c3f904ddd78657de8c1719a53b

4 years agoAllows NaNs in an assert
Matthew Netsch [Fri, 20 Dec 2019 20:46:11 +0000 (15:46 -0500)]
Allows NaNs in an assert

Components: Vulkan
VK-GL-CTS Issue: 2103

Affects:
dEQP-VK.spirv_assembly.instruction.compute.float16.arithmetic_*

Change-Id: I5848660d120b5a4a07df589a74f47b8ca30befb5

4 years agoAdds subgroup ops stage check
Matthew Netsch [Fri, 20 Dec 2019 20:43:04 +0000 (15:43 -0500)]
Adds subgroup ops stage check

Components: Vulkan
VK-GL-CTS Issue: 2084

Affects:
dEQP-VK.memory_model.message_passing.*.subgroup.*
dEQP-VK.memory_model.write_after_read.ext.*.subgroup.*

Change-Id: Ibb820b4d3de1782bc844f3eb32b6e752745e9976

4 years agoFix some bugs for EGL cases
Jian Li [Mon, 9 Dec 2019 05:24:05 +0000 (13:24 +0800)]
Fix some bugs for EGL cases

eglTerminate() wasn't called in proper sequence.
Resource wasn't released properly for not supported cases.

Affects:

dEQP-EGL.functional.image.*
dEQP-EGL.functional.resize.*
dEQP-EGL.functional.buffer_age.*
dEQP-EGL.functional.partial_update.*

Components: AOSP

VK-GL-CTS issue: 2153

Change-Id: Ic0a82aa176b9a8344f757916d61ea8f64c58eca5

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

Change-Id: I30fda495247058cbc41eff78d875a633748f28ff

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 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.1.6 into vk-gl-cts/master
Alexander Galazin [Fri, 20 Dec 2019 14:59:20 +0000 (15:59 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master

Change-Id: I35a136bf885def6a7aa1222b4c54433f2d8723fc

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 agoAdded DMA buffer external memory cases to cross instance sharing tests
Samuel Iglesias Gonsálvez [Thu, 28 Nov 2019 15:19:46 +0000 (16:19 +0100)]
Added DMA buffer external memory cases to cross instance sharing tests

Components: Vulkan
VK-GL-CTS issue: 1861

Added tests:

   dEQP-VK.synchronization.cross_instance.*_dma_buf

Change-Id: I50dbf8af816e45ee122a5e15390d619daf19335a

4 years agoAdd SPIR-V Invariant decoration tests
Pawel Ksiezopolski [Tue, 15 Oct 2019 13:28:14 +0000 (15:28 +0200)]
Add SPIR-V Invariant decoration tests

Migration of the OpenGL Invariant decoration tests to Vulkan.
Modified structs and classes from vktDrawUtil.hpp so that they
may perform more than one rendering at once.

New tests:
dEQP-VK.glsl.invariance.*

Affects:
dEQP-VK.clipping.*
dEQP-VK.glsl.builtin_var.*
dEQP-VK.ycbcr.query.*

Components: Vulkan Framework

VK-GL-CTS issue: 2007

Change-Id: I0774f50c5a818b9ce4d012e4a1be5fdc1cbabb63

4 years agoldexp tests do not test corner cases correctly
Graeme Leese [Thu, 3 Oct 2019 13:29:19 +0000 (14:29 +0100)]
ldexp tests do not test corner cases correctly

The ldexp tests never correctly implemented the resolution of bugzilla
11180, which specified that exp == 128 should give correct results.

Components: Vulkan
Affects: dEQP-VK.glsl.builtin.precision*.ldexp.*

Change-Id: Ic532df4b570f87602edf0ff8f302c04e7a35f174

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 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

4 years agoFix initializaztion
Alexander Galazin [Wed, 18 Dec 2019 12:00:58 +0000 (13:00 +0100)]
Fix initializaztion

Components: Vulkan

Change-Id: I291da7875b6604829cd5c6af789a3a9d67a4236b

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.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 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 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 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.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/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.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

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

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 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 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

4 years agoAdd feature checks to subgroups tests
Matthew Netsch [Fri, 15 Nov 2019 17:29:30 +0000 (12:29 -0500)]
Add feature checks to subgroups tests

Components: Vulkan
VK-GL-CTS Issue: 2082

Affects:
dEQP-VK.subgroups.*

Change-Id: Ide9aeaf106dcf1efbc2cf90cd6b46a61586c4f72

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 agoFix SFR swapchain test's implicit layout transitions
Piers Daniell [Wed, 13 Nov 2019 21:01:10 +0000 (14:01 -0700)]
Fix SFR swapchain test's implicit layout transitions

The Vulkan spec says that layout transitions done on peer bound
image memory requires the implementation to support
VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT and
VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT. The test never checked
for this capability and did implicit render pass layout
transitions anyway.

This CL updates the test to use an explicit layout transitions
on local aliases of the image when the implementation doesn't
support doing peer-to-peer transfer.

This CL also fixes a bug in the SFR rects definition in
VkBindImageMemoryDeviceGroupInfo to specify the correct number
of rectangles.

Affects:

dEQP-VK.wsi.win32.swapchain.render.*
dEQP-VK.wsi.win32.swapchain.modify.*

Components: Vulkan

VK-GL-CTS issue: 2094

Change-Id: I31b7099a6d5c4f11be83d6d14a5c02cca6408441

4 years agoApply the same relaxed precision fix for interface_blocks.* to basic_type.*
John Corbally [Thu, 7 Nov 2019 16:01:18 +0000 (16:01 +0000)]
Apply the same relaxed precision fix for interface_blocks.* to basic_type.*

Fix relaxed precision and no perspective dEQP tests

In the RelaxedPrecision case, change epsilon to 2e-3 for a 16-bit float.
In the NoPerspective case, change epsilon to 3e-7 for a 32-bit float.

The epsilon is now relative to the correct value.

Affects:
dEQP-VK.spirv_assembly.instruction.graphics.cross_stage.basic_type.*

Components: Vulkan

VK-GL-CTS issue: 1818

Change-Id: I615e65f2f6e4287dc41ff981f18972cf14bcb374

4 years agodEQP-VK.graphicsfuzz.discards-in-control-flow
Alastair Donaldson [Thu, 19 Sep 2019 11:29:42 +0000 (12:29 +0100)]
dEQP-VK.graphicsfuzz.discards-in-control-flow

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.discards-in-control-flow

Change-Id: I219e0660fc74ba972a5e949cb7cb209cedbfca92

4 years agoMerge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/master
Alexander Galazin [Fri, 22 Nov 2019 16:43:18 +0000 (17:43 +0100)]
Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/master

Change-Id: I7c7197ea5881a8bdf500d19b834270807ed30ce9

4 years agoAdd VK_AMD_buffer_marker tests
Maciej Jesionowski [Wed, 16 Oct 2019 11:15:01 +0000 (13:15 +0200)]
Add VK_AMD_buffer_marker tests

This extension adds a new operation to execute pipelined writes
of small marker values into a VkBuffer object.

Components: Vulkan
VK-GL-CTS issue: 2104

New tests:
dEQP-VK.api.buffer_marker.*

Change-Id: I190b0b81564fe58707b6eae40f4768482b01699f

4 years agoMerge vk-gl-cts/opengl-es-cts-3.2.5 into vk-gl-cts/opengl-es-cts-3.2.6
Alexander Galazin [Fri, 22 Nov 2019 13:41:59 +0000 (14:41 +0100)]
Merge vk-gl-cts/opengl-es-cts-3.2.5 into vk-gl-cts/opengl-es-cts-3.2.6

Change-Id: I069be78b5ad4a7299152d342c5cbfee6b7fc84f1

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master
Alexander Galazin [Fri, 22 Nov 2019 12:57:57 +0000 (13:57 +0100)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/master

Change-Id: Ia98b822ba5c6e36b25d80836911e0e14c8db9929

4 years agoRemove more tests due to GLSL ES 1.0/3.x differences
Alexander Galazin [Fri, 22 Nov 2019 12:49:30 +0000 (13:49 +0100)]
Remove more tests due to GLSL ES 1.0/3.x differences

Components: OpenGL

VK-GL-CTS issue: 2116

Removed tests:
dEQP-GLES2.functional.shaders.functions.invalid.attribute_argument_vertex
dEQP-GLES2.functional.shaders.functions.invalid.varying_argument_fragment
dEQP-GLES2.functional.shaders.functions.invalid.varying_argument_vertex

Change-Id: I628242739fade1310e36065da785b12be0912284

4 years agoMake asin and acos derived functions
Graeme Leese [Wed, 19 Jun 2019 17:21:34 +0000 (18:21 +0100)]
Make asin and acos derived functions

The spec says that the precisions of these functions are derived from
formulae, rather than the requirements that were here before. The atan
code is simplified but there should be no functional change.

Components: Vulkan
VK-GL-CTS issue: 1975
Affects: dEQP-VK.glsl.builtin.precision.asin.*
         dEQP-VK.glsl.builtin.precision.acos.*
         dEQP-VK.glsl.builtin.precision.atan.*

Change-Id: I2f8fbed340b409e07526b7fc806f21bbea7ad607