platform/upstream/VK-GL-CTS.git
5 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master
Alexander Galazin [Mon, 20 May 2019 12:04:25 +0000 (14:04 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master

Change-Id: I703896cbce7472a65a7cc8d87d955b6b10ea3691

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Mon, 20 May 2019 10:24:42 +0000 (12:24 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: I7cb87c9d21e2ba725b199ee59663ece150333993

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.2 into vk-gl-cts/vulkan-cts-1.1.3
Alexander Galazin [Mon, 20 May 2019 09:40:23 +0000 (11:40 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.2 into vk-gl-cts/vulkan-cts-1.1.3

Change-Id: I782d2f2d769d92e11f7e558cdefb56d187fe53e6

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.1 into vk-gl-cts/vulkan-cts-1.1.2
Alexander Galazin [Mon, 20 May 2019 08:58:43 +0000 (10:58 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.1 into vk-gl-cts/vulkan-cts-1.1.2

Change-Id: I0fd601c9fc32f66eb7e45322801a930d4f33c4dc

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.0 into vk-gl-cts/vulkan-cts-1.1.1
Alexander Galazin [Mon, 20 May 2019 08:12:17 +0000 (10:12 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.0 into vk-gl-cts/vulkan-cts-1.1.1

Change-Id: Ib38bd02e2ed4c74ee845e19eb25b8de05fb0e312

5 years agoCheck for largePoints feature and add 1px test variant
Ari Suonpaa [Tue, 30 Apr 2019 10:36:09 +0000 (13:36 +0300)]
Check for largePoints feature and add 1px test variant

Pipeline multisample tests were using point size of 3
without checking for largePoints feature. Now the feature
is checked and a 1 pixel variant is also added.

Affects:

dEQP-VK.pipeline.multisample.*.primitive_point

New tests:

dEQP-VK.pipeline.multisample.*.primitive_point_1px

Components: Vulkan

VK-GL-CTS issue: 1739
Change-Id: I0eef68b8194a1026a98b19579d1d3c1b7f9c9cc7
(cherry picked from commit c382ec855438509b201c4aa5eff6b730534f2f3c)

5 years agoRemove incorrect unroll_dont_unroll test
Boris Zanin [Thu, 16 May 2019 15:23:19 +0000 (17:23 +0200)]
Remove incorrect unroll_dont_unroll test

According SPIR-V validator: Unroll and DontUnroll
loop controls must not both be specified.

Remove tests:
 * dEQP-VK.spirv_assembly.instruction.compute.loop_control.unroll_dont_unroll

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

VK-GL-CTS issue: 1779

Change-Id: Ib799f96a290bb08df1175f1dc6f6d212314665af

5 years agoAdd tests for VK_EXT_descriptor_indexing
Michal Jakubek [Thu, 27 Dec 2018 09:54:56 +0000 (09:54 +0000)]
Add tests for VK_EXT_descriptor_indexing

Adds:
dEQP-VK.descriptor_indexing.*

Components: Vulkan, Framework

VK-GL-CTS issue: 1003

Change-Id: Ia9790d6e60997aae4f448e2a0a98302cd5189bcd
(cherry picked from commit b20c2824cd8c0fe8e6bffd70cb65062f91accee3)

5 years agoAdd tests for VK_EXT_pipeline_creation_feedback extension
Samuel Iglesias Gonsálvez [Fri, 17 May 2019 11:30:33 +0000 (13:30 +0200)]
Add tests for VK_EXT_pipeline_creation_feedback extension

Tests implement the following for both compute and graphics pipelines.
They create a pipeline cache and checks the pipeline creation feedback
for three different pipelines: first pipeline should not hit the cache,
second pipeline is the same than the first one, third pipeline is a
pipeline derivative from the first one.

Then they verify that the creation feedback for all of the pipelines is
valid, the first pipeline did not hit the cache and that first and
second pipelines are not setting
VK_PIPELINE_CREATION_FEEDBACK_BASE_PIPELINE_ACCELERATION_BIT_EXT as
they are not pipeline derivatives.

Also, if pPipelineStageCreationFeedbacks for each pipeline and stage is
not valid, check that none of the flags is set.

They also print to the test log the content of the
pPipelineCreationFeedback for each pipeline and, if
pPipelineStageCreationFeedbacks for each pipeline and stage is valid,
its content too.

New tests:

dEQP-VK.pipeline.creation_feedback.*

Components: Vulkan
VK-GL-CTS issue: 1671

Change-Id: I5e8b728bd83c256b3b4f084c6d0840a132afbcae

5 years agoAdd GeometryPointSize feature check
Ilkka Saarelainen [Wed, 15 May 2019 12:01:14 +0000 (15:01 +0300)]
Add GeometryPointSize feature check

Some tests were using gl_PointSize without checking if the
shaderTessellationAndGeometryPointSize feature is supported and enabled.

This CL adds the feature checks to those tests. If the feature is not
supported/enabled, an alternative geometry shader code without
gl_PointSize will be used.

Affects:

dEQP-VK.glsl.*geometry
dEQP-VK.ycbcr.*geometry*
dEQP-VK.query_pool.*
dEQP-VK.transform_feedback.simple.streams_pointsize*

Components: Vulkan

VK-GL-CTS issue: 1763

Change-Id: If58bb5129144bae8d51dca84a3d0c89b46be1343

5 years agoMake validation function more robust
Boris Zanin [Thu, 14 Mar 2019 14:58:34 +0000 (15:58 +0100)]
Make validation function more robust

This change modifies validateSpirV function.
Code should expect spvBinaryToText can leave some
parameters uninitialized (at least pText).
Also expect some other functions to return
uninitialized results (spvValidatorOptionsCreate,
spvContextCreate).

Affects:
 * dEQP-VK.*

Components: Framework, Vulkan

VK-GL-CTS issue: 1645

Change-Id: Ia5af2c5451d33247af2b8934fe4e5391badc8163

5 years agoDon't set sampleShadingEnable in dEQP-VK.pipeline.framebuffer_attachment.*
Chris Forbes [Wed, 15 May 2019 17:38:01 +0000 (10:38 -0700)]
Don't set sampleShadingEnable in dEQP-VK.pipeline.framebuffer_attachment.*

These tests don't need per-sample shading, and didn't check for whether
it was supported by the device.

Components: Vulkan
Affects: dEQP-VK.pipeline.framebuffer_attachment.*ms
VK-GL-CTS Issue: 1776
Change-Id: Ic8477262410e1531c1acabe494c2cf64c199dd6b

5 years agoAdd multiview tests iterating with VK_EXT_vertex_attribute_divisor
Samuel Iglesias Gonsálvez [Tue, 7 May 2019 11:11:11 +0000 (13:11 +0200)]
Add multiview tests iterating with VK_EXT_vertex_attribute_divisor

Tests are the same than the existing vertex attribute divisor ones but
adding 2 views that are rendering the same scene. Expected result is
the same for both views.

Added tests:

   dEQP-VK.draw.instanced.*_multiview

Components: Vulkan
VK-GL-CTS issue: 1290

Change-Id: I1cfc3868d56c6c7ce02a3a2d7b07107acea59759

5 years agoCheck for largePoints feature and add 1px test variant
Ari Suonpaa [Tue, 30 Apr 2019 10:36:09 +0000 (13:36 +0300)]
Check for largePoints feature and add 1px test variant

Pipeline multisample tests were using point size of 3
without checking for largePoints feature. Now the feature
is checked and a 1 pixel variant is also added.

Affects:

dEQP-VK.pipeline.multisample.*.primitive_point

New tests:

dEQP-VK.pipeline.multisample.*.primitive_point_1px

Components: Vulkan

VK-GL-CTS issue: 1739
Change-Id: I0eef68b8194a1026a98b19579d1d3c1b7f9c9cc7

5 years agoCheck queries unavailable with reset and copy
Ricardo Garcia [Thu, 4 Apr 2019 08:05:38 +0000 (10:05 +0200)]
Check queries unavailable with reset and copy

If running vkCmdResetQueryPool() just before using
vkCmdCopyQueryPoolResults(), the query should be unavailable. This can
be checked by asking for the availability status.

New tests:

dEQP-VK.pipeline.timestamp.misc_tests.reset_query_before_copy
dEQP-VK.query_pool.occlusion_query.copy_reset_*
dEQP-VK.query_pool.statistics_query.reset_before_copy.*

Components: Vulkan
VK-GL-CTS issue: 1721

Change-Id: I01204906c19a515b73e228ee582bbeadaed95809

5 years agoFix spelling of "preserve" in float controls tests
Graeme Leese [Wed, 15 May 2019 17:11:47 +0000 (18:11 +0100)]
Fix spelling of "preserve" in float controls tests

Change-Id: I9995cb1aace758452eb8d677eb67080063c5c848

5 years agoDon't pass YcbcrConversion objects when not used
Graeme Leese [Wed, 8 May 2019 11:51:50 +0000 (12:51 +0100)]
Don't pass YcbcrConversion objects when not used

ImageViews created with SamplerYcbcrConversions are only allowed to be
used with immutable samplers, which these are not.

Components: Vulkan
VK-GL-CTS Issue: 1767
Affects: dEQP-VK.ycbcr.plane_view.*

Change-Id: Ibc11b09c0b063154dc32ee4bc61c6b099ea36507

5 years agoVary vertex buffer stride in pipeline barrier tests
Ricardo Garcia [Tue, 30 Apr 2019 14:19:54 +0000 (16:19 +0200)]
Vary vertex buffer stride in pipeline barrier tests

Pipeline barrier tests were using vertex buffers with a stride of 2
bytes, which is not supported by Vulkan Portability on Metal due to
Metal forcing the vertex stride to be a multiple of 4.

This prevented some pipeline barrier tests from being run on Vulkan
Portability on Metal, even if they were not actually testing vertex
buffers.

This commit makes vertex buffers in pipeline barrier tests be used with
both strides of 2 and 4 bytes. Tests with stride 2 can be skipped under
Vulkan Portability on Metal knowing the same pipeline barrier test will
also run with stride 4. Test coverage is not decreased because stride 2
tests are preserved.

Removed tests:
dEQP-VK.memory.pipeline_barrier.*_vertex_buffer.1024
dEQP-VK.memory.pipeline_barrier.*_vertex_buffer.8192
dEQP-VK.memory.pipeline_barrier.*_vertex_buffer.65536
dEQP-VK.memory.pipeline_barrier.*_vertex_buffer.1048576
dEQP-VK.memory.pipeline_barrier.all.1024
dEQP-VK.memory.pipeline_barrier.all.8192
dEQP-VK.memory.pipeline_barrier.all.65536
dEQP-VK.memory.pipeline_barrier.all.1048576
dEQP-VK.memory.pipeline_barrier.all_device.1024
dEQP-VK.memory.pipeline_barrier.all_device.8192
dEQP-VK.memory.pipeline_barrier.all_device.65536
dEQP-VK.memory.pipeline_barrier.all_device.1048576

New tests:
dEQP-VK.memory.pipeline_barrier.*vertex_buffer_stride*
dEQP-VK.memory.pipeline_barrier.*vertex_buffer_stride*

Components: Vulkan
VK-GL-CTS issue: 1201

Change-Id: If6ecc653085b4259977d94bb2fed3e43b9109f8a

5 years agoChange spir-v optimizer recipes
Jari Komppa [Tue, 30 Apr 2019 12:30:35 +0000 (15:30 +0300)]
Change spir-v optimizer recipes

This change changes the spir-v optimizer recipes by removing all the
existing ones and replacing them with a set provided by spirv-opt:
optimize performance or optimize size. Other recepies can be added later
if needed.

This does not affect any tests directly as the optimizer is not used by
default. It affects all tests when in use.

Affects: none

Components: Vulkan, Framework

VK-GL-CTS issue: 1741

Change-Id: Id7278fcd479ac2511a474f19c3d25bd23d943944

5 years agoFix API usage errors in subgroups.* tests
Ilkka Saarelainen [Wed, 27 Mar 2019 10:52:42 +0000 (12:52 +0200)]
Fix API usage errors in subgroups.* tests

Many subgroup tests were missing gl_PointSize in vertex and geometry
shaders. Also some tests were using VK_IMAGE_LAYOUT_UNDEFINED image
layout but the command buffer expects VK_IMAGE_LAYOUT_GENERAL. These
errors were caught by validation layers.

This CL adds the missing gl_PointSizes to the shaders and transitions
the images to the correct image layout.

Affects:

dEQP-VK.subgroups.*

Components: Vulkan

VK-GL-CTS issue: 1644

Change-Id: Ie0e0ab8bcfeedc4faba847e004908ce5eaadceb0

5 years agoFix stack underflow in incremental present test
Lingfeng Yang [Fri, 8 Feb 2019 15:36:00 +0000 (07:36 -0800)]
Fix stack underflow in incremental present test

This uses the current object's m_queueFamilyIndex instead of a queue
family index that is on the stack, avoiding using a stale stack address
when the test runs.

VK-GL-CTS issue: 1585

Affects:
dEQP-VK.wsi.*.incremental_present.*

Components: Vulkan

Change-Id: I80228651b799d3444676cdcbf5cc845bcb195fe9
(cherry picked from commit a268922558ed0c353a7d8b6845f8d6279b72af29)

5 years agoAdd *_MAX_ENUM to enum definitions
Piotr Byszewski [Tue, 14 May 2019 13:00:56 +0000 (15:00 +0200)]
Add *_MAX_ENUM to enum definitions

Components: Framework

VK-GL-CTS issue: 1700

Affects: *

Change-Id: I9d94342c306e2fbf0914fb31fc361dec8146a7c7

5 years agoFix shader common function tests
Ricardo Garcia [Thu, 2 May 2019 14:25:40 +0000 (16:25 +0200)]
Fix shader common function tests

Shader common function tests were not correctly filling values on some
input buffers and not taking into account implementations may ignore the
sign of zeros when doing optimizations on the SPIR-V code.

Affected tests:
dEQP-VK.glsl.builtin.function.common.*

Components: Vulkan
VK-GL-CTS issue: 1359, 1762

Change-Id: Ic27a298e32f7e9e7a9c50ac340ee9d095f1559f9

5 years agoUpdate glslang, SPIRV-Tools/Headers
Alexander Galazin [Fri, 10 May 2019 10:09:49 +0000 (12:09 +0200)]
Update glslang, SPIRV-Tools/Headers

Components: Framework

Affets: dEQP-VK.*

Change-Id: I6487bfa7eac58063269ca21d667ab708d63fd723

5 years agoUpdate fetch_sources.py to Python 3
Alexander Galazin [Fri, 10 May 2019 10:06:12 +0000 (12:06 +0200)]
Update fetch_sources.py to Python 3

Components: Framework

Change-Id: I7f75a084e5128b1a19be7649a06a315e91a36688
(cherry picked from commit 9c4f100a056b084876e874a1b115192225b9a61a)

5 years agoUpdate fetch_sources.py to Python 3
Alexander Galazin [Fri, 10 May 2019 10:06:12 +0000 (12:06 +0200)]
Update fetch_sources.py to Python 3

Components: Framework

Change-Id: I7f75a084e5128b1a19be7649a06a315e91a36688

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master
Alexander Galazin [Fri, 10 May 2019 08:27:27 +0000 (10:27 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master

Change-Id: I4ef987d75f3e0a595ef5ed56a68b237285cedbb8

5 years agoTests for VK_KHR_uniform_buffer_standard_layout
Graeme Leese [Mon, 14 Jan 2019 19:01:56 +0000 (19:01 +0000)]
Tests for VK_KHR_uniform_buffer_standard_layout

Enables the existing std430 UBO tests based on support for the
extension.

Components: Vulkan
Affects: dEQP-VK.ubo.*.std430.*

Change-Id: I224377696979eea0ac8ca0b3f190414909ddc0a8
(cherry picked from commit 00a15d59264d0853c5d9ef2a0178293f536a3d29)

5 years agoFix run command for Windows
Samuel Iglesias Gonsálvez [Fri, 10 May 2019 06:32:33 +0000 (08:32 +0200)]
Fix run command for Windows

In Windows the directory separator is backslash for running commands.

Components: Vulkan

Change-Id: I917dd7c05a6d4a085130c1ec58945d4e03d3dc85

5 years agoWhitelist Vulkan CTS 1.1.4.1
Alexander Galazin [Fri, 10 May 2019 06:14:38 +0000 (08:14 +0200)]
Whitelist Vulkan CTS 1.1.4.1

Components: Vulkan

Affects: dEQP-VK.api.driver_properties.properties

Change-Id: Iad3e3c27e48585dc2143f8bf800a4ed56d9f2f01

5 years agoUpdate gen_framework_c.py for python3
Alexander Galazin [Thu, 9 May 2019 18:40:58 +0000 (20:40 +0200)]
Update gen_framework_c.py for python3

Components: Framework

Change-Id: If332d1f79f6f861fd49d16ee700967bdcf80b598

5 years agoUpdate SPIR-V Tools
Alexander Galazin [Thu, 9 May 2019 18:02:47 +0000 (20:02 +0200)]
Update SPIR-V Tools

Components: Framework

Change-Id: I6f5971307e97ed55bd7c2164a94dd997784e0105

5 years agoRequire Python 3
Alexander Galazin [Tue, 23 Apr 2019 19:09:43 +0000 (21:09 +0200)]
Require Python 3

Require Python 3 as some components used by the CTS already need it.
Update SPIR-V Tools: Fixes build issues on Windows and OpUnreachable validation.

Components: Framework, AOSP, Vulkan, OpenGL

Affects: dEQP-VK.*, builds

VK-GL-CTS issue: 1665
VK-GL-CTS issue: 1627
VK-GL-CTS issue: 1716

Change-Id: I719574b50aa16fdb0d06e85981a029ae8e0c4416
(cherry picked from commit b1e5e376ccb021339741c927f99d9c2378ecc6cc)

5 years agoUpdate generate scripts for python3
Eric Werness [Tue, 20 Nov 2018 17:34:06 +0000 (09:34 -0800)]
Update generate scripts for python3

Components: Framework

Change-Id: Ia3db51e520ffbab7613f9948f23e6320b2815462
(cherry picked from commit c7ebd5a8c32ae0b16789fc700d62502a5891aeae)

5 years agoSupport Python3 as well in gen_release_info.py
Eric Werness [Fri, 16 Nov 2018 21:50:40 +0000 (13:50 -0800)]
Support Python3 as well in gen_release_info.py

The CMake file version check can end up picking python3 in some cases -
making the Python code compatible with python3 seems easier than
adjusting the version check.

Components: Frameworks
Change-Id: Iab37090ab813dcb7839490225ca2a4bf2f721c12
(cherry picked from commit f1bcdd5e9df1f83cc9dc4ef7235d3da16e9f7fab)

5 years agoRequire Python 3
Alexander Galazin [Tue, 23 Apr 2019 19:09:43 +0000 (21:09 +0200)]
Require Python 3

Require Python 3 as some components used by the CTS already need it.
Update SPIR-V Tools: Fixes build issues on Windows and OpUnreachable validation.

Components: Framework, AOSP, Vulkan, OpenGL

Affects: dEQP-VK.*, builds

VK-GL-CTS issue: 1665
VK-GL-CTS issue: 1627
VK-GL-CTS issue: 1716

Change-Id: I719574b50aa16fdb0d06e85981a029ae8e0c4416

5 years agoUpdate generate scripts for python3
Eric Werness [Tue, 20 Nov 2018 17:34:06 +0000 (09:34 -0800)]
Update generate scripts for python3

Components: Framework

Change-Id: Ia3db51e520ffbab7613f9948f23e6320b2815462

5 years agoSupport Python3 as well in gen_release_info.py
Eric Werness [Fri, 16 Nov 2018 21:50:40 +0000 (13:50 -0800)]
Support Python3 as well in gen_release_info.py

The CMake file version check can end up picking python3 in some cases -
making the Python code compatible with python3 seems easier than
adjusting the version check.

Components: Frameworks
Change-Id: Iab37090ab813dcb7839490225ca2a4bf2f721c12

5 years agoFix constructor warnings when building with GCC 9
Ricardo Garcia [Mon, 6 May 2019 11:10:12 +0000 (13:10 +0200)]
Fix constructor warnings when building with GCC 9

When building vk-gl-cts with GCC 9 the building process prints a lot of
warnings related to contructors and assignment operators. This prevents
scripts/check_build_sanity.py from completing successfully on those
systems. This commit fixes those warnings.

Components: Framework
VK-GL-CTS issue: 1765

Change-Id: Ibab73d084488079802116fff55a17636e976c0fc

5 years agoMake random number usage platform independent
Ari Suonpaa [Tue, 23 Apr 2019 11:57:47 +0000 (14:57 +0300)]
Make random number usage platform independent

Generating multiple random numbers in argument
list can happen in different order depending on
implementation. This change makes these happen
in the same order with all implementations.

Affects:

dEQP-VK.api.granularity.*
dEQP-VK.draw.basic_draw.*
dEQP-VK.protected_memory.*
dEQP-VK.glsl.builtin.function.common.*
dEQP-VK.glsl.builtin.function.pack_unpack.*
dEQP-VK.glsl.texture_gather.*
dEQP-VK.spirv_assembly.*
dEQP-GLES3*.functional.shaders.builtin_functions.common.*

Components: Vulkan, OpenGL, Framework

VK-GL-CTS issue: 1591
Change-Id: Iaaff9625fd331ed7184efd50b89fc835c701ac6f

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master
Alexander Galazin [Thu, 9 May 2019 10:43:42 +0000 (12:43 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master

Change-Id: I248dcc344da78dd9b6580067bdef03656372e077

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Thu, 9 May 2019 09:46:54 +0000 (11:46 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: Icae001e33d6a01954a6461d38bc8226abb48775e

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.2 into vk-gl-cts/vulkan-cts-1.1.3
Alexander Galazin [Thu, 9 May 2019 09:15:26 +0000 (11:15 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.2 into vk-gl-cts/vulkan-cts-1.1.3

Change-Id: I015156c0e368515b0cecc70775a82a5537baa341

5 years agoFix regression in subgroups tests after merging 393912cd
Slawomir Cygan [Mon, 29 Apr 2019 11:45:02 +0000 (13:45 +0200)]
Fix regression in subgroups tests after merging 393912cd

This extends the additional verification to catch uninitialized memory from
commit 393912cd to tests added in 1.1.3, so after 393912cd.

This fixes regression that occured on master after 393912cd was merged.

Components: Vulkan

VK-GL-CTS Issue: 1757

Change-Id: Icb7fe91ee2839626d8ebc90ae2788f85b0e835b7
Affects: dEQP-VK.subgroups.basic.framebuffer.*tess*

5 years agoFixes linear support check for pipeline tests
Matthew Netsch [Thu, 25 Apr 2019 18:41:15 +0000 (14:41 -0400)]
Fixes linear support check for pipeline tests

Removes old workaround for certain formats

Components: Vulkan
VK-GL-CTS Issue: 1755

Affects:
dEQP-VK.pipeline.sampler.*

Change-Id: Ia35303f11132f84560f06c13c7a94e3f9be888db

5 years agoFactor out copies of makeBufferCreateInfo
Lionel Landwerlin [Thu, 21 Mar 2019 14:18:37 +0000 (14:18 +0000)]
Factor out copies of makeBufferCreateInfo

Components: Vulkan
Change-Id: I1a81b8fbc19faa41c367834e3233cf96cccbc05e

5 years agoFix Clang 8 and GCC 9 warnings
Mika Väinölä [Tue, 9 Apr 2019 13:28:45 +0000 (16:28 +0300)]
Fix Clang 8 and GCC 9 warnings

Rename some TYPE_LAST and STATE_LAST enums that produce variable
shadowing warnings with Clang 8. Reimplement tcu::Format::Hex methods
using stringstream and IO manipulators instead of format strings
and add a cast to deUint32 to fix warnings on GCC 9.

Component: Framework

VK-GL-CTS issue: 1631

Change-Id: Ide4b25c106810b725c5ed7caaaf676f02e81b368

5 years agoMerge vk-gl-cts/opengl-cts-4.6.0 into vk-gl-cts/master
Alexander Galazin [Wed, 8 May 2019 08:29:10 +0000 (10:29 +0200)]
Merge vk-gl-cts/opengl-cts-4.6.0 into vk-gl-cts/master

Change-Id: I52931c808f715c4c790fe796128dd585ecf88bac

5 years agoMerge vk-gl-cts/opengl-es-cts-3.2.5 into vk-gl-cts/master
Alexander Galazin [Wed, 8 May 2019 08:29:08 +0000 (10:29 +0200)]
Merge vk-gl-cts/opengl-es-cts-3.2.5 into vk-gl-cts/master

Change-Id: If2efadd4f002bb58bacd710fcd24476fba0397aa

5 years agoSimplify support checking and fix typos in messages
Graeme Leese [Tue, 7 May 2019 12:41:46 +0000 (13:41 +0100)]
Simplify support checking and fix typos in messages

The code for checking format support was duplicated for source and
destination formats and there were several typos in the various error
messages.

Components: Vulkan
Affects: dEQP-VK.ycbcr.copy.*

Change-Id: I1cc02a5aa66f521e5a152f608f39456e24c4ccb8

5 years agoMerge common util functions, part 1
Ilkka Saarelainen [Wed, 10 Apr 2019 12:43:49 +0000 (15:43 +0300)]
Merge common util functions, part 1

Many tests have their own util functions for creating commonly used
Vulkan objects.
This CL moves the following helper functions to the framework:
- makeImageView()
- makeBufferView()
- makeDescriptorSet()

Also some tests were using their own implementation of the following
helper functions:
- makeRenderPass()
- submitCommandsAndWait()
This CL changes those tests to use the existing functions from
the framework when possible.

Affects: dEQP-VK.*

Components: Vulkan, Framework

VK-GL-CTS issue: 1709

Change-Id: I4fdf1ea55f83f395d12d3c8a89bbe8d8d2333fa6

5 years agovulkancts/README: Recommend -msse2 -mfpmath=sse for 32-bit x86 builds
Jason Ekstrand [Sat, 14 Oct 2017 22:57:03 +0000 (15:57 -0700)]
vulkancts/README: Recommend -msse2 -mfpmath=sse for 32-bit x86 builds

Otherwise, GCC may produce code that doesn't follow the IEEE floating
point rules.  This can result in spurious test failures due to precision
issues with the CTS.  These issues won't be noticed with 64-bit builds
because GCC enables SSE floating-point math by default on x86_64.

Change-Id: Id0a60464d7607ec70b62e62c73558b8750b74849

5 years agoCheck vkCmdFillBuffer with sizes not multiple of 4
Ricardo Garcia [Mon, 15 Apr 2019 08:40:34 +0000 (10:40 +0200)]
Check vkCmdFillBuffer with sizes not multiple of 4

Use vkCmdFillBuffer passing VK_WHOLE_SIZE as the size when the whole
buffer size is not a multiple of 4. The extra bytes at the end should
remain untouched by the fill operation, as per the spec.

New tests:
dEQP-VK.api.fill_and_update_buffer.*.fill_buffer_vk_whole_size_*

Components: Vulkan
VK-GL-CTS issue: 1156

Change-Id: Ie9ac7ccbf8ce42a835ef4e073feaa01c010ab4cb

5 years agoCheck for GLES 3.0 Context Before Using 3.0 Functionality
Tim Van Patten [Tue, 9 Apr 2019 20:41:16 +0000 (14:41 -0600)]
Check for GLES 3.0 Context Before Using 3.0 Functionality

The additional testFramebufferColorEncoding() testing requires a GLES
3.0 context, but only a 2.0 context is requested.   This change will
continue to execute those tests, but only after verifying a 3.0 context
was returned.

Affects:
dEQP-EGL.functional.wide_color.window_fp16_colorspace_p3_passthrough
dEQP-EGL.functional.wide_color.pbuffer_fp16_colorspace_p3_passthrough
dEQP-EGL.functional.wide_color.window_1010102_colorspace_p3_passthrough
dEQP-EGL.functional.wide_color.pbuffer_1010102_colorspace_p3_passthrough
dEQP-EGL.functional.wide_color.window_8888_colorspace_p3_passthrough
dEQP-EGL.functional.wide_color.pbuffer_8888_colorspace_p3_passthrough
dEQP-EGL.functional.wide_color.window_888_colorspace_p3_passthrough
dEQP-EGL.functional.wide_color.pbuffer_888_colorspace_p3_passthrough

Components: EGL

Bug: 1704
Google Bug: 124910588

Change-Id: Ifc81308c569923d4d777cd5c5329568b579f1ac1

5 years agoCheck for depthBiasClamp feature before using it
Chris Forbes [Fri, 3 May 2019 20:53:14 +0000 (13:53 -0700)]
Check for depthBiasClamp feature before using it

VK-GL-CTS Issue: 1764
Affects: dEQP-VK.dynamic_state.rs_state.depth_bias_clamp

Change-Id: Iccd05a1eac2285125847a392c4065d36c88cb426

5 years agoCheck for imageCubeArray support before using VK_IMAGE_VIEW_TYPE_CUBE_ARRAY
Chris Forbes [Wed, 1 May 2019 14:43:48 +0000 (07:43 -0700)]
Check for imageCubeArray support before using VK_IMAGE_VIEW_TYPE_CUBE_ARRAY

VK-GL-CTS Issue: 1761
Components: Vulkan
Affects: dEQP-VK.binding_model.shader_access.*cube_array*
Change-Id: I918227d1518c3d7f6cefd7931531aafb34fcf9f8

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master
Alexander Galazin [Sun, 28 Apr 2019 14:59:54 +0000 (16:59 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master

Change-Id: I501c99baa16c76da5f7f6fff53c8f2948b5a5107

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Sun, 28 Apr 2019 12:33:14 +0000 (14:33 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: Ief71fa1e4d028988c1e5bc9c0d477787c8a1fcd6

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.2 into vk-gl-cts/vulkan-cts-1.1.3
Alexander Galazin [Sun, 28 Apr 2019 08:36:59 +0000 (10:36 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.2 into vk-gl-cts/vulkan-cts-1.1.3

Change-Id: I71fc7f7b5ccaf55f0ad0ec40d4e0720bebbabb50

5 years agoReduce expected precision of RGB10A2 filtering
Graeme Leese [Tue, 9 Apr 2019 11:25:19 +0000 (12:25 +0100)]
Reduce expected precision of RGB10A2 filtering

The code in the YCbCr tests says that it was copied from the texture
explicit lod tests, but those tests give rgb10a2 a 'low' precision, not
'fp16'. Reduce the precision expected in the YCbCr tests.

Components: Vulkan
VK-GL-CTS Issue: 1731
Affects: dEQP-VK.ycbcr.*
         dEQP-VK.protected_memory.interaction.ycbcr.*

Change-Id: Ib0ae233fc271ded2f9987fe448dcd351e509a0c4
(cherry picked from commit 5deebf4709ed3e2c3aaad3b8bb8703f236309b97)

5 years agocheck if getPlatformExtensionName is null
Courtney Goeltzenleuchter [Thu, 4 Apr 2019 21:35:41 +0000 (15:35 -0600)]
check if getPlatformExtensionName is null

nativeDisplay.getPlatformExtensionName will be null if the
platform does not support platform extensions. Check for that
prior to turning it into a string.

Components: GL, ANGLE build

Affects: dEQP-GLES2.functional.rasterization.primitives.line*

VK-GL-CTS issue: 1722

Change-Id: Ic60c3ad8387009b00bcb3ecd74d2d5cd673dade8

5 years agoFix memory initialisation in subgroups tests
Carl Ritson [Thu, 14 Mar 2019 16:25:30 +0000 (16:25 +0000)]
Fix memory initialisation in subgroups tests

Subgroup tests expand memory allocations to accommodate std140 layout
shaders; however, the extra memory is not initialised.
This changes initialisation to be based on the actually allocated
buffer size and adds additional verification to catch uninitialised
memory.

Affects:
dEQP-VK.subgroups.*

Components: Vulkan

VK-GL-CTS Issue: 1639

Change-Id: I0dfc0abb9bcbe63b5d1d5ad43e6fee99389fdfa2

5 years agoTest separate channels as input and output
Ari Suonpaa [Fri, 12 Apr 2019 09:41:16 +0000 (12:41 +0300)]
Test separate channels as input and output

Test using the same image as input and output but keep
read and write channels separate to avoid self dependency.
Tests both color and depth/stencil formats.
Added VkImage data initialization framework functions used
by the new tests to generate input data.

New tests:

dEQP-VK.renderpass*.separate_channels.*

Components: Vulkan, Framework

VK-GL-CTS issue: 1154
Change-Id: I4a6e880dd31117b35d2f96900636c6a25cbfd67d

5 years agoAdd tests for EXT_discard_rectangles
Samuel Iglesias Gonsálvez [Fri, 5 Apr 2019 09:28:21 +0000 (11:28 +0200)]
Add tests for EXT_discard_rectangles

Added tests that check that the rendered image is correct for the the
combination of: the two different modes (inclusive, exclusive),
different number of rectangles (1, 2, 3, 4, 8, 16), dynamic discard
rectangles, scissor, dynamic scissor.

These tests don't check that the device groups work as expected.

New tests:

dEQP-VK.draw.discard_rectangles.*

Components: Vulkan
VK-GL-CTS issue: 1679

Change-Id: Idcfe2a9fc9113051fd72e51a0019e4247463cede

5 years agoReduce expected precision of RGB10A2 filtering
Graeme Leese [Tue, 9 Apr 2019 11:25:19 +0000 (12:25 +0100)]
Reduce expected precision of RGB10A2 filtering

The code in the YCbCr tests says that it was copied from the texture
explicit lod tests, but those tests give rgb10a2 a 'low' precision, not
'fp16'. Reduce the precision expected in the YCbCr tests.

Components: Vulkan
VK-GL-CTS Issue: 1731
Affects: dEQP-VK.ycbcr.*
         dEQP-VK.protected_memory.interaction.ycbcr.*

Change-Id: Ib0ae233fc271ded2f9987fe448dcd351e509a0c4

5 years agoFixes pipeline tests to check for maxSamplerLodBias
Matthew Netsch [Wed, 24 Apr 2019 16:02:30 +0000 (12:02 -0400)]
Fixes pipeline tests to check for maxSamplerLodBias

Components: Vulkan
VK-GL-CTS Issue: 1750

Affects:
dEQP-VK.pipeline.sampler.*

Change-Id: I1ed594f0eb5cf8e249eda5eb31b114f1bfb93fd2

5 years agox11_egl: use correct cmake variable name for GLES1 include path
Tapani Pälli [Tue, 22 Jan 2019 12:00:23 +0000 (14:00 +0200)]
x11_egl: use correct cmake variable name for GLES1 include path

This commit reverts most of 7b4a66f99 that included a hack to search
for include directory next to the library path. This was invalid since
used variable name PKG_GLES1_INCLUDE_DIRS is false, correct name is
GLES1_INCLUDE_DIRS which is properly set by the PKG_CHECK_MODULES call.

This change has been succesfully tested on Fedora and Ubuntu distros by
setting up a custom PKG_CONFIG_PATH.

VK-GL-CTS issue: 1573

Change-Id: I158d816d28f5bbf30288f6226bd5c9e30cf85285
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
5 years agox11_egl: use correct cmake variable name for GLES1 include path
Tapani Pälli [Tue, 22 Jan 2019 12:00:23 +0000 (14:00 +0200)]
x11_egl: use correct cmake variable name for GLES1 include path

This commit reverts most of 7b4a66f99 that included a hack to search
for include directory next to the library path. This was invalid since
used variable name PKG_GLES1_INCLUDE_DIRS is false, correct name is
GLES1_INCLUDE_DIRS which is properly set by the PKG_CHECK_MODULES call.

This change has been succesfully tested on Fedora and Ubuntu distros by
setting up a custom PKG_CONFIG_PATH.

VK-GL-CTS issue: 1573

Change-Id: I158d816d28f5bbf30288f6226bd5c9e30cf85285
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
5 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master
Alexander Galazin [Wed, 24 Apr 2019 12:50:12 +0000 (14:50 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master

Change-Id: I0684866a941390b02452ed7215feaf289ed0d274

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Wed, 24 Apr 2019 05:59:25 +0000 (07:59 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: I558e81a43c829769f170c4b26f3b290d88cf708e

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.2 into vk-gl-cts/vulkan-cts-1.1.3
Alexander Galazin [Tue, 23 Apr 2019 18:10:25 +0000 (20:10 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.2 into vk-gl-cts/vulkan-cts-1.1.3

Change-Id: If4d754edf8a5c942ebf51fcbb3a71d87bfbc7856

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.1 into vk-gl-cts/vulkan-cts-1.1.2
Alexander Galazin [Tue, 23 Apr 2019 17:13:22 +0000 (19:13 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.1 into vk-gl-cts/vulkan-cts-1.1.2

Change-Id: I578c423d59f3c21357dd6f448f68cee5b46a98d0

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.0 into vk-gl-cts/vulkan-cts-1.1.1
Alexander Galazin [Tue, 23 Apr 2019 16:47:53 +0000 (18:47 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.0 into vk-gl-cts/vulkan-cts-1.1.1

Change-Id: I4e639df46cf1f19a0bde8a061fa54d0bc1f7732d

5 years agoRoll Amber.
Dan Sinclair [Mon, 15 Apr 2019 19:55:23 +0000 (15:55 -0400)]
Roll Amber.

This Cl rolls the Amber version to pickup the removal of
CopyBitsOfValueToBuffer which is triggering alignment errors on certain
platforms.

d26ee22 Unify buffer sizes. (#465)
dd5b5e6 Convert ProbeSSBO to use Format objects. (#464)
ee7662c Add doc/engines.md (#463)
d84f541 Convert BufferCommand to use Format. (#462)
e8302e1 Dawn engine: refactor (#455)
5299cf3 Move Format up into base Buffer class (#461)
847634a Use Format instead of DatumType where possible. (#460)
e968f5c AmberScript and README updates (#459)
d4e543b Add Buffer::GetFormat (#458)
ae06ff8 Simplify Format::GetBytesize; rename to SizeInBytes (#457)
b322b20 [vulkan] Allow setting vertex buffer with a data buffer  (#450)
43248b2 [AmberScript] Add DERIVE_PIPELINE (#453)
5397303 Dawn engine: Adapt to latest Dawn API. (#454)
77b90e8 Update Dawn config file (#440)
6a39267 [vulkan] copy fb data onto device (#452)
7f72bbf [vulkan] Add a write framebuffer state; cleanup (#449)
a8acd2e Generate a Format from a DataBuffer. (#448)
da78976 [vulkan] TransferImage knows current layout and stage (#445)
1f834b8 [amberscript] Add REPEAT command (#443)
1806fc6 [amberscript] Fix BUFFER commands in examples (#447)
135cef4 Add EXPECT EQ_BUFFER command (#444)
c5afcf2 Add amber overview doc (#442)
3ba9e39 [vulkan] simplify image transition code. (#441)

VK-GL-CTS issue: 1735

Components: Framework

Affects: dEQP-VK.*

Change-Id: If13ab968d26aec30c7a5bf4ebde952e6947c00fa
(cherry picked from commit 532f56f72878c4b1ba4230debc90e0bafe51b4b5)

5 years agoAdd float 16 calculation into FMA tests
Boris Zanin [Thu, 11 Apr 2019 08:07:12 +0000 (10:07 +0200)]
Add float 16 calculation into FMA tests

Add one more calculation flavor into calculation
Float16 FMA tests.

Updates:
 * dEQP-VK.spirv_assembly.instruction.compute.float16.arithmetic*.fma
 * dEQP-VK.spirv_assembly.instruction.graphics.float16.arithmetic*.fma*

Components: Vulkan

VK-GL-CTS issue: 1730

Change-Id: Ic3c378a75d23afcafb0f6ce7052351d70d4d30bc
(cherry picked from commit 67a010acd731667bcf067652d11ba494f0afff95)

5 years agoCreate YCbCr with PREDEFINED layout
Juan A. Suarez Romero [Mon, 15 Apr 2019 16:39:12 +0000 (16:39 +0000)]
Create YCbCr with PREDEFINED layout

This fixes validation errors due mismatch with the expected initial
layout.

Affects:
* dEQP-VK.ycbcr.conversion.*

Components: Vulkan

VK-GL-CTS issue: 1737

Change-Id: If30f5ebb73529850c6bbafcd8e42bed6143864c3
(cherry picked from commit bcfe10d9aa5dbdb05296a5891e358b3581288845)

5 years agoCheck for geometry shader support when testing adjacency topologies
Chris Forbes [Mon, 15 Apr 2019 23:03:23 +0000 (16:03 -0700)]
Check for geometry shader support when testing adjacency topologies

Clipping tests would attempt to create pipelines using adjacency
topologies without checking for geometry shader support.

This seems to be a benign failure on most real implementations, but is a
VU violation.

Affects: dEQP-VK.clipping.clip_volume.*
VK-GL-CTS Issue: 1738

Change-Id: Iac6cfc6a669f2e533ce8ceaf4e7c2448b9fe4883
(cherry picked from commit 9c97d200e33e781ebb9f85df1195bcb84e013833)

5 years agoAdd hasDisplay check after createWsiDisplay throws
ygole [Wed, 27 Mar 2019 11:38:37 +0000 (17:08 +0530)]
Add hasDisplay check after createWsiDisplay throws

Commit b7efacd7b3 (Check if CTS has platform display for wsi-type) added
checks after createWsiDisplay failure to prevent reporting test failure
if native display for requested wsi-type isn't avaiable. This situation
can occur if vulkan driver supports multiple wsi extensions and only one
native display is available. Change did not fix all the places where
createWsiDisplay is called. The check is missing in file
vktImageMutableTests.cpp so fix it.

Affects: dEQP-VK.image.swapchain_mutable.*

Components: Vulkan, Framework

VK-GL-CTS issue: 1558

Change-Id: Iffc50a70ed48fb18c4d609c8d74b8e4615e4297d
(cherry picked from commit 984a7606ec93dfe90a17127357c7f0b0262bcd51)

5 years agoMove to a single Vulkan mustpass
Alexander Galazin [Thu, 11 Apr 2019 09:09:18 +0000 (11:09 +0200)]
Move to a single Vulkan mustpass

Components: Vulkan

VK-GL-CTS issue: 1719

Change-Id: I51f7930e4611ec979007702395d005d7ca3f425b

5 years agoAdd feature checks to spirv assembly tests
Toni Merilehti [Thu, 11 Apr 2019 10:18:14 +0000 (13:18 +0300)]
Add feature checks to spirv assembly tests

Adds missing checks for vertexPipelineStoresAndAtomics and
fragmentStoresAndAtomics core device features to spirv assembly
tests when required by the shaders.

Affects:

dEQP-VK.spirv_assembly.instruction.graphics.*

Components: Vulkan

VK-GL-CTS issue: 1725

Change-Id: I33af3faac948913f2f5ac7a4d385c323b00e5444
(cherry picked from commit c71c2e3a5afa19c68c0ad9a03d18c06d2997b2c3)

5 years agoAdd feature checks to spirv assembly tests
Toni Merilehti [Thu, 11 Apr 2019 10:18:14 +0000 (13:18 +0300)]
Add feature checks to spirv assembly tests

Adds missing checks for vertexPipelineStoresAndAtomics and
fragmentStoresAndAtomics core device features to spirv assembly
tests when required by the shaders.

Affects:

dEQP-VK.spirv_assembly.instruction.graphics.*

Components: Vulkan

VK-GL-CTS issue: 1725

Change-Id: I33af3faac948913f2f5ac7a4d385c323b00e5444

5 years agoAdd float 16 calculation into FMA tests
Boris Zanin [Thu, 11 Apr 2019 08:07:12 +0000 (10:07 +0200)]
Add float 16 calculation into FMA tests

Add one more calculation flavor into calculation
Float16 FMA tests.

Updates:
 * dEQP-VK.spirv_assembly.instruction.compute.float16.arithmetic*.fma
 * dEQP-VK.spirv_assembly.instruction.graphics.float16.arithmetic*.fma*

Components: Vulkan

VK-GL-CTS issue: 1730

Change-Id: Ic3c378a75d23afcafb0f6ce7052351d70d4d30bc

5 years agoCreate YCbCr with PREDEFINED layout
Juan A. Suarez Romero [Mon, 15 Apr 2019 16:39:12 +0000 (16:39 +0000)]
Create YCbCr with PREDEFINED layout

This fixes validation errors due mismatch with the expected initial
layout.

Affects:
* dEQP-VK.ycbcr.conversion.*

Components: Vulkan

VK-GL-CTS issue: 1737

Change-Id: If30f5ebb73529850c6bbafcd8e42bed6143864c3

5 years agoRoll Amber.
Dan Sinclair [Mon, 15 Apr 2019 19:55:23 +0000 (15:55 -0400)]
Roll Amber.

This Cl rolls the Amber version to pickup the removal of
CopyBitsOfValueToBuffer which is triggering alignment errors on certain
platforms.

d26ee22 Unify buffer sizes. (#465)
dd5b5e6 Convert ProbeSSBO to use Format objects. (#464)
ee7662c Add doc/engines.md (#463)
d84f541 Convert BufferCommand to use Format. (#462)
e8302e1 Dawn engine: refactor (#455)
5299cf3 Move Format up into base Buffer class (#461)
847634a Use Format instead of DatumType where possible. (#460)
e968f5c AmberScript and README updates (#459)
d4e543b Add Buffer::GetFormat (#458)
ae06ff8 Simplify Format::GetBytesize; rename to SizeInBytes (#457)
b322b20 [vulkan] Allow setting vertex buffer with a data buffer  (#450)
43248b2 [AmberScript] Add DERIVE_PIPELINE (#453)
5397303 Dawn engine: Adapt to latest Dawn API. (#454)
77b90e8 Update Dawn config file (#440)
6a39267 [vulkan] copy fb data onto device (#452)
7f72bbf [vulkan] Add a write framebuffer state; cleanup (#449)
a8acd2e Generate a Format from a DataBuffer. (#448)
da78976 [vulkan] TransferImage knows current layout and stage (#445)
1f834b8 [amberscript] Add REPEAT command (#443)
1806fc6 [amberscript] Fix BUFFER commands in examples (#447)
135cef4 Add EXPECT EQ_BUFFER command (#444)
c5afcf2 Add amber overview doc (#442)
3ba9e39 [vulkan] simplify image transition code. (#441)

VK-GL-CTS issue: 1735

Components: Framework

Affects: dEQP-VK.*

Change-Id: If13ab968d26aec30c7a5bf4ebde952e6947c00fa

5 years agoAdd hasDisplay check after createWsiDisplay throws
ygole [Wed, 27 Mar 2019 11:38:37 +0000 (17:08 +0530)]
Add hasDisplay check after createWsiDisplay throws

Commit b7efacd7b3 (Check if CTS has platform display for wsi-type) added
checks after createWsiDisplay failure to prevent reporting test failure
if native display for requested wsi-type isn't avaiable. This situation
can occur if vulkan driver supports multiple wsi extensions and only one
native display is available. Change did not fix all the places where
createWsiDisplay is called. The check is missing in file
vktImageMutableTests.cpp so fix it.

Affects: dEQP-VK.image.swapchain_mutable.*

Components: Vulkan, Framework

VK-GL-CTS issue: 1558

Change-Id: Iffc50a70ed48fb18c4d609c8d74b8e4615e4297d

5 years agoFix uninitialized variable reported by gcc 8.3
Alexander Galazin [Fri, 22 Mar 2019 09:06:18 +0000 (10:06 +0100)]
Fix uninitialized variable reported by gcc 8.3

VK-GL-CTS issue: 1656

Components: Vulkan

Affects: dEQP-VK.sparse_resources.*

Change-Id: I298c795b05c0c204f04970da7a923f797c4478b8
(cherry picked from commit 1dadbfc46128054db7679bb662eba16b20a241c1)

5 years agoFix element size for R16G16B16A16_UNORM.
Joan Orantos [Tue, 16 Apr 2019 13:42:20 +0000 (15:42 +0200)]
Fix element size for R16G16B16A16_UNORM.

The PlanarFormatDescription set for this format
was specifying 16 bytes instead of 8. This would
generate wrong input image on the test group
dEQP-VK.ycbcr.conversion.r16*

Components: Vulkan

Affects:
    dEQP-VK.ycbcr.conversion.r16*

VK-GL-CTS issue: 1740

Change-Id: Ic364128febaa3b85b9ade767049e4f4f3f894357

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master
Alexander Galazin [Tue, 16 Apr 2019 10:23:43 +0000 (12:23 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master

Change-Id: I14c5efc4e388eabae58094cd3a842b847b7f1f23

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Tue, 16 Apr 2019 10:23:41 +0000 (12:23 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: I9a6fa607958cf6864cec912aa0bfc6edf27224cf

5 years agoGL_ARB_enhanced_layouts: mind double types
Andres Gomez [Tue, 19 Feb 2019 00:57:03 +0000 (02:57 +0200)]
GL_ARB_enhanced_layouts: mind double types

Double precision types have specific restrictions and rules regarding
the use of the "component" layout qualifier. This change tests those
rules.

Additionally, since the new test is more generic and covers several
cases of the varying_exceeding_components test, simplified the latter.

Components: OpenGL

VK-GL-CTS issue: 725

Affects:

KHR-GL44.enhanced_layouts.varying_array_components
KHR-GL44.enhanced_layouts.varying_component_of_invalid_type
KHR-GL44.enhanced_layouts.varying_components
KHR-GL44.enhanced_layouts.varying_exceeding_components
KHR-GL44.enhanced_layouts.varying_invalid_value_component

Change-Id: Ie20a768b3002f82a1205db338b20ee28b58380f1

5 years agoFixed buffer memory type for protected test
Matthew Netsch [Fri, 5 Apr 2019 20:19:29 +0000 (16:19 -0400)]
Fixed buffer memory type for protected test

Components: Vulkan
VK-GL-CTS issue: 1727

Affects:
dEQP-VK.protected_memory.*

Change-Id: I07c5a57591f37aff558e3a634faa45ab33b2f776

5 years agoCheck for geometry shader support when testing adjacency topologies
Chris Forbes [Mon, 15 Apr 2019 23:03:23 +0000 (16:03 -0700)]
Check for geometry shader support when testing adjacency topologies

Clipping tests would attempt to create pipelines using adjacency
topologies without checking for geometry shader support.

This seems to be a benign failure on most real implementations, but is a
VU violation.

Affects: dEQP-VK.clipping.clip_volume.*
VK-GL-CTS Issue: 1738

Change-Id: Iac6cfc6a669f2e533ce8ceaf4e7c2448b9fe4883

5 years agoAdd tests for UPDATE_AFTER_BIND bindings
Nikita Bart [Thu, 28 Mar 2019 14:15:41 +0000 (15:15 +0100)]
Add tests for UPDATE_AFTER_BIND bindings

Bindings with VK_DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT_EXT bit
were not tested in "descriptorset_random" tests due to interaction with
BUFFER_DYNAMIC descriptor types.

Components: Vulkan

New tests: dEQP-VK.binding_model.descriptorset_random.*.uab.*

VK-GL-CTS issue: 1708

Change-Id: I74e64e40f3bc7594216bcfc1c421a8bffcb717d3

5 years agoMerge vk-gl-cts/opengl-es-cts-3.2.5 into vk-gl-cts/master
Alexander Galazin [Fri, 12 Apr 2019 12:18:51 +0000 (14:18 +0200)]
Merge vk-gl-cts/opengl-es-cts-3.2.5 into vk-gl-cts/master

Change-Id: I467c3060f325677fc16b7812e3af1beaae27fc1e

5 years agoVK_EXT_memory_budget and VK_EXT_memory_priority
Jeff Bolz [Fri, 12 Oct 2018 19:28:17 +0000 (14:28 -0500)]
VK_EXT_memory_budget and VK_EXT_memory_priority

For VK_EXT_memory_budget, this is a simple query and sanity check
of the values in the new structure. There's not a whole lot about
this extension that can really be tested, since it is intentionally
very implementation-dependent. But this may be useful to implementers.

For VK_EXT_memory_priority, add variants of the memory.binding tests
that vary the priority. There's nothing really functional to test
here except that things still work when a priority is set.

Components: Vulkan

New Tests:
dEQP-VK.api.info.device.memory_budget
dEQP-VK.memory.binding.priority*

VK-GL-CTS issue: 1688
VK-GL-CTS issue: 1689

Change-Id: I376d2513f772051ae86eb7e9baa22eee68e3d39d

5 years agoMerge vk-gl-cts/aosp-deqp-dev into vk-gl-cts/master
Alexander Galazin [Fri, 12 Apr 2019 08:57:25 +0000 (10:57 +0200)]
Merge vk-gl-cts/aosp-deqp-dev into vk-gl-cts/master

Change-Id: I8631d0dfb60efb33613a60cf65f13ce7884b38e1

5 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master
Alexander Galazin [Fri, 12 Apr 2019 07:20:26 +0000 (09:20 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/master

Change-Id: I64a440d0d38a6bcb10c6c88fec81c7811b4e4975

5 years agoAllow C99, C++11
Alexander Galazin [Fri, 5 Apr 2019 06:28:14 +0000 (08:28 +0200)]
Allow C99, C++11

Also fix issues reported by C++11.

Affects:
 * dEQP-VK.*
 * dEQP-EGL.*
 * dEQP-GL*.*

Components: Framework, Vulkan, OpenGL

VK-GL-CTS issue: 1723
VK-GL-CTS issue: 984

Change-Id: I85d41fb5a06a6dadfd86455308e30f68c03749b1

5 years agoAdd Transform Feedback tests triangle-strip-with-adjacency
Boris Zanin [Wed, 20 Mar 2019 18:03:29 +0000 (19:03 +0100)]
Add Transform Feedback tests triangle-strip-with-adjacency

Add tests to validate proper order of output in a transform feedback
buffer for VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY
primitive type.

Add tests:
 * dEQP-VK.transform_feedback.simple.triangle_strip_with_adjacency_*

Components: vulkan

VK-GL-CTS issue: 1587

Change-Id: I895d8e9127182a966d15060116b1041d92f7e59e
(cherry picked from commit 37dce5c88827b927c824dfe50ca0ccb5faa3b9f1)

5 years agoAdd Transform Feedback tests for builtin variables
Boris Zanin [Wed, 13 Feb 2019 18:31:25 +0000 (19:31 +0100)]
Add Transform Feedback tests for builtin variables

Tests driver ability to output builtin variables into XFB buffer.

Add tests:
 * dEQP-VK.transform_feedback.simple.xfb_*

Components: vulkan

VK-GL-CTS issue: 1350

Change-Id: I8f18cbfcf0895510a07f092634727764b929cc3b
(cherry picked from commit 2943705658104b349e7cfc9f039fb1b26c5a793e)