platform/upstream/VK-GL-CTS.git
3 years agoOutput depth image in case of failure
Samuel Iglesias Gonsálvez [Thu, 24 Sep 2020 10:15:23 +0000 (12:15 +0200)]
Output depth image in case of failure

Affects:

   dEQP-VK.draw.inverted_depth_ranges.*

Components: Vulkan
VK-GL-CTS issue: 2446

Change-Id: Ic60c321d8889638af71e5ed4828bfcd007a7e8f3

3 years agoCheck SparseResidency flag before OpImageSparseRead
Karolina Palka [Thu, 24 Sep 2020 14:49:29 +0000 (16:49 +0200)]
Check SparseResidency flag before OpImageSparseRead

This patch adds check if SpvCapabilitySparseResidency
is supported before doing SpvOpImageSparseRead

Affects:
dEQP-VK.image.mismatched_formats.sparse_image_read.*

Components: Vulkan

VK-GL-CTS issue: 2591

Change-Id: I98852842285d4df9008e7e2403a4680c81b6a9f1

3 years agoUpdate Vulkan headers
Alexander Galazin [Mon, 5 Oct 2020 07:43:21 +0000 (09:43 +0200)]
Update Vulkan headers

Components: Vulkan

Change-Id: I476905a4d715e98b3499efe83fb0861f2f1e4a57

3 years agoNotice of withdrawal of Vulkan CTS 1.2.0.x
Alexander Galazin [Sat, 3 Oct 2020 08:45:05 +0000 (10:45 +0200)]
Notice of withdrawal of Vulkan CTS 1.2.0.x

Components: Vulkan

Change-Id: Iecc87a7a4ea482e7a0be102c1b11e72dce5f10d6

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master
Alexander Galazin [Fri, 2 Oct 2020 16:32:58 +0000 (18:32 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master

Change-Id: Icdd0f8c4935129168a8bf7d1607fc26a7fac9e32

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4
Alexander Galazin [Fri, 2 Oct 2020 15:13:01 +0000 (17:13 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4

Change-Id: I0260b62c60b55364b6b0777c70ce605d36bda861

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3
Alexander Galazin [Fri, 2 Oct 2020 11:29:44 +0000 (13:29 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3

Change-Id: Ie884684e771f567171331f327cd6fa13f15c1fb3

3 years agoFix result checking of output location tests
Ari Suonpaa [Tue, 18 Aug 2020 12:45:29 +0000 (15:45 +0300)]
Fix result checking of output location tests

Output location tests were expecting bit accurate results
when comparing to reference values. However some of the
tests use lowp or mediump precision.  This change adds
some tolerance for the result checking. Also lowp variants
are removed as they acted identically to mediump ones.

VK-GL-CTS Issue: 2513
VK-GL-CTS Issue: 2510
VK-GL-CTS Issue: 2550

Affects:

dEQP-VK.draw.output_location.*

Components: Vulkan
Change-Id: I3d48832f3818431332421172ef97f4900e2679ed

3 years agoExperimental crash postmortem use-after-free test
Ralph Potter [Mon, 20 Jul 2020 10:07:48 +0000 (11:07 +0100)]
Experimental crash postmortem use-after-free test

Adds a tests to deliberately free a buffer before executing a compute
shader that accesses it for the purposes of deliberately triggering
device-loss.

This test is intended for experimental/investigative use by the crash
postmortem TSG, is expected to fail, and should not be included in
mustpass lists.

Added Tests:

dEQP-VK-experimental.postmortem.use_after_free.*

Components: Vulkan

Vulkan issue: 2255

Change-Id: Icb7f47a37e864932044343493057ef4882473b94

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2
Alexander Galazin [Fri, 2 Oct 2020 10:35:42 +0000 (12:35 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2

Change-Id: I2104e27164b15d2f66896b1c1c4f188fe8df83e4

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-1.2.1
Alexander Galazin [Fri, 2 Oct 2020 09:58:50 +0000 (11:58 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-1.2.1

Change-Id: Ia15f227ae78f00e0d142f0b2ce3d966d10a09cab

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/vulkan-cts-1.2.1
Alexander Galazin [Fri, 2 Oct 2020 09:15:55 +0000 (11:15 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/vulkan-cts-1.2.1

Change-Id: I4c86e4fe92acca4c4260ab43a492ace9f527f986

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Thu, 1 Oct 2020 11:24:44 +0000 (13:24 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: Id37d7b8198e8d5867e4b802e638eb1e0010c2351

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6
Alexander Galazin [Thu, 1 Oct 2020 10:02:06 +0000 (12:02 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6

Change-Id: I840b7caa71134a32ba49b484b716b97c31ace9ee

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5
Alexander Galazin [Thu, 1 Oct 2020 08:57:05 +0000 (10:57 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5

Change-Id: I04485faa2b85d5af689da6143b130e3c92bd9253

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4
Alexander Galazin [Thu, 1 Oct 2020 07:43:39 +0000 (09:43 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.3 into vk-gl-cts/vulkan-cts-1.1.4

Change-Id: Ic81486b5b158f0edf964d29a6e084a9c6e2dee00

3 years agoFixes multisample resolve sRGB cases
Matthew Netsch [Wed, 30 Sep 2020 16:27:25 +0000 (12:27 -0400)]
Fixes multisample resolve sRGB cases

CTS expects downsampling in linear space,
where spec says implementation dependent

Components: Vulkan
VK-GL-CTS Issue: 2584

Affects:
dEQP-VK.renderpass.suballocation.multisample_resolve.*_srgb*

Change-Id: I8512ef058b03fe55c5429d3add5d2f4dc890c663

3 years agoFix validation errors in subgroups tests
Graeme Leese [Thu, 10 Jan 2019 11:20:02 +0000 (11:20 +0000)]
Fix validation errors in subgroups tests

Some subgroups tests were attempting to create a descriptor pool of size
0, which is invalid. Instead, skip the whole construction of descriptor
sets since they aren't needed.

Components: Vulkan
Affects: dEQP-VK.subgroups.*.graphics.*

Change-Id: I5abedcc2360a0336c521aea855a9725b127c9a0f
(cherry picked from commit a887be07dd7b63ce89794af9f70f893dc2de5955)

3 years agoUpdate glslang, SPIR-V Tools and Headers
Alexander Galazin [Mon, 28 Sep 2020 11:07:26 +0000 (13:07 +0200)]
Update glslang, SPIR-V Tools and Headers

Change-Id: Ic18e8d56ea22256353bee952aa5aa081959600a7

3 years agoUpdate Vulkan headers
Alexander Galazin [Mon, 28 Sep 2020 08:28:01 +0000 (10:28 +0200)]
Update Vulkan headers

Components: Vulkan

Change-Id: I5201a8ce0fc604bad99fdcc4c2a2aa945e66ec2b

3 years agoMerge vk-gl-cts/github-master into vk-gl-cts/master
Alexander Galazin [Fri, 25 Sep 2020 09:13:55 +0000 (11:13 +0200)]
Merge vk-gl-cts/github-master into vk-gl-cts/master

Change-Id: Id08c5fcbaea1f9cee9671fa40e5490d000c38711

3 years agoMerge pull request #228 from robclark/fix-surfaceless-config
Alexander Galazin [Fri, 25 Sep 2020 09:12:48 +0000 (11:12 +0200)]
Merge pull request #228 from robclark/fix-surfaceless-config

platform/surfaceless: pick config's better

3 years agoAvoid gcc divide by zero in getEdgeVolumeClip
Mikko Tiusanen [Fri, 11 Sep 2020 09:19:22 +0000 (12:19 +0300)]
Avoid gcc divide by zero in getEdgeVolumeClip

Adjusted getEdgeVolumeClip equation to avoid divide by zero without
causing a meaningful change in the calculation. Fixes divide by zero when
compiled using the gcc toolset.

Affects:

dEQP-GLES2.functional.clipping.triangle_vertex.clip_three.*

Components: OpenGL ES

VK-GL-CTS issue: 2035

Change-Id: I359f0486d98bfe4c642679d11bec4c8704c72943

3 years agoAdd tests for KHR_copy_commands2
Jeff Leger [Tue, 30 Jun 2020 01:04:14 +0000 (21:04 -0400)]
Add tests for KHR_copy_commands2

New Tests:
dEQP-VK.api.copy_and_blit.copy_commands2.*

Affects:
dEQP-VK.api.copy_and_blit.*

Component: Vulkan

VK-GL-CTS issue: 2430

Change-Id: I447f518248b43d4fbe2a84b5de6ee3f1e5e2eaf0
(cherry picked from commit 713d656677d147086e7814dd3ecfafa4f41071c6)

3 years agoAdd tests for incompatible resolve attachments
Karolina Palka [Wed, 2 Sep 2020 12:09:59 +0000 (14:09 +0200)]
Add tests for incompatible resolve attachments

Testing special case where resolve attachments (including depth/stencil) are completely different

New tests:
dEQP-VK.renderpass.suballocation.multisample_resolve.*.compatibility_*
dEQP-VK.renderpass2.depth_stencil_resolve.image_2d_32_32.samples_2.*.compatibility_*

Components: Vulkan

VK-GL-CTS issue: 2225

Change-Id: Ic442da66413714131d040891d56a8819d4cd4ff4

3 years agoEnable more lines tests
Alexander Galazin [Fri, 11 Sep 2020 09:34:55 +0000 (11:34 +0200)]
Enable more lines tests

Components: Vulkan

Affects:

dEQP-VK.rasterization.interpolation.basic.lines_wide
dEQP-VK.rasterization.interpolation.projected.line_strip_wide
dEQP-VK.rasterization.flatshading.lines_wide
dEQP-VK.pipeline.multisample.*.primitive_point_1px
dEQP-VK.pipeline.multisample.*.primitive_point_1px_sparse

VK-GL-CTS issue: 1274

Change-Id: If6a3debf1bf1794ca9175fd2c5404df2891ffb85

3 years agoUpdate Amber
Alexander Galazin [Wed, 16 Sep 2020 07:12:43 +0000 (09:12 +0200)]
Update Amber

Components: Framework
Affects: dEQP-VK.*

Change-Id: I0bb5016b2ec063396cd797060e14d6de474b96af

3 years agoUpdate headers
Alexander Galazin [Mon, 21 Sep 2020 09:34:32 +0000 (11:34 +0200)]
Update headers

Components: Vulkan

Change-Id: Icfd9ec046c450a431e2723970b92a2a2a547dfd2

3 years agoMerge vk-gl-cts/github-master into vk-gl-cts/master
Alexander Galazin [Fri, 18 Sep 2020 09:07:54 +0000 (11:07 +0200)]
Merge vk-gl-cts/github-master into vk-gl-cts/master

Change-Id: I7dcae64a5618fbbed63da7bd8cd649add44d5e0a

3 years agoMerge pull request #227 from kusma/nearest-edge-8-bit-precision
Alexander Galazin [Fri, 18 Sep 2020 09:06:09 +0000 (11:06 +0200)]
Merge pull request #227 from kusma/nearest-edge-8-bit-precision

Lower precision required for texture-lookups

3 years agoIssues detected by synchronization validation layer fix
Michal Pawlowski [Fri, 4 Sep 2020 05:49:03 +0000 (07:49 +0200)]
Issues detected by synchronization validation layer fix

This commit fixes certain synchronization issues detected by synchronization validation layer.

Component: Vulkan

Affects:
dEQP-VK.api.image_clearing.core.clear_color_image.1d.optimal.remaining_array_layers_twostep.r4g4_unorm_pack8
dEQP-VK.pipeline.timestamp.transfer_tests.transfer_stage_with_copy_buffer_method
dEQP-VK.pipeline.dynamic_offset.compute.single_set.uniform_buffer.numcmdbuffers_1.sameorder.numdescriptorsetbindings_2.numdynamicbindings_1.numnondynamicbindings_0
dEQP-VK.spirv_assembly.instruction.graphics.cross_stage.basic_type.flat
dEQP-VK.glsl.builtin_var.fragdepth.point_list_d32_sfloat_multisample_2
dEQP-VK.synchronization.op.single_queue.event.write_fill_buffer_read_copy_buffer.buffer_16384
dEQP-VK.compute.basic.copy_ssbo_to_image_small
dEQP-VK.image.store.with_format.1d.r32g32b32a32_sfloat
dEQP-VK.image.qualifiers.coherent.1d.r32f
dEQP-VK.image.image_size.1d.readonly_32
dEQP-VK.multiview.depth.3_6_12_9_6_12_9_3_6_12_9_3
dEQP-VK.pipeline.push_descriptor.graphics.binding0_numcalls1_input_attachment
dEQP-VK.pipeline.cache.graphics_tests.vertex_stage_fragment_stage
dEQP-VK.ycbcr.format.g8_b8_r8_3plane_420_unorm.vertex_linear_disjoint
dEQP-VK.imageless_framebuffer.depth_stencil_resolve
dEQP-VK.renderpass.suballocation.attachment_allocation.input_output.*

Public issue: 217

Change-Id: Idaed4cad0a15e84ed3803566eb2f3e9493c2f7a1

3 years agoFix memory barriers in image_subresrouce tests
Graeme Leese [Mon, 7 Sep 2020 14:00:08 +0000 (15:00 +0100)]
Fix memory barriers in image_subresrouce tests

Having written the data from the CPU we need to flush the allocation,
not invalidate it.

Components: Vulkan
VK-GL-CTS issue: 2445
Affects: dEQP-VK.image.subresource_layout.*

Change-Id: I45e891e8476f2d4088ca9f7bb0e1923490579f43

3 years agoBump fence timeout in Amber test cases to infinity
Slawomir Cygan [Fri, 6 Dec 2019 13:36:11 +0000 (14:36 +0100)]
Bump fence timeout in Amber test cases to infinity

Components: Vulkan

VK-GL-CTS Issue: 2119

Affects: dEQP-VK.*   (only Amber test cases)

Change-Id: I5f363b7509a72e82dfcc4b3ad37891908a34a5cf

3 years agovulkan: Add temporary constant-data shader indexing tests.
Eric Anholt [Wed, 5 Aug 2020 22:17:21 +0000 (15:17 -0700)]
vulkan: Add temporary constant-data shader indexing tests.

Drivers often have a path for taking shader temps that are initialized
with constant data and uploading them through the UBO path instead of
as shader immediates (particularly for dynamic indexing).  Add some
shader indexing tests that try to hit that path.

New tests:

dEQP-VK.glsl.indexing.tmp_array.*const_write*

Change-Id: I1072d796d8b4244c109eb5e639a291a0c49ca29e
Components: Vulkan

3 years agoAdd transform feedback test with NULL offset array
Ari Suonpaa [Thu, 18 Jun 2020 12:36:03 +0000 (15:36 +0300)]
Add transform feedback test with NULL offset array

Added a variant of an existing transform feedback test where
counter buffers are provided for vkCmd[Begin/End]TransformFeedbackEXT
but offset array is set to NULL. In that case offsets of zero
should be assumed.

VK-GL-CTS Issue: 2313

New tests:

dEQP-VK.transform_feedback.simple.backward_dependency_no_offset_array

Components: Vulkan
Change-Id: I9d80228d1d2c74f1feeda8e46de5db525b7b5825

3 years agoFixes multisample resolve sRGB cases
Matthew Netsch [Thu, 17 Sep 2020 14:09:52 +0000 (10:09 -0400)]
Fixes multisample resolve sRGB cases

CTS expects downsampling in linear space,
where spec says implementation dependent

Components: Vulkan
VK-GL-CTS Issue: 2584

Affects:
dEQP-VK.renderpass.suballocation.multisample_resolve.*_srgb*

Change-Id: I9ab4ebf54e38c5c2cd1cc626dcf77f904d0e1e4d

3 years agoCoverage not correct for pixels on shared edges
Marcin Kańtoch [Tue, 15 Sep 2020 11:35:35 +0000 (13:35 +0200)]
Coverage not correct for pixels on shared edges

Added coverage check for the second "friend" triangle.

Components: Vulkan
VK-GL-CTS Issue: 2580

Affects:
dEQP-VK.rasterization.*

Change-Id: If30814ed81fb9b91ace4655c0ba50dfbcff7b37b

3 years agoFix small errors in external/openglcts/README.md
Jesse Hall [Mon, 23 Mar 2020 22:21:41 +0000 (15:21 -0700)]
Fix small errors in external/openglcts/README.md

Components: OpenGL
Change-Id: I0d0446fcf63045c07475d71d9c82286d70aad7de

3 years agoMerge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/master
Alexander Galazin [Fri, 11 Sep 2020 11:08:36 +0000 (13:08 +0200)]
Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/master

Change-Id: Icf8bc25da3aeb7d89e102f4510f33fb1c1efc5e7

3 years agoTweak matrix input values to avoid small determinants
Piers Daniell [Wed, 26 Aug 2020 00:08:19 +0000 (18:08 -0600)]
Tweak matrix input values to avoid small determinants

Modify the matrix test input values to better avoid
zero and close to zero determinants, which can produce
invalid inverse matrices.

Affects:

dEQP-GLES3.functional.shaders.matrix.*

Components: OpenGL

VK-GL-CTS issue: 2559

Change-Id: I2015e0f60dbe6271bc540f95dc6631928d38c108

3 years agoAdd coverage for uniform texel buffer SNORM formats
Ari Suonpaa [Wed, 26 Aug 2020 11:21:52 +0000 (14:21 +0300)]
Add coverage for uniform texel buffer SNORM formats

Also fixed comments in packed format tests.

VK-GL-CTS Issue: 2433

New Tests:

dEQP-VK.texture.texel_buffer.uniform.snorm.*

Components: Vulkan
Change-Id: I3fdaa7befa034d728b53029bd2a884219b6e7282

3 years agoTest OpVectorShuffle with index -1
Graeme Leese [Thu, 27 Aug 2020 10:21:37 +0000 (11:21 +0100)]
Test OpVectorShuffle with index -1

This is supposed to give a valid vector containing undefined values but
there were no tests checking this functionality.

Components: Vulkan
VK-GL-CTS issue: 2565
New test:
  dEQP-VK.spirv_assembly.instruction.compute.vector_shuffle.vector_shuffle

Change-Id: I4edc1a4d6c8a383aa8f31b335a625629b1a51ce2

3 years agoMerge vk-gl-cts/opengl-cts-4.6.0 into vk-gl-cts/master
Alexander Galazin [Fri, 11 Sep 2020 09:43:56 +0000 (11:43 +0200)]
Merge vk-gl-cts/opengl-cts-4.6.0 into vk-gl-cts/master

Change-Id: I55f22c0f9a865f2555bca29015f9c58c61b32ae6

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master
Alexander Galazin [Fri, 11 Sep 2020 08:46:37 +0000 (10:46 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master

Change-Id: Id8138712dcf8ae7779f2215402f1152580449c28

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4
Alexander Galazin [Thu, 10 Sep 2020 17:30:44 +0000 (19:30 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4

Change-Id: Ia92c224783e27c579310fe051b7acfd6967a37aa

3 years agoAllow Vulkan CTS 1.2.3.3
Alexander Galazin [Thu, 10 Sep 2020 13:19:02 +0000 (15:19 +0200)]
Allow Vulkan CTS 1.2.3.3

Components: Vulkan

Change-Id: Ie6292bd41374cddf73fe295a75c11640740d03d5

3 years agoAdd Imagination waiver #229
James Fitzpatrick [Wed, 17 Jun 2020 08:48:27 +0000 (09:48 +0100)]
Add Imagination waiver #229

Add the existing waiver on PowerVR cores related to snorm filtering to
the new waiver list.

This adds both of the existing test groups to the waiver along with the
newly introduced tests which hit this bug in the affected GPUs.

Components: Vulkan
VK-GL-CTS issue: 229
VK-GL-CTS issue: 2418
VK-GL-CTS issue: 2189

Change-Id: I15b5d5121fc0a4026944bc73d772c4d9cddc9031

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3
Alexander Galazin [Thu, 10 Sep 2020 16:25:52 +0000 (18:25 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3

Change-Id: I65c0b8f7c257881f2d559c91b4944fafa7664f99

3 years agoAllow Vulkan CTS 1.2.2.2
Alexander Galazin [Thu, 10 Sep 2020 13:09:33 +0000 (15:09 +0200)]
Allow Vulkan CTS 1.2.2.2

Components: Vulkan

Change-Id: Id7cef07b4e41eecbc3eeb6478199d49a18f5bef5

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2
Alexander Galazin [Thu, 10 Sep 2020 15:17:05 +0000 (17:17 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2

Change-Id: Ibd506d17881b6ba41439f44bb314e68b27c20637

3 years agoTest imported signaled sync fd for VkSemaphore
Lionel Landwerlin [Wed, 5 Aug 2020 15:00:37 +0000 (18:00 +0300)]
Test imported signaled sync fd for VkSemaphore

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

Components: Vulkan

Change-Id: I86937f57d580f62a0bae4f2d06ee28057ca0e27e

3 years agoAllow Vulkan CTS 1.2.1.2
Alexander Galazin [Thu, 10 Sep 2020 13:07:34 +0000 (15:07 +0200)]
Allow Vulkan CTS 1.2.1.2

Components: Vulkan

Change-Id: Ibc9f72ef89e85469c2e54a74b5cf80367ad5deed

3 years agoMake pipeline destruction exception aware in subgroups tests
Slawomir Cygan [Thu, 20 Aug 2020 15:15:24 +0000 (17:15 +0200)]
Make pipeline destruction exception aware in subgroups tests

This fixes a leak of pipelines, when exception occurs before the pipeline
is manually deleted. This may occur on device lost, etc.

VK-GL-CTS Issue: 2557

Components: Vulkan

Change-Id: I7c89914f264373464c7d8b8bf527cd3a05fa65bc
Affects: dEQP-VK.subgroups.*

3 years agoCheck support for sampleRateShading
Vihanakangas [Wed, 19 Aug 2020 11:54:58 +0000 (14:54 +0300)]
Check support for sampleRateShading

Some multisample tests attempted to use sampleRateShading without
checking for support.

Affects:

dEQP-VK.pipeline.multisample.mixed_count.*
dEQP-VK.pipeline.multisample.variable_rate.*
dEQP-VK.pipeline.multisample_shader_builtin.write_sample_mask.*

Components: Vulkan

VK-GL-CTS issue: 2532

Change-Id: Ieaeddc51183b005a78fd3cc847b767a8a5683b44

3 years agomove robust_buffer_access_behavior tests to NoContext group
Daniel Koch [Wed, 9 Sep 2020 01:46:16 +0000 (21:46 -0400)]
move robust_buffer_access_behavior tests to NoContext group

VK-GL-CTS Issue: 2575

Cribbed some ideas from the glcRobustnessTests.cpp tests which are already in the
NoContext group.
Didn't really want to touch the ES version of the tests on this old GL-specific branch
but it was necessary to make them compile. This also necessitated removing the skips
for these tests (since they no longer exist as named). I don't expect anyone cares about
the ES tests here, but they do work now.

Components: Framework, OpenGL, OpenGL ES

Affects:
KHR-GL4{3456}.robust_buffer_access_behavior.* (removed)
KHR-GLES32.robust.robust_buffer_access_behavior.* (removed)
KHR-NoContext.gl43.robust_buffer_access_behavior.* (added)
KHR-NoContext.es32.robust_buffer_access_behavior.* (added)

Change-Id: If5198e05863547e79074ca15f48ae16b969040f4

3 years agoUpdate Vulkan headers
Alexander Galazin [Mon, 7 Sep 2020 13:03:00 +0000 (15:03 +0200)]
Update Vulkan headers

Components: Vulkan

Change-Id: Ie9a7b53fe36a4b4add3ff8165fb382ba1dffc482

3 years agoFix mustpass
Alexander Galazin [Sun, 6 Sep 2020 08:31:08 +0000 (10:31 +0200)]
Fix mustpass

Components: AOSP, Vulkan

Change-Id: I2815f5adba18b491b79d128919dff6d246111378

3 years agoMemory allocation size fix.
Michal Pawlowski [Mon, 24 Aug 2020 14:26:56 +0000 (16:26 +0200)]
Memory allocation size fix.

This commit fixes an issue where wrong memory size was used for allocation.

Affects:
dEQP-VK.memory.allocation.*

Component: Vulkan

Public issue: 224

Change-Id: I2488d9427197f1f4a40bfeee863e6b0bc2cf889e

3 years agoTests for sign handling in integer operations
Mikko Tiusanen [Thu, 30 Jul 2020 12:06:42 +0000 (15:06 +0300)]
Tests for sign handling in integer operations

Added tests to verify that integer operations are not sensitive to operand sign.
Includes tests for most built-in instructions and the glsl extension.

New tests:

dEQP-VK.spirv_assembly.instruction.compute.signed_op.*

Components: Vulkan

VK-GL-CTS issue: 2382

Change-Id: I71b4b1851b87ada137acb83498bf2a2de2ace698

3 years agoCheck output depth in inverted depth range tests
Ricardo Garcia [Tue, 28 Jul 2020 16:38:22 +0000 (18:38 +0200)]
Check output depth in inverted depth range tests

This commit makes inverted depth range tests use a depth/stencil
attachment and checks values stored in it are correct after rendering,
which is specially important in the depth clamping case.

In addition, several magic constants and values have been given a name
and declared at the top, among other minor fixes.

tcu::dsThresholdCompare() has been fixed to use absolute values when
checking if depth value differences are above the given threshold. This
function is used in some copy and blitting tests.

Affected tests:
dEQP-VK.draw.inverted_depth_ranges.*
dEQP-VK.api.copy_and_blit.*.buffer_to_depthstencil.*

Components: Framework, Vulkan
VK-GL-CTS issue: 2446

Change-Id: I50568dce77d8bbf01ab50fd6e96e8aef7d1df685

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master
Alexander Galazin [Thu, 3 Sep 2020 18:55:09 +0000 (20:55 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master

Change-Id: I0876c458b707cae19b5ba697ecc8908533407f3f

3 years agoFix regression in diff_attachments test
Slawomir Cygan [Fri, 28 Aug 2020 19:39:14 +0000 (21:39 +0200)]
Fix regression in diff_attachments test

Fix issue introduced in ce82fe2a: use same image layout for
barrier newLayout and subsequent renderpass initialLayout.

Components: Vulkan

VK-GL_CTS Issue: 2568

Change-Id: I3118a7a2b1c7548fe669484f24414648b4cd246c
Affects: dEQP-VK.pipeline.framebuffer_attachment.diff_attachments_*

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4
Alexander Galazin [Thu, 3 Sep 2020 17:42:12 +0000 (19:42 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4

Change-Id: I90dc6c20253f621e43270d147c0b76dbbef5677d

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3
Alexander Galazin [Thu, 3 Sep 2020 16:26:57 +0000 (18:26 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3

Change-Id: I90728376b5de3d1b84a0138a3fa3d68628ca19f3

3 years agoplatform/surfaceless: pick config's better
Rob Clark [Wed, 2 Sep 2020 21:40:27 +0000 (14:40 -0700)]
platform/surfaceless: pick config's better

We really want to have a matching config.  Otherwise we end up (for
example) picking 10_10_10_2 when reference renderer is using 5_6_5.

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2
Alexander Galazin [Thu, 3 Sep 2020 14:59:11 +0000 (16:59 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2

Change-Id: Ia8c5685499d3f1357117f15b14f92e93b4bca866

3 years agoFixes missing timeline semaphore checks
Matthew Netsch [Wed, 2 Sep 2020 17:17:16 +0000 (13:17 -0400)]
Fixes missing timeline semaphore checks

Components: Vulkan
VK-GL-CTS Issue: 2572

Affects:
dEQP-VK.synchronization.op.multi_queue.*
dEQP-VK.synchronization.smoke.timeline_semaphores

Change-Id: I9829ae9f09ca3a45c6ce7a6aad5ad21c6caad3cd

3 years agoFixes sparse snorm tests
Matthew Netsch [Wed, 2 Sep 2020 17:37:50 +0000 (13:37 -0400)]
Fixes sparse snorm tests

Test using values outside of defined
snorm range.

Components: Vulkan
VK-GL-CTS Issue: 2573

Affects:
dEQP-VK.sparse_resources.mipmap_sparse_residency.*snorm*

Change-Id: Id0027c252ea348dd4756809b280d92072219975c

3 years agoAdd formats support in nearest_edge tests
Ancheng Qiao [Mon, 17 Aug 2020 07:02:11 +0000 (15:02 +0800)]
Add formats support in nearest_edge tests

Add RGBA_10_10_10_2 and RGBA_F16 support to pixelFormatMap

Affects:

KHR-GLES32.core.nearest_edge.*

Components: OpenGL

VK-GL-CTS issue: 2547

Change-Id: I6a96f4e5c87967b06bbfed1566df7e784009ad50
(cherry picked from commit dea39590d12bf91ac37e66460a0aa908c5816216)

3 years agoFixes timeline sempahore queue flags
Matthew Netsch [Wed, 2 Sep 2020 17:09:15 +0000 (13:09 -0400)]
Fixes timeline sempahore queue flags

Components: Vulkan
VK-GL-CTS Issue: 2571

Affects:
dEQP-VK.synchronization.signal_order.timeline_semaphore.*

Change-Id: Ibba5d7ac7279cb87a53433ef4c04b57050629efb

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master
Alexander Galazin [Wed, 2 Sep 2020 14:52:49 +0000 (16:52 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master

Change-Id: I7cb1bf89d66207b489a97960c47d2056e80ce4bd

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4
Alexander Galazin [Wed, 2 Sep 2020 14:52:03 +0000 (16:52 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4

Change-Id: Ided9a1e3f0c6a6bd61b493748608a9fa0b04d955

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3
Alexander Galazin [Wed, 2 Sep 2020 14:52:01 +0000 (16:52 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3

Change-Id: I6e366f7bdde3333aea7f130a4d4d918fe2b48187

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2
Alexander Galazin [Wed, 2 Sep 2020 14:51:58 +0000 (16:51 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2

Change-Id: Iab4d5330b41e5d237cae5eb572cdc18035f20280

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-1.2.1
Alexander Galazin [Wed, 2 Sep 2020 14:51:55 +0000 (16:51 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-1.2.1

Change-Id: I96350d6395f5f21a2d33e74ecd153eac1b420bc9

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/vulkan-cts-1.2.1
Alexander Galazin [Wed, 2 Sep 2020 14:51:55 +0000 (16:51 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/vulkan-cts-1.2.1

Change-Id: Ia8467b7749d07e2f73b8aaef4c9a51a8b7789495

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6
Alexander Galazin [Wed, 2 Sep 2020 14:51:52 +0000 (16:51 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6

Change-Id: I19b5ee4378122e348e1d1fa427e0322c0900a94b

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Wed, 2 Sep 2020 14:51:50 +0000 (16:51 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: Ib36fe69650d2c93592c3d1ea48d5871326871bae

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5
Alexander Galazin [Wed, 2 Sep 2020 14:51:49 +0000 (16:51 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5

Change-Id: Iea4251d6635a9fa68f0426714641acd50f87e166

3 years agoRevert back to libpng 1.6.27
Alexander Galazin [Wed, 2 Sep 2020 10:33:43 +0000 (12:33 +0200)]
Revert back to libpng 1.6.27

Components: Framework

Change-Id: I6576aeff8d0a1c9375f829518cb4035c53af5e82
(cherry picked from commit f3b873529b8f1b62e8a79055045c1a368ce21ea4)

3 years agoRevert back to libpng 1.6.27
Alexander Galazin [Wed, 2 Sep 2020 10:33:43 +0000 (12:33 +0200)]
Revert back to libpng 1.6.27

Components: Framework

Change-Id: I6576aeff8d0a1c9375f829518cb4035c53af5e82
(cherry picked from commit f3b873529b8f1b62e8a79055045c1a368ce21ea4)

3 years agoLower precision required for texture-lookups
Erik Faye-Lund [Tue, 1 Sep 2020 16:04:25 +0000 (18:04 +0200)]
Lower precision required for texture-lookups

The KHR-GL33.nearest_edge.offset_right test uses an offset of 0.499 to
avoid sampling to close to the edge for rounding issues. This means that
texture sampling requires 9 or more bits of fractional precision. But
some hardware only provides 8 bits of precision, which is what D3D12
requires.

So let's instead calculate this value a bit more carefully, as follows:

0.5 - 2^-8

Components: OpenGL

Affects tests:
KHR-GL33.nearest_edge.offset_right

Fixes: https://github.com/KhronosGroup/VK-GL-CTS/issues/225

3 years agoRevert back to libpng 1.6.27
Alexander Galazin [Wed, 2 Sep 2020 10:33:43 +0000 (12:33 +0200)]
Revert back to libpng 1.6.27

Components: Framework

Change-Id: I6576aeff8d0a1c9375f829518cb4035c53af5e82

3 years agoAdd a batch of GraphicsFuzz tests
Alastair Donaldson [Fri, 17 Jul 2020 11:53:46 +0000 (12:53 +0100)]
Add a batch of GraphicsFuzz tests

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.spv-access-chains
dEQP-VK.graphicsfuzz.spv-composite-phi
dEQP-VK.graphicsfuzz.spv-composite2
dEQP-VK.graphicsfuzz.spv-composites
dEQP-VK.graphicsfuzz.spv-copy-object
dEQP-VK.graphicsfuzz.spv-dead-break-and-unroll
dEQP-VK.graphicsfuzz.spv-declare-bvec4
dEQP-VK.graphicsfuzz.spv-null-in-phi-and-unroll

Change-Id: I5229fbb25871948318461875b2786e319bd73bc9

3 years agoAdd coverage for negative float to clear color values
Mikko Tiusanen [Mon, 8 Jun 2020 07:14:57 +0000 (10:14 +0300)]
Add coverage for negative float to clear color values

Added tests for clamping of negative clear color values to
valid range in image and color attachment clear tests for
image formats with unsigned fixed point color channels.

New tests:

dEQP-VK.api.image_clearing.core.clear_color_image.*_clamp_input
dEQP-VK.api.image_clearing.core.clear_color_attachment.*_clamp_input

Components: Vulkan
VK-GL-CTS Issue: 2360

Change-Id: Ie8b01105e34769b0840068ed8439835a8b87be7c

3 years agoExecute the graphics/compute pipeline
Vihanakangas [Tue, 18 Aug 2020 07:54:53 +0000 (10:54 +0300)]
Execute the graphics/compute pipeline

Execute graphics/compute pipeline to test descriptor
set layout lifetime.

Affects:
dEQP-VK.api.descriptor_set.descriptor_set_layout_lifetime.*

Components: Vulkan

VK-GL-CTS issue: 2325

Change-Id: I1922d37a2a672a04135b4b403d67ba76a78389bd

3 years agoAdd formats support in nearest_edge tests
Ancheng Qiao [Mon, 17 Aug 2020 07:02:11 +0000 (15:02 +0800)]
Add formats support in nearest_edge tests

Add RGBA_10_10_10_2 and RGBA_F16 support to pixelFormatMap

Affects:

KHR-GLES32.core.nearest_edge.*

Components: OpenGL

VK-GL-CTS issue: 2547

Change-Id: I6a96f4e5c87967b06bbfed1566df7e784009ad50

3 years agoExperimental crash postmortem shader timeout test
Ralph Potter [Mon, 20 Jul 2020 10:07:48 +0000 (11:07 +0100)]
Experimental crash postmortem shader timeout test

Adds a set of tests to execute a compute shader containing large
nested loops for the purposes of deliberately triggering timeouts and
device-loss.

This test is intended for experimental/investigative use by the crash
postmortem TSG, is expected to fail, and should not be included in
mustpass lists.

Added Tests:

dEQP-VK-experimental.postmortem.shader_timeout.*

Components: Vulkan

Vulkan issue: 2255

Change-Id: Ie4272d48d523c50a18c337447b16c36df7bd9bed

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master
Alexander Galazin [Fri, 28 Aug 2020 19:47:55 +0000 (21:47 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master

Change-Id: Ie2a63dbf107ed0d976aabc1a0b6fada71bcb0cbd

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4
Alexander Galazin [Fri, 28 Aug 2020 19:47:53 +0000 (21:47 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4

Change-Id: I67f0624c98b8e04d313db207d3174cfd1f9bd2c4

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3
Alexander Galazin [Fri, 28 Aug 2020 19:47:51 +0000 (21:47 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3

Change-Id: Ic59337f761fdea080f215f93a9f773b1ec0fac19

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2
Alexander Galazin [Fri, 28 Aug 2020 19:47:49 +0000 (21:47 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.1 into vk-gl-cts/vulkan-cts-1.2.2

Change-Id: I60e4e39fe689917fbd262c3d3502c08577b7cd75

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-1.2.1
Alexander Galazin [Fri, 28 Aug 2020 19:47:47 +0000 (21:47 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.0 into vk-gl-cts/vulkan-cts-1.2.1

Change-Id: I7819afa5a0f79fa9859828376c59273bee3ab120

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/vulkan-cts-1.2.1
Alexander Galazin [Fri, 28 Aug 2020 19:47:47 +0000 (21:47 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.6 into vk-gl-cts/vulkan-cts-1.2.1

Change-Id: I79af85ae37015656853e9f12f9b1beefe0a1df8f

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6
Alexander Galazin [Fri, 28 Aug 2020 19:47:43 +0000 (21:47 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.1.6

Change-Id: I39a6bf72421c7adc0e28469622fe6880d8b54c48

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0
Alexander Galazin [Fri, 28 Aug 2020 19:47:42 +0000 (21:47 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.5 into vk-gl-cts/vulkan-cts-1.2.0

Change-Id: Ib748d52d82158a63ba3b79a528bcb54276e1df57

3 years agoAdd a batch of GraphicsFuzz tests
Paul Thomson [Thu, 20 Aug 2020 15:21:40 +0000 (16:21 +0100)]
Add a batch of GraphicsFuzz tests

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.stable-quicksort-max-value-as-index
dEQP-VK.graphicsfuzz.stable-quicksort-for-loop-with-injection
dEQP-VK.graphicsfuzz.stable-quicksort-if-false-else-return

Change-Id: Icf1e943af61c9bf3e2a194a1f269a7f0101718be

3 years agoAdded test for reusing query handle
Jari Komppa [Thu, 6 Aug 2020 10:52:31 +0000 (13:52 +0300)]
Added test for reusing query handle

Added a test which uses a query handle with
GL_TIMESTAMP, deletes it, allocates a new handle
(which is assumed to be the same as previous)
and uses the handle for something else.

Components: OpenGL
VK-GL-CTS issue: 2523
New test: KHR-GL45.direct_state_access.queries_reuse

Change-Id: I7df01fd2b7d6a2ea1530d954313ade831be7b08c

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master
Alexander Galazin [Fri, 28 Aug 2020 09:41:48 +0000 (11:41 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/master

Change-Id: I06e1adf1dd877a3048c59b2faebb91875db72145

3 years agoMerge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5
Alexander Galazin [Fri, 28 Aug 2020 09:27:36 +0000 (11:27 +0200)]
Merge vk-gl-cts/vulkan-cts-1.1.4 into vk-gl-cts/vulkan-cts-1.1.5

Change-Id: I32ee9cf4f1a17df56e76e36d57490aa66a20e972