platform/upstream/VK-GL-CTS.git
4 years agoChange vertex buffer format to VK_FORMAT_R8G8B8A8_UNORM
Marcin Kańtoch [Wed, 11 Sep 2019 14:23:07 +0000 (16:23 +0200)]
Change vertex buffer format to VK_FORMAT_R8G8B8A8_UNORM

Change the vertex buffer format to VK_FORMAT_R8G8B8A8_UNORM
in spirv1p4.entrypoint* tests to make the tests pass, while
waiting on a fix in Amber.

Affects:
dEQP-VK.spirv_assembly.instruction.spirv1p4.entrypoint*

Components: Vulkan

VK-GL-CTS issue: 1992

Change-Id: Icb97b7328c2e1a61c1e1c20d7dda0449738619e1

4 years agoValidate Vulkan 1.2 limits
Boris Zanin [Wed, 4 Sep 2019 11:47:37 +0000 (13:47 +0200)]
Validate Vulkan 1.2 limits

Validate limits against Limit Requirements chapter.

Add test:
 * dEQP-VK.api.info.vulkan1p2.limits_validation

Components: vulkan

VK-GL-CTS issue: 1924

Change-Id: Ibe54ef2c6ced9864731c358172358d871d823312

4 years agoImplement getPhysicalDeviceVulkan1xProperties
Boris Zanin [Wed, 11 Sep 2019 13:38:53 +0000 (15:38 +0200)]
Implement getPhysicalDeviceVulkan1xProperties

Addtwo helper API functions to query properties:
 * getPhysicalDeviceVulkan11Properties
 * getPhysicalDeviceVulkan12Properties

Components: framework

VK-GL-CTS issue: 1924

Change-Id: Icf6e178da2ec7acc21752867348a0885feb78ecf

4 years agoMake Context class to query extensions properties
Boris Zanin [Fri, 6 Sep 2019 12:42:14 +0000 (14:42 +0200)]
Make Context class to query extensions properties

Add functionality into Context class to query extension's
properties from default device.

Components: framework

VK-GL-CTS issue: 1924

Change-Id: If456123fa9214fdf0c8360bf645531b2a00fd9b2

4 years agoDon't require 8bit storage features for SPIR-V tests
Graeme Leese [Tue, 10 Sep 2019 09:15:20 +0000 (10:15 +0100)]
Don't require 8bit storage features for SPIR-V tests

Return NotSupported if the features are not supported instead. (It's
checked elsewhere that an implementation supports the mandatory feature
set).

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

Change-Id: I6f87a996b99f55902b1c5afa502b1cdbbd73197a

4 years agoCheck Vulkan 1.2 core features in 1.2 context
Piers Daniell [Mon, 9 Sep 2019 18:41:19 +0000 (12:41 -0600)]
Check Vulkan 1.2 core features in 1.2 context

Affects:
dEQP-VK.draw.shader_layer.*
dEQP-VK.draw.shader_viewport_index.*
dEQP-VK.pipeline.sampler.view_type.*.format.*
dEQP-VK.pipeline.sampler.*.address_mode.*

VK-GL-CTS issue: 1986

Components: Vulkan

Change-Id: Ie02326cb6891a206d49297b2c49e5f5d7e7c0198

4 years agoFix undersized buffer use in extend operands tests
Reed Koser [Thu, 5 Sep 2019 20:48:11 +0000 (13:48 -0700)]
Fix undersized buffer use in extend operands tests

Prior to this patch, the dEQP.image.extend_operands_spirv1p4.* tests
used the size of the input image as the buffer size. Since the tests
reuse the buffer to read back the output image (which is potentially
much larger, due to the unconditional use of R32G32B32A32_*INT formats),
this resulted in corruption of device memory.

Affects: dEQP-VK.image.extend_operands_spirv1p4.*

Components: Vulkan

VK-GL-CTS issue: 1980

Change-Id: I8d07cd7d54cc305635b9674074a7eafa52bf6dfa

4 years agoImplement getPhysicalDeviceVulkan12Features
Alexander Galazin [Sun, 8 Sep 2019 11:08:03 +0000 (13:08 +0200)]
Implement getPhysicalDeviceVulkan12Features

The generated helper returns all-0s since
there is an assumed extension check.

Affects:
dEQP-VK.draw.indirect_draw.*
dEQP-VK.descriptor_indexing.*

Components: Vulkan

VK-GL-CTS issue: 1983

Change-Id: Iace6611d6261d2e80fe6d4dc118b5c8de55b84de

4 years agoTest consistency between VkPhysicalDeviceVulkanXXFeatures and extensions
Pawel Ksiezopolski [Wed, 4 Sep 2019 12:44:53 +0000 (14:44 +0200)]
Test consistency between VkPhysicalDeviceVulkanXXFeatures and extensions

Check if appropriate fields of the VkPhysicalDeviceVulkanXXFeatures are
set when corresponding extensions are present.

New tests:
dEQP-VK.api.info.vulkan1p2.feature_extensions_consistency
dEQP-VK.api.info.vulkan1p2.property_extensions_consistency

Components: Vulkan

VK-GL-CTS issue: 1977

Change-Id: Ib9b55811293a4bc35ae32707888af761b6e8f656

4 years agoVK_EXT_line_rasterization tests
Jeff Bolz [Wed, 22 May 2019 19:00:25 +0000 (14:00 -0500)]
VK_EXT_line_rasterization tests

Components: Vulkan

Affects: dEQP-VK.rasterization.*
Change-Id: I69a3be4c19005f5f944da57285687cf564473da4
(cherry picked from commit ad22b59722c8e19416cc9c9a9cc5cc377f7a848b)

4 years agoAccount for precision loss in unorm depth pipeline
Gary Sweet [Thu, 1 Aug 2019 11:50:40 +0000 (12:50 +0100)]
Account for precision loss in unorm depth pipeline

https://gerrit.khronos.org/#/c/4049/ introduced a regression
related to the use of depths other than 0.0 and 1.0 in the round-trip
to the depth buffer and back.

The test can now write 1.0/255.0 to gl_FragDepth and expects to see
exactly 1.0/255.0 when it is read back in the input attachment.
The unorm depth formats are only specified to be exact for the integer
values (0.0 and 1.0). We can differ by 1-bit after the round-trip.

This change adds an epsilon range check for the unorm depth tests
that resolve the issue.

Affected tests:
dEQP-VK.renderpass.dedicated_allocation.*
dEQP-VK.renderpass.suballocation.*
dEQP-VK.renderpass2.dedicated_allocation.*
dEQP-VK.renderpass2.suballocation.*

Components: Vulkan
VK_GL_CTS issue: 1908

Change-Id: Iaec3503595afd3409d2c21d8af72b469467d6673

4 years agoUpdate SPIR-V Tools
Alexander Galazin [Fri, 6 Sep 2019 18:22:19 +0000 (20:22 +0200)]
Update SPIR-V Tools

Components: Framework

Affects: dEQP-VK.*

Change-Id: I2b144d95efca4331bbb8bf0133983b523ff51a1a

4 years agoWhitelist Vulkan CTS 1.2.0.0
Alexander Galazin [Fri, 6 Sep 2019 12:25:45 +0000 (14:25 +0200)]
Whitelist Vulkan CTS 1.2.0.0

Affects: dEQP-VK.api.driver_properties.properties

Components: Vulkan

Change-Id: I6f3f4d2dd96d2c8540187cb55ffc888db3bb647e

4 years agoFunctions to initialize Vulkan structures
Boris Zanin [Mon, 2 Sep 2019 07:22:35 +0000 (09:22 +0200)]
Functions to initialize Vulkan structures

The commit adds three helper functions:
 * initStructureType
 * initStructureTypeConst
 * addToChainVulkanStructure

The functions designed to initialize Vulkan structures
during creation time.  The initStructureType designed
to initialize variables and initStructureTypeConst
designed to initialize constants.  Using pNext argument
it is useful to intialize chains of structures.

The functions do:
 * fill memory of the result structure with zeros
 * set sType field approprately to structure type
 * assign pNext field with passed value

The function addToChainVulkanStructure enables easily
chain Vulkan structures with pNext/sType fields.

Components: Framework

VK-GL-CTS issue: 1924

Change-Id: I228fb094e6c8df7b32028e2d01474d813c47ca01

4 years agoRemove input blocks from SPIR-V 1.4 compute shaders
Alan Baker [Tue, 3 Sep 2019 15:01:57 +0000 (11:01 -0400)]
Remove input blocks from SPIR-V 1.4 compute shaders

Split input blocks in compute shaders into flat variables.

Component: Vulkan

VK-GL-CTS Issue: 1967

Affects:
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrequal.ssbo_comparisons_equal
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrequal.wg_comparisons_equal
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrnotequal.ssbo_comparisons_not_equal
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrnotequal.wg_comparisons_not_equal
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrdiff.ssbo_comparisons_diff
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrdiff.wg_comparisons_diff

Change-Id: I228583843148e36a33d7f469cb90f628eb432c37

4 years agoFix API usage errors in geometry tests
Ilkka Saarelainen [Wed, 21 Aug 2019 11:41:07 +0000 (14:41 +0300)]
Fix API usage errors in geometry tests

Fixes validation errors in various geometry tests.

geometry.basic.output_* tests were potentially exceeding the
maxGeometryTotalOutputComponents limit because the gl_PerVertex was
implicitly declared and therefore contained gl_Position and gl_PointSize.
Now the gl_PerVertex is declared explicitly to contain only gl_Position.

Fixes flush/invalidate mapped memory range -validation errors by using the
flushAlloc/invalidateAlloc -framework functions.

Affects:
dEQP-VK.geometry.basic.output_*
dEQP-VK.geometry.instanced.*

Components: Vulkan

VK-GL-CTS issue: 1911

Change-Id: I8e4cfd5879ba8c61be3019578b8afbc76592d82e
(cherry picked from commit 06eddc62b934edb7672408252b03af1877dee01c)

4 years agoIntegrate SPIR-V 1.5 fixes
Alexander Galazin [Thu, 5 Sep 2019 10:06:38 +0000 (12:06 +0200)]
Integrate SPIR-V 1.5 fixes

Fixes validation errors that appeared with new 1.4 rules

Affects: dEQP-VK.spirv_assembly.instruction.*.spirv_version.*

Components: Vulkan

Change-Id: I9070357bd29092341229782f35bb0399532da1be

4 years agoUpdate support checks for descriptorIndexing/drawIndirectCount
Alexander Galazin [Wed, 4 Sep 2019 07:46:37 +0000 (09:46 +0200)]
Update support checks for descriptorIndexing/drawIndirectCount

Use core feature struct for checks in Vulkan 1.2 context and
extension feature struct for previous API versions.

Affects:
dEQP-VK.descriptor_indexing.*
dEQP-VK.binding_model.descriptorset_random*
dEQP-VK.draw.indirect_draw.*

Components: Vulkan

Change-Id: I07ca69a5d0e7c38523c2f06e8769fa38228e0b38

4 years agoAlias vkResetQueryPoolEXT to the core function
Alexander Galazin [Tue, 3 Sep 2019 19:23:08 +0000 (21:23 +0200)]
Alias vkResetQueryPoolEXT to the core function

Previously only KHR-suffixed functions were considered as
candidates for aliases. This changed in Vulkan 1.2 with promotion
of VK_EXT_host_query_reset to core.

This CL changes gen_framework.py to take into account
whether an extension was promoted to core and search for
aliases only among objects introduced by the extension.

This CL also adds VK_KHR_timeline_semaphore,
VK_KHR_spirv_1_4, and VK_EXT_separate_stencil_usage
to the list of promoted extensions.

Affects:
dEQP-VK.*.host_query_reset*
dEQP-VK.api.info.device.extensions

Components: Vulkan

VK-GL-CTS issue: 1976

Change-Id: I2e31e709f7c303b775e576e617820bd67d95d78d

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Thu, 5 Sep 2019 15:26:59 +0000 (17:26 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: I44b8c90e31d532d29e601ec4dc40f5d87fc8643c

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5
Alexander Galazin [Thu, 5 Sep 2019 15:18:55 +0000 (17:18 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5

Change-Id: I9127426326658bfa984eb90837e731d8a26139c1

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Thu, 5 Sep 2019 15:17:32 +0000 (17:17 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: Ia899f8486ce88f6fdb54cfb070a7026b815bb25b

4 years agoAvoid timeouts in dEQP-VK.api.device_init.create_instance_device_intentional_alloc_fail
Chris Forbes [Wed, 14 Aug 2019 02:46:32 +0000 (19:46 -0700)]
Avoid timeouts in dEQP-VK.api.device_init.create_instance_device_intentional_alloc_fail

Components: Vulkan
Affects: dEQP-VK.api.device_init.create_instance_device_intentional_alloc_fail
VK-GL-CTS Issue: 1919
Google bug: b/139391065

Change-Id: Id5f20ef22147431aef2eabb97f2c7ef5171ed2ae

4 years agoFix build when DEQP_HAVE_GLSLANG not defined
David Emett [Wed, 21 Aug 2019 18:48:38 +0000 (19:48 +0100)]
Fix build when DEQP_HAVE_GLSLANG not defined

Change-Id: I437a51e03c72b823ae3093fbce178f556b0e23c1
(cherry picked from commit db50943898abca5bf39122a62d329c864809f96e)

4 years agoFix issues in VK_KHR_buffer_device_address tests
John Anthony [Mon, 26 Aug 2019 17:02:53 +0000 (19:02 +0200)]
Fix issues in VK_KHR_buffer_device_address tests

Fixes various issues in buffer_device_address tests:
- Prefer KHR over EXT if both are available
- Check if extension is supported before checking features
- Use appropriate version of vkGetBufferDeviceAddress*
- dEQP-VK.binding_model.buffer_device_address.*convert.* requires shaderInt64

Affects:
- dEQP-VK.binding_model.buffer_device_address*
- dEQP-VK.compute.cooperative_matrix*phys*
- dEQP-VK.memory_model.*phys*
- dEQP-VK.ssbo.*phys*
- dEQP-VK.spirv_assembly.*phys*

Components: Vulkan

VK-GL-CTS Issue: 1957

Change-Id: I914d50104c08a6974e7db5902d1e88b91b2deb67

4 years agoFix check support for (Sign|Zero)Extend tests
Piotr Byszewski [Mon, 2 Sep 2019 10:59:03 +0000 (12:59 +0200)]
Fix check support for (Sign|Zero)Extend tests

Components: Vulkan

Affects:
dEQP-VK.image.extend_operands_spirv1p4.*

Change-Id: I5c546afcfdc533957fbb7d78a0a98f8845a56a1b

4 years agoUncoment SPV_ENV_VULKAN_1_2 case
Alexander Galazin [Thu, 5 Sep 2019 09:12:31 +0000 (11:12 +0200)]
Uncoment SPV_ENV_VULKAN_1_2 case

Components: Vulkan

Change-Id: Ie8305971f82c355266021a6487893ebf291a6103

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Wed, 4 Sep 2019 09:17:28 +0000 (11:17 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: If4c022edf815bc00ea6b8f64bb6aeac6ba44fbe6

4 years agoFixes binding_model tests check for shaderInt64
Matthew Netsch [Tue, 27 Aug 2019 19:30:31 +0000 (15:30 -0400)]
Fixes binding_model tests check for shaderInt64

Components: Vulkan
VK-GL-CTS Issue: 1956

Affects:
dEQP-VK.binding_model.buffer_device_address.*.convert.*

Change-Id: I36d71e75eb3767d2f94ef260436b8c036f0c4ea1

4 years agoCheck SPV_KHR_float_controls usage w/o OpExtension
Boris Zanin [Fri, 17 May 2019 09:46:12 +0000 (11:46 +0200)]
Check SPV_KHR_float_controls usage w/o OpExtension

Runs float controls test under Vulkan 1.2, that includes SPIR-V
with embedded float controls into core and thus does not require
SPV_KHR_float_controls extension in shader code.

Add tests:
 * dEQP-VK.spirv_assembly.instruction.compute.float_controls_extensionless.*

Components: Vulkan

VK-GL-CTS issue: 1707

Change-Id: I4da1183a59cce915b32b2e052235fd705342fb82
(cherry picked from commit 9d0c6a51fec7bfe1b9fd1178436dbf792c2e5015)

4 years agoUpdate SPIR-V tools and headers
Alexander Galazin [Tue, 3 Sep 2019 05:35:30 +0000 (07:35 +0200)]
Update SPIR-V tools and headers

Now with 1.5 support

Affects: dEQP-VK.*

Components: Vulkan, Framework

VK-GL-CTS issue: 1926

Change-Id: Ib45e3d917dd613d1615f7f9d5c5056959d48bfac

4 years agoTest enum with settings for separate controls
Piotr Byszewski [Mon, 10 Jun 2019 13:09:31 +0000 (15:09 +0200)]
Test enum with settings for separate controls

The original VK_KHR_shader_controls shipped with booleans named
"separateDenormSettings" and "separateRoundingModeSettings". In
recent specification update those boolean values were changed into
a tri-state enum. This change adjusts tests to that.

Components: Vulkan

VK-GL-CTS issue: 1791

Affects:
dEQP-VK.spirv_assembly.instruction.compute.float_controls.*
dEQP-VK.spirv_assembly.instruction.graphics.float_controls.*
dEQP-VK.spirv_assembly.instruction.compute.float_controls.independence_settings.*
dEQP-VK.spirv_assembly.instruction.compute.float16.logical_nan.*
dEQP-VK.spirv_assembly.instruction.compute.float_controls.fp*
dEQP-VK.spirv_assembly.instruction.graphics.float16.logical_nan.*
dEQP-VK.spirv_assembly.instruction.graphics.float_controls.fp*

Change-Id: Ibabef071e32c75468176d505624c1cb140c26a47
(cherry picked from commit 79766c897f2fb5f36561cb63c5dd80bd75e5d045)

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

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Fri, 30 Aug 2019 11:48:28 +0000 (13:48 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: Ib45d4048f7ff9278ac5c376c17115e0e35984297

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5
Alexander Galazin [Fri, 30 Aug 2019 09:24:03 +0000 (11:24 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5

Change-Id: I00f17a688d8b0b2e6c13cab41f9db2f1f853ec8b

4 years agoFix uniformBufferStandardLayout enforcement to match spec
Chris Forbes [Thu, 29 Aug 2019 16:59:43 +0000 (09:59 -0700)]
Fix uniformBufferStandardLayout enforcement to match spec

This extension isn't part of 1.1 -- the spec language was just unclear
if you were looking at the output. The spec has been fixed in
https://gitlab.khronos.org/vulkan/vulkan/commit/aa98ba6f89b9ea707d7efc0c8f71dd82ac9ffb60

Affects: dEQP-VK.api.info.device.mandatory_features
VK-GL-CTS Issue: 1966

Change-Id: I321730f747200036a3d635245bf978eb49b56c2c

4 years agoUse enumerateDeviceExtensionProperties in mandatory features
Alexander Galazin [Thu, 29 Aug 2019 06:04:01 +0000 (08:04 +0200)]
Use enumerateDeviceExtensionProperties in mandatory features

Affects: dEQP-VK.api.info.device.mandatory_features

Components: Vulkan

VK-GL-CTS issue: 1966

Change-Id: I4d72da3a36e6d31ac4025ff2b25fc3b83fdc20d3

4 years agoFixes sync test shader instance counts
Matthew Netsch [Wed, 28 Aug 2019 15:05:25 +0000 (11:05 -0400)]
Fixes sync test shader instance counts

Tests incorrectly required implementations to
execute only 1 vs instance per vertex.

Components: Vulkan
VK-GL-CTS Issue: 1958

Affects:
dEQP-VK.synchronization.op.*.write_indirect_buffer*

Change-Id: I17e42658706712a4f9d07931ac234c1e1807d693

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Fri, 30 Aug 2019 08:42:04 +0000 (10:42 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: I3a118287f4387c798fb2beb82113029308f0762b

4 years agoAdds geometry shader check for test
Matthew Netsch [Wed, 28 Aug 2019 16:31:19 +0000 (12:31 -0400)]
Adds geometry shader check for test

Components: Vulkan
VK-GL-CTS Issue: 1900

Affects:
dEQP-VK.query_pool.statistics_query.input_assembly*.primary.*adjacency

Change-Id: I6aeb72143231d59711cb1d6ea98bc2cc0264bc84

4 years agoReduce long execution time in spirv_asm float16
Matthew Netsch [Wed, 28 Aug 2019 16:17:00 +0000 (12:17 -0400)]
Reduce long execution time in spirv_asm float16

Components: Vulkan
VK-GL-CTS Issue: 1959

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

Change-Id: Iddfa825ffe5bf32607043eb31b517dbba1ff62dc

4 years agoFix pixels_resolution computation in GLSL shader
Yanjun Zhang [Wed, 28 Aug 2019 00:35:26 +0000 (17:35 -0700)]
Fix pixels_resolution computation in GLSL shader

branch: vulkan-cts-1.1.3
Components: Vulkan

Affects:
dEQP-VK.image.texel_view_compatible.graphic.extended.*

VK-GL-CTS issue: 1890

Change-Id: I4aa3270545e0b873bdc8baacaf1fc3947004d003

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Thu, 29 Aug 2019 12:53:47 +0000 (14:53 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: I2601738259c16747c7cbd70189d0af546ce37525

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5
Alexander Galazin [Thu, 29 Aug 2019 12:06:21 +0000 (14:06 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5

Change-Id: Ic4d2bda684057e57ae78e3894e646a8b4653da74

4 years agoAdd a command line option to run a fraction of tests
Jeff Bolz [Tue, 16 Jul 2019 16:34:11 +0000 (11:34 -0500)]
Add a command line option to run a fraction of tests

This is useful to easily parallelize test runs across several CPU cores.
A command line option like --deqp-case-fraction=0,2 will run 1/2 of the
tests (use 1,2 in another process to run the other half).

Components: Framework
Change-Id: I0fd2755d5b6fe458c72c22930c24346decaccbb0
(cherry picked from commit 7fdd5db62c826ec0f4e3ca17cc4252ec408ca914)

4 years agoImprove verification in sampled image tests
Toni Merilehti [Thu, 25 Jul 2019 10:46:52 +0000 (13:46 +0300)]
Improve verification in sampled image tests

Currently the tests use texelFetch (OpImageFetch) to get sample colors
per texel from a multisampled image and verifies that the color is
either the clear color or the primitive color used. This CL makes
the verification more strict by requiring that at least some texels
have samples of both colors as the image used is multisampled.

Affects:

dEQP-VK.pipeline.multisample.sampled_image.*

Components: Vulkan

VK-GL-CTS issue: 1797

Change-Id: I266538cad5f655ad96eb7221fbdd601b8b055ae8
(cherry picked from commit e0cd1b0113c54ae4e48d8633f29149a4c12cbffe)

4 years agoUpdate dependency test
Alexander Galazin [Mon, 26 Aug 2019 14:47:34 +0000 (16:47 +0200)]
Update dependency test

Components: Vulkan

Affects: dEQP-VK.api.info.device.extensions

Change-Id: Ia034c1521edfe2bdf3770b06c3b19416675540fa
(cherry picked from commit 6627cdcaada240502dd7a729c85cc5d508d67f95)

4 years ago1d_image: enforce height 1 in decompress stage as well
Lingfeng Yang [Thu, 15 Aug 2019 22:41:23 +0000 (15:41 -0700)]
1d_image: enforce height 1 in decompress stage as well

Affects:
dEQP-VK.image.texel_view_compatible.compute.basic.1d_image*

Components: Vulkan

VK-GL-CTS issue: 1920

Change-Id: Id98f0a8dd132da5bcd6a3f1426021c8f36a48149
(cherry picked from commit 367c958793953cfff9c59e0f397378ab6f28c605)

4 years agoRemove unnecessary 16-bit storage requirement
Alan Baker [Wed, 21 Aug 2019 14:42:44 +0000 (10:42 -0400)]
Remove unnecessary 16-bit storage requirement

Remove Vulkan 16-bit storage extension from float16 constant composite
tests. These tests do not load/store half floats.

Components: Vulkan

VK-GL-CTS issue: 1931

Affects:
dEQP-VK.spirv_assembly.instruction.compute.opconstantcomposite.*

Change-Id: I5dc26a8f2d922862f68eec01910164d827e9fd8a
(cherry picked from commit da5c09f2d67257bc5979d2f2dec826e09001761d)

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Thu, 29 Aug 2019 10:34:59 +0000 (12:34 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: I75388239129fe489793729297b9aff59da4d77da

4 years agoexternal fence tests: account for sync fd -1 in multiple export case
Lingfeng Yang [Wed, 21 Aug 2019 15:45:10 +0000 (08:45 -0700)]
external fence tests: account for sync fd -1 in multiple export case

Spec allows for sync fd == -1 to be returned from vkGetFenceFdKHR
as a signal that the fence is signaled.

VK-GL-CTS issue: 1937

Components: Vulkan

Affects:
dEQP-VK.api.external.fence.sync_fd.export_multiple_times_temporary

Change-Id: I7391d180bdc1a585c7b57930fc1750d13f7151e1
(cherry picked from commit e266d2f1ee82d20c06c3c48064f60ac4fecd8b1d)

4 years agoExplicitly use -A Win32 platform in CMake Visual Studio 2019 builds
Slawomir Cygan [Fri, 23 Aug 2019 12:33:19 +0000 (14:33 +0200)]
Explicitly use -A Win32 platform in CMake Visual Studio 2019 builds

There is a new CMake switch "-A" for selecting a platform in
Visual Studion CMake generators.

It was set only for 64-bit builds (to x64), however it seems it does not
default to Win32 - so it must be set also for 32-bit builds.

Components: Framework

VK-GL-CTS Issue: 1950

Change-Id: I4d0e9f1a9c8dd0f3060e138f613c8e5326b6fc9f

4 years agoAdds cubic filter to allowed ycbcr format features
Matthew Netsch [Mon, 26 Aug 2019 16:26:12 +0000 (12:26 -0400)]
Adds cubic filter to allowed ycbcr format features

Components: Vulkan
VK-GL-CTS Issue: 1938

Affects:
dEQP-VK.api.info.format_properties.*

Change-Id: I9f32b902820d7a50db9ae51a5ba61f8bab9042ba

4 years agoUpdate VK_KHR_performance_query headers
Alexander Galazin [Thu, 22 Aug 2019 18:22:07 +0000 (20:22 +0200)]
Update VK_KHR_performance_query headers

Align CTS header for VK_KHR_performance_query with API MR 3268
Components: Vulkan

Affects:
 dEQP-VK.query_pool.performance_query.*
 dEQP-VK.api.info.get_physical_device_properties2.features
 dEQP-VK.api.info.get_physical_device_properties2.properties

VK-GL-CTS issue: 1947

Change-Id: I7ac34348d34122f0e9a33dd566be407ec44d55c7

4 years agoCheck supported features and properties for transform feedback tests
John Anthony [Thu, 11 Jul 2019 14:54:59 +0000 (16:54 +0200)]
Check supported features and properties for transform feedback tests

Builtin tests using shaderClipDistance and/or shaderCullDistance should
check if the features they need are supported. BackwardDependency test
should check if transformFeedbackDraw is supported.

Affects:
- dEQP-VK.transform_feedback.simple.xfb_clipdistance_*
- dEQP-VK.transform_feedback.simple.xfb_culldistance_*
- dEQP-VK.transform_feedback.simple.xfb_clip_and_cull_*
- dEQP-VK.transform_feedback.simple.backward_dependency

Components: Vulkan

VK-GL-CTS issue: 1934

Change-Id: I76b22a506ba608d3e3f4ea5586c74b0b7ca1066a

4 years agoFixes stencil load/store flags in renderpass tests
Matthew Netsch [Wed, 21 Aug 2019 15:43:35 +0000 (11:43 -0400)]
Fixes stencil load/store flags in renderpass tests

Components: Vulkan
VK-GL-CTS Issue: 1939

Affects:
dEQP-VK.renderpass*.simple.*stencil

Change-Id: I042c08b9bee6ba00ea3237e24f3fb6b2f1aebd9b

4 years agoHave just one definition of AmberTestCase
Chris Forbes [Thu, 29 Aug 2019 02:13:38 +0000 (19:13 -0700)]
Have just one definition of AmberTestCase

There were two -- an empty stub in the util header, and the real one.
This made it impossible to actually use the full API to set
feature/extension requirements, etc.

Instead, I have forward-declared the Amber Recipe type so that including
vktAmberTestCase.hpp does not involve pulling in Amber headers.

Add geometryShader feature requirement to provoking vertex Amber tests,
allowing them to skip properly on devices which do not support geometry
shaders.

Affects: dEQP-VK.rasterization.provoking_vertex.*
VK-GL-CTS Issue: 1964

Change-Id: Id6d1068c45b2aacc29d07527edd53d65953c49a3

4 years agoFix AmberTestCase feature mapping for geometryShader
Chris Forbes [Thu, 29 Aug 2019 00:44:47 +0000 (17:44 -0700)]
Fix AmberTestCase feature mapping for geometryShader

This was accidentally wired up to tessellationShader instead

VK-GL-CTS Issue: 1963
Change-Id: Id11fd09cf5c0c1353d3df4ecdcbe95bdfa9fa397

4 years agoAdd tests for VK_KHR_timeline_semaphore
Lionel Landwerlin [Fri, 1 Mar 2019 17:03:15 +0000 (17:03 +0000)]
Add tests for VK_KHR_timeline_semaphore

Renames existing semaphore tests from .*semaphore.* into .*binary_semaphore.*

Affects: dEQP-VK.synchronization.*
Change-Id: I48173432da6410a609c0d2000f21c379d4a64429
Components: Vulkan
(cherry picked from commit a86d535bb75d21445df66cdfcce0b9dc79c37604)

4 years agoTest SPIR-V 1.4 SignExtend and ZeroExtend
Piotr Byszewski [Wed, 12 Jun 2019 14:53:49 +0000 (15:53 +0100)]
Test SPIR-V 1.4 SignExtend and ZeroExtend

SPIR-V 1.4 has 2 new extra image operands (SignExtend and ZeroExtend)
indicating if the resulting texel of the operation should be sign
or zero extended.

Components: Vulkan

Affects:
dEQP-VK.image.extend_operands_spirv1p4.*

Change-Id: Ie0ca0125d4f536c318428fc95ebaf000c3f7136f
(cherry picked from commit 6c4f066ef6aac566e8ec400e4343de86a089143c)

4 years agoAllow Vulkan 1.2 in api.info.device.properties
Alexander Galazin [Mon, 26 Aug 2019 09:18:44 +0000 (11:18 +0200)]
Allow Vulkan 1.2 in api.info.device.properties

Components: Vulkan

Affects: dEQP-VK.api.info.device.properties

VK-GL-CTS issue: 1952

Change-Id: I810a4aab69a611823703ad7b06b37c75c5f5d292

4 years agoValidate Vulkan 1.2 mandatory features
Boris Zanin [Fri, 16 Aug 2019 13:51:21 +0000 (15:51 +0200)]
Validate Vulkan 1.2 mandatory features

Check new mandatory features for Vulkan 1.2.

Updates:
 * dEQP-VK.api.info.device.mandatory_features
 * dEQP-VK.api.info.vulkan1p2.*
 * dEQP-VK.descriptor_indexing.*
 * dEQP-VK.binding_model.descriptorset_random*

Components: Vulkan

VK-GL-CTS issue: 1891, 1925, 1929

Change-Id: I59107cced3331fbaf1a54ab89e177dae68c71667

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Tue, 27 Aug 2019 08:09:07 +0000 (10:09 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: I0c2d8b0e0fc665ae231559d1d1e0a1bad8ca1baf

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5
Alexander Galazin [Tue, 27 Aug 2019 07:13:13 +0000 (09:13 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5

Change-Id: I99471c0d878e8abb8c01d7b43a71a9b3e7fbe285

4 years agoVK_EXT_fragment_shader_interlock tests
Jeff Bolz [Thu, 16 May 2019 04:27:53 +0000 (23:27 -0500)]
VK_EXT_fragment_shader_interlock tests

Components: Vulkan
New Tests: dEQP-VK.fragment_shader_interlock.*
VK-GL-CTS issue: 1856

Change-Id: I0246519ac51fcb2eb30fa264b02eb1f30c763e24
(cherry picked from commit 36005ceedd19e39bd11972dd39c419521767dac6)

4 years agoNew tests for VK_EXT_shader_demote_to_helper_invocation
Jeff Bolz [Sun, 2 Jun 2019 04:11:00 +0000 (23:11 -0500)]
New tests for VK_EXT_shader_demote_to_helper_invocation

Based on dEQP-VK.glsl.discard.*

New Tests: dEQP-VK.glsl.demote.*

Components: Vulkan
Change-Id: I9c2346592cac51cfe2de10f9586c4790c04766b6
(cherry picked from commit 529b996513d092334de3dabd4b3e44031201bdd9)

4 years agoWhitelist 1.1.4.3 and 1.1.3.3 versions
Alexander Galazin [Mon, 26 Aug 2019 12:15:18 +0000 (14:15 +0200)]
Whitelist 1.1.4.3 and 1.1.3.3 versions

Affects: dEQP-VK.api.driver_properties.properties

Components: Vulkan

Change-Id: Ia071c4983326e9e47a58d268264e568bea777c1c

4 years agoTest coverage for VK_EXT_index_type_uint8
Piers Daniell [Wed, 24 Jul 2019 05:07:47 +0000 (23:07 -0600)]
Test coverage for VK_EXT_index_type_uint8

Adds coverage for VK_EXT_index_type_uint8 by adding
a new VK_INDEX_TYPE_UINT8_EXT variant to the existing
input_assembly tests. The coverage includes drawing
all the primitive topologies with uint8 indices,
and also primitive restart.

Affects:

dEQP-VK.pipeline.input_assembly.*

Change-Id: I939c1e0d2c3d4fcfd4386b8b4e419a8ca0e73413
Components: Vulkan
(cherry picked from commit e0e648699ac9279650486609cf16ec6e10d73042)

4 years agoFix features2 test for VK_EXT_buffer_device_address
Alexander Galazin [Thu, 22 Aug 2019 12:56:03 +0000 (14:56 +0200)]
Fix features2 test for VK_EXT_buffer_device_address

Take into account that VK_EXT_buffer_device_address wasn't promoted to KHR
and retained separate enum entries

Components: Vulkan

Affects: dEQP-VK.api.info.get_physical_device_properties2.features

VK-GL-CTS issue: 1932

Change-Id: I0714802865d8ef35fb41d6fbab7393c46a0b3a68

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Thu, 22 Aug 2019 18:38:57 +0000 (20:38 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: Icc06dc631471d963bd6812ca84b794b2448b4b39

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5
Alexander Galazin [Thu, 22 Aug 2019 15:46:27 +0000 (17:46 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5

Change-Id: If70c0a43c7453bdea1cfe4666be9bdc946108a31

4 years agoSpeed up hierarchy traversal, part 2
Jari Komppa [Wed, 31 Jul 2019 10:29:15 +0000 (13:29 +0300)]
Speed up hierarchy traversal, part 2

Some of the tests do premature heavy work during test hierarchy
traversal, meaning that they waste time regardless of whether the tests
are run or not. These changes move some of that work to later stage of
test run, or otherwise speed things up a bit.

Affects:

dEQP-VK.pipeline.stencil.*
dEQP-VK.synchronization.cross_instance.*
dEQP-VK.synchronization.op.multi_queue.*
dEQP-VK.transform_feedback.fuzz.*

Components: Vulkan

VK-GL-CTS issue: 1830

Change-Id: I1c124cbf17068e56375ef2e467036e959cde8aa4
(cherry picked from commit 41527af467623bae596b2bd319b0694c11f8cbf8)

4 years agoAdd touch tests for volatile atomics
Jeff Bolz [Wed, 24 Jul 2019 18:09:04 +0000 (13:09 -0500)]
Add touch tests for volatile atomics

Volatile atomics are a late addition to the SPV_KHR_vulkan_memory_model
extension. This change adds variants of the spirv_assembly opatomic tests
that use the bit to make sure it is accepted, but don't actually prove
that the access is treated as volatile.

SPIR-V issue: 476
Components: Vulkan
Affects: dEQP-VK.spirv_assembly.*atomic*

Change-Id: I38202242dade7dcf42aa2bbcd1927a1cac1bc9ad
(cherry picked from commit 8072a83ab9f95f35f75cf28c2e5643e1b638bc01)

4 years agoMerge common util functions, part 3
Ilkka Saarelainen [Tue, 23 Jul 2019 12:32:46 +0000 (15:32 +0300)]
Merge common util functions, part 3

Many tests have their own util functions for creating commonly used
Vulkan objects.
This CL moves the following helper functions to the framework:

- bindImage()
- bindBuffer()
- zeroBuffer()
- makeBuffer()
- makeImage()
- makeBufferCreateInfo()
- makeBufferImageCopy()

Affects: dEQP-VK.*

Components: Vulkan, Framework

VK-GL-CTS issue: 1709

Change-Id: I77c09d4213ca708fb3255d00d2aa2506077def40
(cherry picked from commit 3aad357b11d6c84f8b29dfa97cce4d0f36fb22ec)

4 years agoTexel view compatible: Image: proper check for image format supports
Yahan Zhou [Fri, 9 Aug 2019 18:35:15 +0000 (11:35 -0700)]
Texel view compatible: Image: proper check for image format supports

The queried image usage is different from what is acutally used. Fix it
so that we would not end up with an unsupported usage.

Affects:
dEQP-VK.image.texel_view_compatible*

Components: Vulkan

Google bug: 139193497
VK-GL-CTS issue: 1920

Change-Id: Ib8db61808db5f9391a54b7722f965b6608e7e694
(cherry picked from commit afcca0b7bd29e11643ab5c15a3c37028b7df2b5b)

4 years agoFloat controls: graphics: fix 16bit storage validation
David Neto [Fri, 12 Jul 2019 16:38:08 +0000 (12:38 -0400)]
Float controls: graphics: fix 16bit storage validation

For graphics shaders:

Add Float16 capability and shaderFloat16 when the test case uses
16bit float in a way not supported by the 16bit storage extension.

If not using the Float16 capability, drop definitions of 16bit
constants.

Components: Vulkan

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

VK-GL-CTS issue: 1874

Change-Id: I1e25a706e0667a45b3e5b0a6c496c77feac90465
(cherry picked from commit d081b36582101f53e08fe9f3c6219013e82765e6)

4 years agoNeed Float16 capability for float16 tests
David Neto [Fri, 12 Jul 2019 20:20:13 +0000 (16:20 -0400)]
Need Float16 capability for float16 tests

Fixes validation of 2537 tests.

Components: Vulkan

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

VK-GL-CTS issue: 1874

Change-Id: I68bf7951939b5ff8382ab40e9adcaa8e1ee61c4d
(cherry picked from commit 633e2c204c70c185ab48a93e35a876beab88de1f)

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Thu, 22 Aug 2019 11:42:23 +0000 (13:42 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: I4059d84b79a3ad4504f436fa39dc2cddb294f8d7

4 years agoSplit compute workload into multiple submissions
Matthew Netsch [Wed, 14 Aug 2019 11:08:32 +0000 (16:38 +0530)]
Split compute workload into multiple submissions

Reduces workload per submission

Components: Vulkan
VK-GL-CTS Issue: 1751

Affects:
dEQP-VK.memory_model.message_passing.*

Change-Id: Ia9e9b63851b18ae1d5c1b65426ee864d760bf87c

4 years ago1d_image: basic: compute: texel_view_compatible: set size.y to 1
Yahan Zhou [Wed, 7 Aug 2019 19:44:50 +0000 (12:44 -0700)]
1d_image: basic: compute: texel_view_compatible: set size.y to 1

1d images need to have size.y=1. Otherwise Vulkan validation layer will
complain.

Affects:
dEQP-VK.image.texel_view_compatible.compute.basic.1d_image*

Components: Vulkan

VK-GL-CTS issue: 1920

Change-Id: I0dd24d612aafb416a74b5eb6f16bb55c76175a0f
(cherry picked from commit fe76a662df108542ff27e1c4f5a83077b54444c4)

4 years agoFix incorrect layout transition in render pass
Piers Daniell [Tue, 13 Aug 2019 22:11:23 +0000 (16:11 -0600)]
Fix incorrect layout transition in render pass

For the dEQP-VK.device_group.* tests the renderImage was
created with an UNDEFINED layout and then explicitly
transitioned to COLOR_ATTACHMENT_OPTIMAL during the test
initialization. Then the renderPass was created using the
makeRenderPass() utility function which assumed the
image was in the UNDEFINED state. This caused the
image to be transitioned again from UNDEFINED
to COLOR_ATTACHMENT_OPTIMAL at begin render pass time,
which might modify any valid image data.

The solution is to fix the render pass creation
to indicate that the renderImage is already in the
COLOR_ATTACHMENT_OPTIMAL layout.

Affects:

dEQP-VK.device_group.*

VK-GL-CTS issue: 1922

Change-Id: I5e1dff19eb854af9651615a7318379a318b8c273
Components: Vulkan

4 years agoAdd pipeline barriers flushing buffer data to host
Panagiotis Apostolou [Thu, 25 Jul 2019 10:29:18 +0000 (12:29 +0200)]
Add pipeline barriers flushing buffer data to host

This commit adds a few buffer pipeline barriers whose purpose is to flush
gpu caches, making the buffer data visible to the host.

Affects:
dEQP-VK.pipeline.push_constant.compute_pipeline.simple_test
dEQP-VK.glsl.builtin.precision.*
dEQP-VK.glsl.builtin.function.*
dEQP-VK.api.command_buffers.record_simul_use_secondary_one_primary
dEQP-VK.synchronization.op.single_queue.*
dEQP-VK.query_pool.occlusion_query.*

Components: Vulkan

VK-GL-CTS issue: 1898

Change-Id: Ic6a467b4d1db6cebebf34c8d386e519016fc3fe9

4 years agoShare instance/device across test case instances in dEQP-VK.synchronization.*
Jeff Bolz [Thu, 18 Jul 2019 19:45:02 +0000 (14:45 -0500)]
Share instance/device across test case instances in dEQP-VK.synchronization.*

Some of the dEQP-VK.synchronization.* test groups create new devices or new
instances for each test case. This is a really expensive thing to do tens of
thousands of times, and makes this the longest-running test group in the CTS.
This change uses singleton objects to store the instance/device, and adds
cleanup callbacks to destroy the singletons when the group is finished.

VK-GL-CTS Issue: 1886
Components: Vulkan
Affects: dEQP-VK.synchronization.*

Change-Id: If935b457276790faf4a86e6f2afb5fd911987a85
(cherry picked from commit 90e05499c49c88fc4063748574931c3be5652b07)

4 years agoTests for VK_KHR_separate_depth_stencil_layouts
Piers Daniell [Tue, 30 Apr 2019 22:50:00 +0000 (16:50 -0600)]
Tests for VK_KHR_separate_depth_stencil_layouts

Test coverage for VK_KHR_separate_depth_stencil_layouts. See
https://gitlab.khronos.org/vulkan/vulkan/merge_requests/3172

This change modifies several test groups to use a single
image aspect bit for depth+stencil formats rather than the
VU required D+S aspects.

Where appropriate the tests are also modified to use
the new depth-only or stencil-only optimal layouts.

Affects:

dEQP-VK.api.copy_and_blit.*d16_unorm_s8_uint*
dEQP-VK.api.copy_and_blit.*d24_unorm_s8_uint*
dEQP-VK.api.copy_and_blit.*d32_sfloat_s8_uint*

dEQP-VK.api.image_clearing*d16_unorm_s8_uint*
dEQP-VK.api.image_clearing*d24_unorm_s8_uint*
dEQP-VK.api.image_clearing*d32_sfloat_s8_uint*

dEQP-VK.pipeline.stencil*d16_unorm_s8_uint*
dEQP-VK.pipeline.stencil*d24_unorm_s8_uint*
dEQP-VK.pipeline.stencil*d32_sfloat_s8_uint*

dEQP-VK.pipeline.depth*d16_unorm_s8_uint*
dEQP-VK.pipeline.depth*d24_unorm_s8_uint*
dEQP-VK.pipeline.depth*d32_sfloat_s8_uint*

dEQP-VK.*.depth_stencil_resolve*d16_unorm_s8_uint*
dEQP-VK.*.depth_stencil_resolve*d24_unorm_s8_uint*
dEQP-VK.*.depth_stencil_resolve*d32_sfloat_s8_uint*

Change-Id: I147f3736614cc897f1319c5aac5ed1fdba2d7b66
Compontents: Vulkan
(cherry picked from commit 39e17004ec33f0e546e6f391f933fb938e8c507d)

4 years agoUpdate glslang
Alexander Galazin [Tue, 20 Aug 2019 06:08:57 +0000 (07:08 +0100)]
Update glslang

Components: Framework

Affects: dEQP-VK.*

Change-Id: I1b412973f9db15bcd6881a5148e314fd57715afe

4 years agoTest coverage for VK_EXT_index_type_uint8
Piers Daniell [Wed, 24 Jul 2019 05:07:47 +0000 (23:07 -0600)]
Test coverage for VK_EXT_index_type_uint8

Adds coverage for VK_EXT_index_type_uint8 by adding
a new VK_INDEX_TYPE_UINT8_EXT variant to the existing
input_assembly tests. The coverage includes drawing
all the primitive topologies with uint8 indices,
and also primitive restart.

Affects:

dEQP-VK.pipeline.input_assembly.*

Change-Id: I939c1e0d2c3d4fcfd4386b8b4e419a8ca0e73413
Components: Vulkan

4 years agoNew tests for VK_EXT_shader_demote_to_helper_invocation
Jeff Bolz [Sun, 2 Jun 2019 04:11:00 +0000 (23:11 -0500)]
New tests for VK_EXT_shader_demote_to_helper_invocation

Based on dEQP-VK.glsl.discard.*

New Tests: dEQP-VK.glsl.demote.*

Components: Vulkan
Change-Id: I9c2346592cac51cfe2de10f9586c4790c04766b6
(cherry picked from commit 529b996513d092334de3dabd4b3e44031201bdd9)

4 years agoFloat controls: break out extra functions as separate from constants
David Neto [Fri, 12 Jul 2019 16:27:07 +0000 (12:27 -0400)]
Float controls: break out extra functions as separate from constants

This should not be a functional change.

Components: Vulkan

Affects:
dEQP-VK.spirv_assembly.instruction.compute.float_controls.*
dEQP-VK.spirv_assembly.instruction.graphics.float_controls.*

Change-Id: I03d3f2d4d9792786b159e5472368859d518cdc3e
(cherry picked from commit 3f15cf0997a51831fa37f3a5fde2e9898ae7bcb4)

4 years agoFix Float16 validation for 16bt storage tests
David Neto [Mon, 15 Jul 2019 15:02:20 +0000 (11:02 -0400)]
Fix Float16 validation for 16bt storage tests

* Refactor interface functions to avoid arithmetic capabilities
  * new string template

Components: Vulkan

VK-GL-CTS issue: 1874

Affects:
dEQP-VK.spirv_assembly.instruction.graphics.16bit_storage.*
dEQP-VK.spirv_assembly.instruction.graphics.indexing.*

Change-Id: I05198eedb59a545785a65026847885ea7fae85bf
(cherry picked from commit 6d615d59eab72e305f1f5da2b2e1dda1b48ea108)

4 years agoVK_KHR_pipeline_executable_properties tests
Jason Ekstrand [Tue, 21 May 2019 23:35:19 +0000 (18:35 -0500)]
VK_KHR_pipeline_executable_properties tests

Components: Vulkan
New Tests: dEQP-VK.pipeline.executable_properties.*

Change-Id: I5534d945e65e645b8e43c23008b887797f4a5b85

4 years agoSupport SPIR-V 1.5
Piotr Byszewski [Mon, 27 May 2019 13:38:04 +0000 (15:38 +0200)]
Support SPIR-V 1.5

At this point there is no support in tools therefore
some references to SPIR-V 1.5 are commented out.

Components: Vulkan, Framework

VK-GL-CTS issue: 1783

Change-Id: I27fcf14977b4b536af68ca469ff8de1db593f307

4 years agoAllow tests to be executed with SPIR-V 1.4
Victor Lomuller [Wed, 12 Jun 2019 14:53:49 +0000 (15:53 +0100)]
Allow tests to be executed with SPIR-V 1.4

Components: Framework

Change-Id: I3135d7b0d96234bec53bbc4ec0185f4c816a5dcf

4 years agoAllow optimization for SPIR-V 1.4
Boris Zanin [Mon, 27 May 2019 11:07:02 +0000 (13:07 +0200)]
Allow optimization for SPIR-V 1.4

This commit updates function optimizeCompiledBinary with
missing optimization reciepe for SPIR-V 1.4.

Also makes supports_VK_KHR_spirv_1_4 as an optional argument of
SpirVAsmBuildOptions constructor, though defaulting it to disable
support of SPIR-V 1.4.

The change affects if run with optimization command line arguments,
i.e. --deqp-optimize-spirv=enable and --deqp-optimization-recipe=!0

Affects:
 * dEQP-VK.spirv_assembly.instruction.spirv1p4.*

Components: Framework

VK-GL-CTS issue: 1636

Change-Id: If0af53ea37521e686ca7d422cab9589cc0460dc5

4 years agoAdd tests for Vulkan 1.2 structs defining features and properties
Pawel Ksiezopolski [Thu, 1 Aug 2019 09:51:19 +0000 (11:51 +0200)]
Add tests for Vulkan 1.2 structs defining features and properties

Adds tests for the following structures: VkPhysicalDeviceVulkan11Features,
VkPhysicalDeviceVulkan11Properties, VkPhysicalDeviceVulkan12Features and
VkPhysicalDeviceVulkan12Properties.

Affects tests:
dEQP-VK.api.info.get_physical_device_properties2.features
dEQP-VK.api.info.get_physical_device_properties2.properties

Components: Vulkan

VK-GL-CTS issue: 1891

Change-Id: I999863acd6f633f84031c2b983b80af61e6cfd51

4 years agoAdd support for Vulkan 1.2
Piotr Byszewski [Tue, 5 Feb 2019 12:59:59 +0000 (13:59 +0100)]
Add support for Vulkan 1.2

Adds following extensions to core:
VK_KHR_image_format_list
VK_KHR_sampler_mirror_clamp_to_edge
VK_KHR_draw_indirect_count
VK_KHR_create_renderpass2
VK_KHR_8bit_storage
VK_KHR_driver_properties
VK_KHR_shader_atomic_int64
VK_KHR_shader_float16_int8
VK_KHR_shader_float_controls
VK_EXT_descriptor_indexing
VK_KHR_depth_stencil_resolve
VK_EXT_scalar_block_layout
VK_EXT_shader_viewport_index_layer
VK_EXT_buffer_device_address
VK_EXT_separate_stencil_usage
VK_EXT_sampler_filter_minmax
VK_KHR_imageless_framebuffer
VK_KHR_vulkan_memory_model
VK_KHR_shader_subgroup_extended_types
VK_KHR_spirv_1_4
VK_KHR_uniform_buffer_standard_layout
VK_EXT_host_query_reset

Components: Vulkan

Change-Id: I9a1e15caf459e981a4c1a4689a5c0dac482f4e5e

4 years agoHandle spir-v 1.4 in SpvAsmUtils
Piotr Byszewski [Mon, 22 Jul 2019 09:21:01 +0000 (11:21 +0200)]
Handle spir-v 1.4 in SpvAsmUtils

Components: Vulkan

Affects:
dEQP-VK.spirv_assembly.*

Change-Id: Ib960d1c4786c44c5c30ef9b4080e315681cb80aa

4 years agoMerge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Alexander Galazin [Wed, 14 Aug 2019 17:23:52 +0000 (19:23 +0200)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev

Change-Id: I277ac1827a20a8363d4c1ed071db0081f934f764

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/master
Alexander Galazin [Wed, 14 Aug 2019 15:09:33 +0000 (17:09 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/master

Change-Id: Idbd535ccaa0b8db6fcace470af92c29a999dede7

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5
Alexander Galazin [Wed, 14 Aug 2019 14:11:55 +0000 (16:11 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5

Change-Id: I9cc0f3b31193377219058dce043d7b8a929b9eea

4 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Wed, 14 Aug 2019 12:04:45 +0000 (14:04 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: I6c972fa2e2028e4f813ab96eb565c93c440faf9d