platform/upstream/VK-GL-CTS.git
3 years agoUpdate bottom AS's addresses during top AS deserialization
michal_jakubek [Wed, 12 May 2021 08:53:39 +0000 (10:53 +0200)]
Update bottom AS's addresses during top AS deserialization

SerialStorage class has been adorned with an additional constructor
which allows to serialize or deserialize a deep copy of top-level
acceleration structure, it means top-level AS together with bottom-level
acceleration structures that it owns. In other words it reconstructs all
stuff that has been stored during serialization process.
A deserializing from SerialStorage created this way updates bottom-level
acceleration structure addresses in the top-level AS's header.

New tests:
dEQP-VK.ray_tracing_pipeline.acceleration_structures.header_bottom_address.*

Components: Vulkan

VK-GL-CTS issue: 2830

Change-Id: I2e92e6a83dc9dcba67fa74b12fbfcafb4ae4c0c6

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master
Alexander Galazin [Thu, 1 Jul 2021 16:14:03 +0000 (18:14 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master

Change-Id: Ie5ff780b4e0951acc82541cdd7a914e892789f8f

3 years agoHandle vkGetDeviceAccelerationStructureCompabilityKHR function.
michal_jakubek [Fri, 16 Apr 2021 09:09:43 +0000 (11:09 +0200)]
Handle vkGetDeviceAccelerationStructureCompabilityKHR function.

New tests:
dEQP-VK.ray_tracing_pipeline.acceleration_structures.device_compability_khr.*

Components: Vulkan

VK-GL-CTS issue: 2822

Change-Id: Iaf8556f44942d44bda19a104fc3c393b8101201e

3 years agoDrop subgroup size requirement for uniform control
Graeme Leese [Thu, 17 Sep 2020 17:47:23 +0000 (18:47 +0100)]
Drop subgroup size requirement for uniform control

The uniform control tests were using a required subgroup size without
checking for support. In fact, the only requirement is that the two
shaders in each test run with the same subgroup size. This is guaranteed
for all pipelines unless the varying size feature is enabled, so the
required subgroup size is not needed.

Components: Vulkan
VK-GL-CTS issue: 2576
Affects: dEQP-VK.subgroups.subgroup_uniform_control_flow.*control.*

Change-Id: Id1bf77a040ca6183b1ce237ae5f3bcda909c716c
(cherry picked from commit dbd42247ae8f885470fde4dbb3efccdb8c2e1134)

3 years agoCheck support for triangle fan primitive topology on rasterization tests
Samuel Iglesias Gonsálvez [Thu, 24 Jun 2021 09:48:16 +0000 (11:48 +0200)]
Check support for triangle fan primitive topology on rasterization tests

If VK_KHR_portability_subset is supported, check for triangle fan
support in the tests that use that primitive topology.

Component: Vulkan
Fix issue: KhronosGroup#246
VK-GL-CTS issue: 2978

Affected test:
   dEQP-VK.rasterization.*triangle_fan

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Change-Id: I98a4ab5caee2bf6f07c610822b8166b3a1803e52

3 years agoRevert initial layout for depth/stencil attachment in makeRenderPass
Boris Zanin [Wed, 2 Jun 2021 11:06:00 +0000 (13:06 +0200)]
Revert initial layout for depth/stencil attachment in makeRenderPass

Return back previous initial depth/stencil attachment
layout, i.e. set it to
VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL only
if loadOperation is VK_ATTACHMENT_LOAD_OP_LOAD.
Otherwise keep it undefined.

Setting vast range of affected tests, because it is
hard to determine which of the tests are using
affected by this function.

Affected tests:
 * dEQP-VK.*

Components: Framework

VK-GL-CTS public issue: 272

Change-Id: Ie96c8125144904fde5e2db6294f52947ff979424

3 years agoAdd a batch of GraphicsFuzz coverage tests
Antto Mäkinen [Mon, 7 Jun 2021 13:13:05 +0000 (16:13 +0300)]
Add a batch of GraphicsFuzz coverage tests

This commit adds a batch of GraphicsFuzz coverage tests.

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.cov-apfloat-module-small-number
dEQP-VK.graphicsfuzz.cov-determinant-uninitialized-matrix-never-chosen
dEQP-VK.graphicsfuzz.cov-divide-matrix-transpose-by-constant
dEQP-VK.graphicsfuzz.cov-fragcoord-bitwise-not
dEQP-VK.graphicsfuzz.cov-function-with-nested-loops-called-from-nested-loops
dEQP-VK.graphicsfuzz.cov-loop-break-floor-nan-never-executed
dEQP-VK.graphicsfuzz.cov-missing-return-value-function-never-called
dEQP-VK.graphicsfuzz.cov-modulo-zero-never-executed
dEQP-VK.graphicsfuzz.cov-read-matrix-push-constant
dEQP-VK.graphicsfuzz.cov-reinitialize-matrix-after-undefined-value
dEQP-VK.graphicsfuzz.cov-sampler-as-function-argument
dEQP-VK.graphicsfuzz.cov-transpose-multiply
dEQP-VK.graphicsfuzz.cov-trunc-fract-always-zero
dEQP-VK.graphicsfuzz.cov-uninitialized-values-passed-to-function-never-executed
dEQP-VK.graphicsfuzz.cov-unused-access-past-matrix-elements

Change-Id: I06f80169893fcc92d154d0da386568a177416426

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6
Alexander Galazin [Thu, 1 Jul 2021 15:12:58 +0000 (17:12 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6

Change-Id: Iffe181f31ff661ead2142e7e7f0abb314bf1a2e1

3 years agoFix semaphore leak in image atomic operations test
Sławomir Cygan [Fri, 25 Jun 2021 14:08:23 +0000 (16:08 +0200)]
Fix semaphore leak in image atomic operations test

The class 'Image', being base class for `SparseImage` class needs to be
marked as virtual, so objects of SparseImage type can be owned and
destroyed through a pointer of `Image` type.  Without that the implicit
destructor of `SparseImage` class is never called.

As SparseImage class has a semaphore member, this fixes the
semaphore VK object leak.

Components: Vulkan

VK-GL-CTS Issue: 2981

Change-Id: Ice24f7018cf9144f4c1adbb8987b730d5f1ca2aa
Affects: dEQP-VK.image.atomic_operations.*

3 years agoFix use of binary semaphore in signaled state
Lars-Ivar Hesselberg Simonsen [Fri, 23 Apr 2021 10:04:44 +0000 (12:04 +0200)]
Fix use of binary semaphore in signaled state

Vulkan spec specifies that binary semaphore waits and signals should
occur in discrete 1:1 pairs.

This change ensures that the binary semaphore signaled by
synchronizationWrapper[SECOND] is waited on before being used again,
which resolves the corresponding validation layer error.

In addition, the change fixes an issue where the second submission pair
did not correctly swap semaphore info.

Components: Vulkan

Affects:
dEQP-VK.synchronization.basic.binary_semaphore.multi_queue
dEQP-VK.synchronization.basic.binary_semaphore.multi_queue_typed
dEQP-VK.synchronization.basic.timeline_semaphore.multi_queue

VK-GL-CTS Issue: 2910

Change-Id: Id2fb2211a43150e3acb5c07dd6c205c7a42296d5
(cherry picked from commit a017db3c0d1fbf89f30253254d57fb869f57a430)

3 years agoFix compilation issue in float_controls
Piotr Byszewski [Wed, 30 Jun 2021 12:03:40 +0000 (14:03 +0200)]
Fix compilation issue in float_controls

Two assertions in float_controls tests used conditions of type:
(x!=a || x!=b) which are always true and started triger compilation
errors on some platforms.

Components: Vulkan

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

Change-Id: I2df613acaf2cc089df29cdc8172d50f3174c6456

3 years agoAdd sample decorator to interpolation tests
Jari Komppa [Thu, 25 Mar 2021 14:09:44 +0000 (16:09 +0200)]
Add sample decorator to interpolation tests

Adds the sample decorator to tests that compare
other interpolator decorations.

Affects:
dEQP-VK.draw.multiple_interpolation.*

Components: Vulkan
VK-GL-CTS issue: 2733

Change-Id: I6964f9c8595dd616da22ba42c974676c864e9e8a

3 years agoAdd VK_EXT_device_drm_properties tests
James Jones [Fri, 8 Jan 2021 17:53:43 +0000 (09:53 -0800)]
Add VK_EXT_device_drm_properties tests

Verifies the basic API functionality works by
locating the device nodes associated with a Vulkan
device by matching them against the major and
minor device IDs reported by the extension.

Rather than assume the location of DRM device
nodes on the filesystem, these tests look them up
using libdrm's drmGetDevices[2]() function. This
requires some supporting code to properly load the
libraries, but should be more portable than simply
walking /dev/dri/*.

Components: Vulkan

New tests:

dEQP-VK.api.device_drm_properties.*

Change-Id: If9436e1595ad1132d5f542629c372a02fc3ed9e2

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master
Alexander Galazin [Wed, 30 Jun 2021 09:51:11 +0000 (11:51 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master

Change-Id: I458f9b2ab7d0aa30c4e04228605934da9345ce36

3 years agoMerge vk-gl-cts/opengl-cts-4.6.1 into vk-gl-cts/master
Alexander Galazin [Wed, 30 Jun 2021 09:04:21 +0000 (11:04 +0200)]
Merge vk-gl-cts/opengl-cts-4.6.1 into vk-gl-cts/master

Change-Id: I9aa118f273dc5ea3eb65f16c40a47b3d9a658574

3 years agoAdd uniform control flow extension to allowed list
Graeme Leese [Tue, 29 Jun 2021 16:03:53 +0000 (17:03 +0100)]
Add uniform control flow extension to allowed list

Components: Vulkan
Affects: dEQP-VK.info.device_extensions
Change-Id: I2fe13e778dd160ce0fd842ccddc9ed8f1d129772

3 years agoAdd VK_EXT_multi_draw tests
Ricardo Garcia [Thu, 10 Jun 2021 09:55:16 +0000 (11:55 +0200)]
Add VK_EXT_multi_draw tests

This commits adds a new test group with VK_EXT_multi_draw tests. The new
tests check the new API functions, the DrawIndex builtin and several
combinations of instance counts, strides, vertex offsets and number of
batched draw calls.

New tests:
dEQP-VK.draw.multi_draw.*

Affected tests:
dEQP-VK.info.device_mandatory_features

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

Change-Id: Ifa6a92bd34c9f3509e82f6c346cc7eb5fd894bbc

3 years agoFix wait semaphore count value
Samuel Iglesias Gonsálvez [Tue, 1 Jun 2021 10:46:49 +0000 (12:46 +0200)]
Fix wait semaphore count value

Components: Vulkan
VK-GL-CTS issue: 2949
Fixes: a47665a6e "Generalize synchronization tests"

Affected tests:

   dEQP-VK.synchronization.op.single_queue.binary_semaphore.*

Change-Id: I14bb0d79b67e444b20683a766b769ce3a94a3222
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
(cherry picked from commit bfe111789be62a974f403d452073ba30b24e5632)

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master
Alexander Galazin [Tue, 29 Jun 2021 07:53:40 +0000 (09:53 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master

Change-Id: Ia535b31670d1d6eb509f75508ac1b6f639714999

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6
Alexander Galazin [Tue, 29 Jun 2021 07:24:05 +0000 (09:24 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6

Change-Id: I820d94d27c30ea492dd04637b805dd78db2353d8

3 years agoUpdate extension dependencies
Alexander Galazin [Wed, 9 Jun 2021 11:45:47 +0000 (13:45 +0200)]
Update extension dependencies

Affects:
dEQP-VK.info.device_extensions

Components: Vulkan

Change-Id: I8be1c95646a6f0c2b8ddc27cc27c6679346c51c7

3 years agoImprove existing cull distance tests
Samuel Iglesias Gonsálvez [Tue, 8 Jun 2021 15:20:24 +0000 (17:20 +0200)]
Improve existing cull distance tests

Previously the tests were just writing a constant value to
gl_CullDistance[i] in the vertex shader and copying that value in
the rest of the geometry stages.

This commit does the following:

- The last shader writting to gl_CullDistance assigns 0 if
gl_Position.y < 0 and 0.5f otherwise. That way we can test the
interpolation of gl_CullDistance in the fragment shader.

- In case there are multiple geometry shaders, all except the last one
write a different value to gl_CullDistance[i] and checks the value
written by the previous shader stage. Therefore we check the values
are properly propagated between stages and they are overwritten as
well.

Components: Vulkan
VK-GL-CTS issue: 2961

Affected tests:

    dEQP-VK.clipping.*.clip_cull_distance*

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Change-Id: I213cc0469e72d82a8eda814e770aac2b825286fc

3 years agoAdd tests checking Input and Resolve attachments can be the same attachment in a...
Samuel Iglesias Gonsálvez [Mon, 14 Jun 2021 14:07:01 +0000 (16:07 +0200)]
Add tests checking Input and Resolve attachments can be the same attachment in a subpass

Components: Vulkan
VK-GL-CTS issue: 2931

Added test:

  dEQP-VK.pipeline.framebuffer_attachment.resolve_input_same_attachment

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Change-Id: I12e3741d219118c1b65b921a4b81b10d3c6d1c71

3 years agoFix 64-bit atomics mandatory feature checks
Ricardo Garcia [Tue, 22 Jun 2021 09:16:34 +0000 (11:16 +0200)]
Fix 64-bit atomics mandatory feature checks

Require shaderBufferInt64Atomics from VkPhysicalDeviceVulkan12Features
if the same feature from VkPhysicalDeviceShaderAtomicInt64FeaturesKHR is
supported.

Require shaderInt64 if any of the 64-bit integer atomic features is
supported.

Affected tests:
dEQP-VK.info.device_mandatory_features

VK-GL-CTS issue: 2976
Components: Vulkan

Change-Id: I95b2e90aec2d8d04bdbbfcdf60989c78a952a9da

3 years agoFix tessellation SPIR-V tests use of Restrict
Jason Ekstrand [Mon, 21 Jun 2021 20:35:36 +0000 (15:35 -0500)]
Fix tessellation SPIR-V tests use of Restrict

Their usage of Restrict violates the SPIR-V spec which requires that it
only got on variables, not types or struct members.

Affected tests:
dEQP-VK.tessellation.*

Components: Vulkan
VK-GL-CTS issue: 2975

Change-Id: Ifbde1b493bf56d1ee6454a4ab54e98bcd05f839b

3 years agoFix buffer copy extents in blit tests
Graeme Leese [Fri, 4 Jun 2021 13:50:34 +0000 (14:50 +0100)]
Fix buffer copy extents in blit tests

The buffer extents of copies to/from compressed images should account
for the extra size of the compressed block that might not fit in the
actual image but it was not.

Component: Vulkan
Affects: dEQP-VK.api.copy_and_blit.*

Change-Id: Ia4a47554078722b3cd4548df413bcdb62451cba5

3 years agoAllow the use of the standard types
Alexander Galazin [Fri, 18 Jun 2021 08:17:32 +0000 (10:17 +0200)]
Allow the use of the standard types

Removes the script that enforces the use of
the de-wrappers instead of the standard types.

VK-GL-CTS issue: 2963

Components: Framework

Change-Id: I5e2ff38a2b2cbc63a3c756a1e0260833ecd9381e

3 years agoAllocate memory for reference buffer
Sławomir Cygan [Tue, 15 Jun 2021 09:22:47 +0000 (11:22 +0200)]
Allocate memory for reference buffer

This fixes regression from 2236dd2.

m_referenceMem was not allocated leading to assert
in vk::Allocation::getHostPtr() and later crash.

VK-GL-CTS Issue: 2970

Components: Vulkan

Affects:
dEQP-VK.glsl.constants.*
dEQP-VK.glsl.constant_expressions.*

Change-Id: Ia798a72f348cc235b2a2ff18b3614f50713abd91

3 years agoFix YCbCr linear filtering support check
Graeme Leese [Thu, 10 Jun 2021 12:57:42 +0000 (13:57 +0100)]
Fix YCbCr linear filtering support check

The code was incorrectly checking the CONVERSION_LINEAR bit, which
determines whether a chromaFilter of linear is allowed, instead of the
more generic FILTER_LINEAR bit.

See vulkan/vulkan!4623

Component: Vulkan
Affects: dEQP-VK.ycbcr.*

Change-Id: Ifcacde146c10c24401e9efcc6095f5d0c5c8c519

3 years agoDon't run _concurrent sync tests on 1 queue devices
Graeme Leese [Fri, 4 Jun 2021 16:23:28 +0000 (17:23 +0100)]
Don't run _concurrent sync tests on 1 queue devices

The tests are testing synchronisation primitives in combination with
images marked as SHARING_MODE_CONCURRENT but this is not possible on
deivces that only support a single queue family. Because creating an
image with concurrent sharing requires two distinct queue families, it
is not supported on these devices.

Component: Vulkan
Affects: dEQP-VK.synchronization*.multi_queue.*_concurrent

Change-Id: I30a05bb085eef9e3087adfa12377a4909942f9c3

3 years agoFix stage flags for INPUT_ATTACHMENT descriptors
Graeme Leese [Fri, 4 Jun 2021 16:33:56 +0000 (17:33 +0100)]
Fix stage flags for INPUT_ATTACHMENT descriptors

These are required to be accessible only in the fragment stage.

Component: Vulkan
Affects: dEQP-VK.api.descriptor_pool.out_of_pool_memory

Change-Id: I63f874c366b45160dcb360b0b13d7932139676de

3 years agoRemove spurious feature dependencies in 1.2 tests
Graeme Leese [Fri, 4 Jun 2021 17:00:24 +0000 (18:00 +0100)]
Remove spurious feature dependencies in 1.2 tests

The vulkan1.2 features do not depend on having descriptorIndexing
enabled.

Component: Vulkan
Affects: dEQP-VK.api.info.vulkan1p2.feature_bits_influence

Change-Id: I7076f6046384c392e1066fdd1175d6183a848200

3 years agoFix feature dependency in vulkan1.2 test
Graeme Leese [Fri, 4 Jun 2021 16:50:36 +0000 (17:50 +0100)]
Fix feature dependency in vulkan1.2 test

Variable pointers requires that the storage buffer feature also be
enabled.

Component: Vulkan
Affects: dEQP-VK.api.info.vulkan1p2.feature_bits_influence

Change-Id: Ifb7a7831c609b0b52f408ac65a01b67e7eb0bf34

3 years agoFix image aspect handling in fragdepth tests
Graeme Leese [Thu, 3 Jun 2021 16:30:39 +0000 (17:30 +0100)]
Fix image aspect handling in fragdepth tests

The tests were creating a view which only used the depth aspect, but one
layout transition was incorrectly including the stencil aspect, leading
to validation errors.

Components: Vulkan
Affects: dEQP-VK.glsl.builtin_var.fragdepth.*

Change-Id: Ib2c1bcbce239968dfa21cc9ce5ef93c018189be9

3 years agoFix output components limit in fragment input tests
Graeme Leese [Thu, 3 Jun 2021 15:44:05 +0000 (16:44 +0100)]
Fix output components limit in fragment input tests

The number of outputs components is 4 higher than the number of fragment
inputs because gl_Position needs to be counted as well.

Component: Vulkan
Affects: dEQP-VK.glsl.limits.near_max.fragment_input.*

Change-Id: Ic1cd888c04c8877312af104f5bcd3afc607480f8

3 years agoRetry lesser FBO sample counts if UNSUPPORTED
Piers Daniell [Thu, 17 Jun 2021 23:36:54 +0000 (17:36 -0600)]
Retry lesser FBO sample counts if UNSUPPORTED

On some of our implementations we return GL_FRAMEBUFFER_UNSUPPORTED
when the no-attachment maximum width, height and samples are all
used in combination. This is because the combination goes beyond
some of our hardware limits. It would be fine to use either
maximum width/height or maximum samples, but not all
together.

Since GL_FRAMEBUFFER_UNSUPPORTED is a valid FBO status for
implementation-defined reasons, the test should recognize this
and try again with lesser limits until the FBO is complete.

Affects:

dEQP-GL45.functional.fbo.no_attachments.maximums.all

Components: OpenGL

VK-GL-CTS issue: 2973

Change-Id: I8db2e9f802b3f4d1ee59bbfbfa1935bbe3cc6d00

3 years agoMove two GL groups to single config
Alexander Galazin [Fri, 18 Jun 2021 10:22:26 +0000 (12:22 +0200)]
Move two GL groups to single config

Move enhanced_layouts and arrays_of_arrays_gl to the single config group
since these tests do not depend on the default framebuffer

Components: OpenGL

VK-GL-CTS issue: 2969

Removed tests:
KHR-GL*.arrays_of_arrays_gl.*
KHR-GL*.enhanced_layouts.*

Added tests:
KHR-Single-GL*.arrays_of_arrays_gl.*
KHR-Single-GL*.enhanced_layouts.*

Change-Id: I2ae554c0d92c9959d71232052c3f177265a715a7

3 years agoChange GLSL->SPIR-V mapping of notEqual to OpFUnordNotEqual not OpFOrdNotEqual
Piers Daniell [Tue, 15 Jun 2021 03:33:35 +0000 (21:33 -0600)]
Change GLSL->SPIR-V mapping of notEqual to OpFUnordNotEqual not OpFOrdNotEqual

The glslang compiler was changed in https://github.com/KhronosGroup/glslang/pull/2260
to generate OpFUnordNotEqual rather than OpFOrdNotEqual for a!=b.

Without this change the
KHR-GL46.gl_spirv.spirv_glsl_to_spirv_builtin_functions_test
test generates an InternalError because it can't find the
expected mapping.

Affects:

KHR-GL46.gl_spirv.spirv_glsl_to_spirv_builtin_functions_test

Change-Id: Ieda8dc02c0be90a7985b15ca28dbefb1a45cc7c1
Components: OpenGL

3 years agoUpdate Vulkan headers
Alexander Galazin [Mon, 28 Jun 2021 09:06:20 +0000 (11:06 +0200)]
Update Vulkan headers

Components: Vulkan

Change-Id: Ie5d0cb8afc3633ffca1b8ab8fbd712bc9819a23c

3 years agoFix the default GL_IMAGE_BINDING_FORMAT for desktop OpenGL
Piers Daniell [Fri, 11 Jun 2021 19:41:59 +0000 (13:41 -0600)]
Fix the default GL_IMAGE_BINDING_FORMAT for desktop OpenGL

The default texture format for desktop OpenGL is GL_R8 not GL_R32UI,
like it is for OpenGL ES.

See table 23.45 on page 627 of the OpenGL 4.6 core spec vs
table 21.33 on page 479 of the OpenGL ES 3.2 spec.

Affects:

KHR-GL46.shader_image_load_store.*

Change-Id: I1f5f8be422ddb358fba6df6bc450d3da702467bc
Components: OpenGL

3 years agoUpdate Vulkan headers
Alexander Galazin [Mon, 21 Jun 2021 11:25:34 +0000 (13:25 +0200)]
Update Vulkan headers

Components: Vulkan

Change-Id: I8c55cf4b0e5ecca25207143501372d8ea43b8d66

3 years agoCheck shader image atomic mandatory features
Ricardo Garcia [Mon, 7 Jun 2021 08:23:16 +0000 (10:23 +0200)]
Check shader image atomic mandatory features

Make sure implementations expose shaderImage*Atomics if
sparseImage*Atomics is supported.

Affected tests:
dEQP-VK.info.device_mandatory_features

Components: Vulkan
VK-GL-CTS issue: 2957

Change-Id: I7d07f807d5afddf9979f862d455029d23fa6c904

3 years agoAdd a batch of GraphicsFuzz coverage tests
Antto Mäkinen [Mon, 7 Jun 2021 14:45:27 +0000 (17:45 +0300)]
Add a batch of GraphicsFuzz coverage tests

This commit adds a batch of GraphicsFuzz coverage tests.

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.cov-clamp-vector-component-condition-using-matrix
dEQP-VK.graphicsfuzz.cov-color-output-undefined-in-unexecuted-branch
dEQP-VK.graphicsfuzz.cov-empty-loop-minus-one-modulo-variable-one
dEQP-VK.graphicsfuzz.cov-float-array-init-pow
dEQP-VK.graphicsfuzz.cov-fract-asin-undefined-never-used
dEQP-VK.graphicsfuzz.cov-function-fragcoord-condition-always-return
dEQP-VK.graphicsfuzz.cov-global-loop-counter-squared-comparison
dEQP-VK.graphicsfuzz.cov-isnan-asinh-clamp-always-zero
dEQP-VK.graphicsfuzz.cov-loop-dfdx-constant-divide
dEQP-VK.graphicsfuzz.cov-loop-integer-half-minus-one
dEQP-VK.graphicsfuzz.cov-min-intbitstofloat-undefined-never-used
dEQP-VK.graphicsfuzz.cov-pow-identical-value-sqrt
dEQP-VK.graphicsfuzz.cov-pow-undefined-result-condition-with-always-true
dEQP-VK.graphicsfuzz.cov-struct-float-array-mix-uniform-vectors
dEQP-VK.graphicsfuzz.cov-switch-fallthrough-variable-from-first-case

Change-Id: I239e7263068ddb6216f97c447e733cc2857fecfd

3 years agoAdd timestamp query test variants with availability bit
Samuel Iglesias Gonsálvez [Wed, 2 Jun 2021 13:18:44 +0000 (15:18 +0200)]
Add timestamp query test variants with availability bit

There was missing vkCmdCopyQueryPoolResults() and
vkGetQueryPoolResults() variants with availability bit flag.

Components: Vulkan
VK-GL-CTS issue: 2950

Added tests:

   dEQP-VK.pipeline.timestamp.*with_availability_bit

Modified tests:

   dEQP-VK.pipeline.timestamp.*

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Change-Id: I7e6fbb9d6e6f3b4b8c7ae1559a9bd7b23120d241

3 years agoProperly enable Sample Shading in Fragment Shading Rate tests
Sebastiano Cucinotta [Mon, 14 Jun 2021 15:15:40 +0000 (17:15 +0200)]
Properly enable Sample Shading in Fragment Shading Rate tests

Vulkan spec states:

> Sample shading is enabled for a graphics pipeline:
>
> * If the interface of the fragment shader entry point of the graphics
>   pipeline includes an input variable decorated with SampleId or
>   SamplePosition. In this case minSampleShadingFactor takes the value
>   1.0.
> * Else if the sampleShadingEnable member of the
>   VkPipelineMultisampleStateCreateInfo structure specified when
>   creating the graphics pipeline is set to VK_TRUE. In this case
>   minSampleShadingFactor takes the value of
>   VkPipelineMultisampleStateCreateInfo::minSampleShading.
>
> Otherwise, sample shading is considered disabled.

This change ensures that sample shading is properly enabled in the
Fragment Shading Rate tests relying on it by using gl_SampleId.

Components: Vulkan

Affects:
dEQP-VK.fragment_shading_rate.sampleshadinginput.*

VK-GL-CTS Issue: 2966

Change-Id: I7fad0ed7694a2d26ef7db9ea268fa5d6f93264a6

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master
Alexander Galazin [Wed, 16 Jun 2021 09:38:56 +0000 (11:38 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master

Change-Id: I5c61c18e70c4065effbf14c1e74b6f5b4b45c358

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6
Alexander Galazin [Wed, 16 Jun 2021 08:16:56 +0000 (10:16 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6

Change-Id: I2e92c964d1df15e5abfc47567f8a914892fc7cd9

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/vulkan-cts-1.2.5
Alexander Galazin [Wed, 16 Jun 2021 07:43:06 +0000 (09:43 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.4 into vk-gl-cts/vulkan-cts-1.2.5

Change-Id: I01d6cedef0b807be928ba68d3aab64fd3d045d8d

3 years agoAdd a GraphicsFuzz test
Antto Mäkinen [Fri, 26 Feb 2021 10:10:57 +0000 (12:10 +0200)]
Add a GraphicsFuzz test

Adds a GraphicsFuzz test which has been separated by request.

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.spv-stable-pillars-volatile-nontemporal-store

Change-Id: I506e7460f4fc472638a168a30c572d159f46a3c7

3 years agoAdd a batch of GraphicsFuzz coverage tests
Antto Mäkinen [Fri, 23 Apr 2021 14:40:30 +0000 (17:40 +0300)]
Add a batch of GraphicsFuzz coverage tests

This commit adds a batch of GraphicsFuzz coverage tests.

Components: Vulkan

New Tests:

dEQP-VK.graphicsfuzz.cov-array-copies-loops-with-limiters
dEQP-VK.graphicsfuzz.cov-bitfieldreverse-loop-limit-underflow
dEQP-VK.graphicsfuzz.cov-condition-loop-index-bitwise-not
dEQP-VK.graphicsfuzz.cov-descending-loop-min-max-always-zero
dEQP-VK.graphicsfuzz.cov-global-loop-bound-true-logical-or
dEQP-VK.graphicsfuzz.cov-global-loop-counter-multiply-one-minus
dEQP-VK.graphicsfuzz.cov-loop-condition-double-negate
dEQP-VK.graphicsfuzz.cov-loop-increment-matrix-element-break-after-first-iteration
dEQP-VK.graphicsfuzz.cov-loop-logical-xor
dEQP-VK.graphicsfuzz.cov-nested-functions-accumulate-global-matrix
dEQP-VK.graphicsfuzz.cov-nested-loop-undefined-smoothstep-never-executed
dEQP-VK.graphicsfuzz.cov-one-minus-clamp-always-one-cast-to-int

Change-Id: Ic3a4703622da470b4551fb5d5836c146897ec7bc

3 years agoFix dEQP-VK.info.device_extensions not working
Ricardo Garcia [Wed, 9 Jun 2021 11:28:55 +0000 (13:28 +0200)]
Fix dEQP-VK.info.device_extensions not working

The test is using the list of extension dependencies for instances
instead of devices, so it's actually not checking anything in most
cases.

Affected tests:
dEQP-VK.info.device_extensions

Components: Vulkan
VK-GL-CTS issue: 2959

Change-Id: I8ee2ea10f98e1dd45590edc2b5cc8e0c3e21890b

3 years agoSPIR-V 1.4 test fixes
Ricardo Garcia [Wed, 9 Jun 2021 10:11:56 +0000 (12:11 +0200)]
SPIR-V 1.4 test fixes

This commit fixes a couple of SPIR-V 1.4 tests that had inconsistent
requirements in the Amber script and in the CTS side. In one case we're
dropping the requirement from Amber and in the other one we're adding
the requirement to CTS.

Affected tests:
dEQP-VK.spirv_assembly.instruction.spirv1p4.opptrnotequal.variable_pointers_vars_wg_not_equal
dEQP-VK.spirv_assembly.instruction.spirv1p4.hlsl_functionality1.member_decorate_string

Components: Vulkan
VK-GL-CTS issue: 2958

Change-Id: If1e58bc028ce3756623a241bb259024ef077c815

3 years agoSkip unsupported allocations in invariance test
Ricardo Garcia [Tue, 8 Jun 2021 10:16:39 +0000 (12:16 +0200)]
Skip unsupported allocations in invariance test

dEQP-VK.api.invariance.random is a test that performs a high number of
memory allocations (1000 as of this commit). Some of them may throw a
not supported exception that wasn't being caught and would result in the
whole test being marked as unsupported.

This change catches the exception and only returns "not supported" if
none of the allocations were supported. Otherwise, it runs all possible
allocations and checks results for the supported ones.

Affected tests:
dEQP-VK.api.invariance.random

Components: Vulkan
VK-GL-CTS issue: 2110

Change-Id: I92163c42e33671291dd9fc0c753dc43b4a058796

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4
Alexander Galazin [Wed, 16 Jun 2021 06:52:23 +0000 (08:52 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.3 into vk-gl-cts/vulkan-cts-1.2.4

Change-Id: I89ac6a1c9b0b7d908be65033c47371f60cc880cb

3 years agoDo not exceed heap size when allocating memory
Slawomir Cygan [Wed, 19 May 2021 15:18:48 +0000 (17:18 +0200)]
Do not exceed heap size when allocating memory

It is invalid to make larger allocations than heap size.

Components: Vulkan

VK-GL-CTS Issue: 2927

Change-Id: I738356254d95a152a2bb89d711eb6b3f047b405c
Affects: dEQP-VK.memory.mapping

3 years agoSubgroup and workgroup reconvergence tests.
Jeff Bolz [Mon, 1 Jun 2020 17:23:26 +0000 (12:23 -0500)]
Subgroup and workgroup reconvergence tests.

These tests run shaders with randomly-generated control
flow and use subgroup operations to check whether subgroups
reconverge when control flow merges. The non-experimental
tests exercise the
VK_KHR_shader_subgroup_uniform_control_flow extension,
and the experimental tests go further and exercise maximal
reconvergence (and also increase the number of tests).

New Tests: dEQP-VK.reconvergence.*
New Tests: dEQP-VK-experimental.reconvergence.*
Component: Vulkan

Change-Id: I83136ad1aca6daece4a612a58d93aa175a2c5184
(cherry picked from commit 09f8fc2e7ecbbf97a2a30eeb4c6ce2c4e0ecb160)

3 years agoTests for VK_KHR_shader_subgroup_uniform_control_flow
Alan Baker [Tue, 2 Jun 2020 19:49:54 +0000 (15:49 -0400)]
Tests for VK_KHR_shader_subgroup_uniform_control_flow

* Updates Amber a version that supports VK_EXT_subgroup_size_control
* Change Amber testcases to use the asm option's SPIR-V version for
glslang compiles

Components: Vulkan

VK-GL-CTS Issue: 2395

New tests: dEQP-VK.subgroups.subgroup_uniform_control_flow.*

Change-Id: I4140385d6326d6b99e259fcd77e807f33b778031
(cherry picked from commit 74f61853ec0a94aeed6fa9443beeeb2c67b99070)

3 years agoUpdate glslang, SPIR-V Tools and headers
Alexander Galazin [Tue, 15 Jun 2021 15:35:42 +0000 (17:35 +0200)]
Update glslang, SPIR-V Tools and headers

Components: Framework

Change-Id: I71f4cf039e865f45086596beb7cd192c2d02fd53

3 years agoShared memory layout tests
Antto Mäkinen [Thu, 25 Feb 2021 13:44:28 +0000 (15:44 +0200)]
Shared memory layout tests

Vulkan leaves it to implementations to determine the layout of shared memory.
This test ensures that the fields in the shared memory won't end up
overlapping each other.

This commit also does a minor clean up for the framework core and adds
util functions for comparing types which are common for this and the SSBO tests.

VK-GL-CTS issue: 2372

New Tests:
dEQP-VK.memory_model.shared.*

Components: Vulkan

Change-Id: I4ac0a03f91a5ce699fe03f3c43943fb8eac88850

3 years agoOptimize the AS build tests to not use host uncached memory
Slawomir Cygan [Tue, 11 May 2021 14:53:20 +0000 (16:53 +0200)]
Optimize the AS build tests to not use host uncached memory

Use userspace host memory for scratch buffer (instead mapped device memory)
and try using HOST_CACHED memory (if supported) for the accelleration structure.

Components: Vulkan

VK-GL-CTS Issue: 2922

Affects:
dEQP-VK.ray_tracing_pipeline.build.*
dEQP-VK.ray_tracing_pipeline.*

Change-Id: I7592c3f93f2e10766cd1276f37ca51924e1cc16f

3 years agoAdd missing cull flags when counting intersections of rays with triangle-based cubes
Sławomir Cygan [Fri, 4 Jun 2021 15:49:38 +0000 (17:49 +0200)]
Add missing cull flags when counting intersections of rays with triangle-based cubes

Add a cull flags, so each convex geometry is counted once, instead of twice.

Components: Vulkan

VK-GL-CTS Issue: 2890

Affects:
    dEQP-VK.ray_tracing_pipeline.misc.*stress*
    dEQP-VK.ray_tracing_pipeline.misc.cullmask*
    dEQP-VK.ray_tracing_pipeline.misc.mixedPrimTL

Change-Id: Ie2e74149be8bb710c7ae3afb77f5854dca247aca

3 years agoRevert "Move the hit counting from any hit to closest hit shader stage"
Slawomir Cygan [Fri, 4 Jun 2021 15:45:39 +0000 (15:45 +0000)]
Revert "Move the hit counting from any hit to closest hit shader stage"

The problem with this test was in cull flags, rather than counting
in 'any hit' shader stage.

This reverts commit 2f33c7beac25308ef85a1856032d7a5936197f83.

VK-GL-CTS Issue: 2890

Change-Id: I066fac55a80ff4f4a93748425517785df8777d06
Affects: dEQP-VK.ray_tracing_pipeline.misc.*stress*

3 years agoAdd VK_FORMAT_B10G11R11_UFLOAT_PACK32 vertex input tests
Samuel Iglesias Gonsálvez [Wed, 26 May 2021 11:22:09 +0000 (13:22 +0200)]
Add VK_FORMAT_B10G11R11_UFLOAT_PACK32 vertex input tests

Added tests:

   dEQP-VK.pipeline.vertex_input.*.*as_b10g11r11_ufloat_pack32*

Components: Vulkan
VK-GL-CTS issue: 2946

Change-Id: Ibb0d97819d96548cacfca3e8eca966ecb7774e99
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
3 years agoTest null fragment shading rate attachment pointers
Ricardo Garcia [Thu, 13 May 2021 10:20:45 +0000 (12:20 +0200)]
Test null fragment shading rate attachment pointers

The new variants check passing a null fragment shading rate attachment
pointer has the same effect as not specifying a fragment shading rate
attachment info pointer at all.

New tests:
dEQP-VK.fragment_shading_rate.*.noattachmentptr.*

Components: Vulkan
VK-GL-CTS issue: 2904

Change-Id: If593170f5a0295772a0bab1ea4378a06c2a7864c

3 years agoCheck resource limits properly
Samuel Iglesias Gonsálvez [Wed, 2 Jun 2021 14:41:30 +0000 (16:41 +0200)]
Check resource limits properly

The tests were not checking the resource limits per stage when
creating the shaders, which could create potential issues on
some drivers. Specially the random generated tests.

Affected tests:

   dEQP-VK.ssbo.layout.*

Components: Vulkan
VK-GL-CTS issue: 2953

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Change-Id: I7509dce38b849a0dd26f9e47d7f74e637930d897

3 years agoCapture early errors on instance creation
Ricardo Garcia [Wed, 2 Jun 2021 11:34:48 +0000 (13:34 +0200)]
Capture early errors on instance creation

This commit makes CTS pass a VkDebugReportCallbackCreateInfoEXT
structure in the pNext chain of VkInstanceCreateInfo when creating the
default and other custom instances if validation is enabled from the
command line.

To achieve this, the DebugReportRecorder class has been uncoupled from
the instance and it's no longer responsible of owning the debug report
callback object (VkDebugReportCallbackEXT) that can be created using an
instance. That responsibility now falls into the default device or
custom instance wrapping objects.

This makes it possible to use the DebugReportRecorder in a
VkDebugReportCallbackCreateInfoEXT structure chained when creating
instances before they actually exist, and errors reported during the
instance creation process are handled by the recorder together with
other errors like validation errors.

In addition, the enumerate_devices_alloc_leak test has been modified to
use a custom instance (so it has validation enabled if requested) and
the API tooling info tests have been changed to use the custom instance
creation wrapper function createCustomInstanceFromContext().

Custom instance creation has been improved to detect the lack of
installed validation layers in order to avoid crashes.

Due to these changes affecting the default device and how validation is
enabled when requested, all tests are marked as affected.

Affected tests:
dEQP-VK.*

Components: Vulkan
VK-GL-CTS issue: 2952

Change-Id: I27b78e3cb101142416477ee2460283f917f58a4e

3 years agoAdd depth execution mode tests
Ilkka Saarelainen [Wed, 24 Feb 2021 08:13:15 +0000 (10:13 +0200)]
Add depth execution mode tests

This CL adds tests for DepthLess, DepthGreater and DepthUnchanged
execution modes.

New tests:
dEQP-VK.spirv_assembly.instruction.graphics.execution_mode.*

Components: Vulkan

VK-GL-CTS issue: 2735

Change-Id: Ib17d8f04b1cd254b85dfad2c779cb84b5e9fde9d

3 years agoMerge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/master
Alexander Galazin [Thu, 10 Jun 2021 08:17:45 +0000 (10:17 +0200)]
Merge vk-gl-cts/opengl-es-cts-3.2.7 into vk-gl-cts/master

Change-Id: I5de40715011c884f0da041ed927dd418549e7685

3 years agoMerge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7
Alexander Galazin [Thu, 10 Jun 2021 07:34:25 +0000 (09:34 +0200)]
Merge vk-gl-cts/opengl-es-cts-3.2.6 into vk-gl-cts/opengl-es-cts-3.2.7

Change-Id: Ib0f4c996967d629009113c3d17b543fc9218def0

3 years agoTest instance matrix update after command recording
Ricardo Garcia [Wed, 9 Jun 2021 07:42:57 +0000 (09:42 +0200)]
Test instance matrix update after command recording

This commit modifies ray query and ray tracing direction length tests so
the instance transform matrix in the top level acceleration structure is
sometimes updated after the AS build commands have been recorded in the
command buffer.

Affected tests:
dEQP-VK.ray_tracing_pipeline.direction_length.*
dEQP-VK.ray_tracing_pipeline.inside_aabbs.*
dEQP-VK.ray_query.direction_length.*
dEQP-VK.ray_query.inside_aabbs.*

Components: Vulkan
VK-GL-CTS issue: 2881

Change-Id: I9051783443e3775e20ccaa0eab32c5bc2f21d165

3 years agoTest null miss shader group handles work
Ricardo Garcia [Fri, 21 May 2021 16:29:05 +0000 (18:29 +0200)]
Test null miss shader group handles work

New test that creates a miss shader binding table filled with zeros and
checks everything works as expected.

New tests:
dEQP-VK.ray_tracing_pipeline.misc.null_miss

Components: Vulkan
VK-GL-CTS issue: 2929

Change-Id: Iead899ff0e6371a77d102901c8a8cc7583de49c8

3 years agoTest tracing rays from inside AABBs
Ricardo Garcia [Tue, 25 May 2021 13:59:33 +0000 (15:59 +0200)]
Test tracing rays from inside AABBs

Test tracing rays from inside AABBs with different Tmin and Tmax values,
origins and directions to verify they always generate a hit due to the
ray origin being located inside the AABB.

New tests:
dEQP-VK.ray_query.inside_aabbs.*
dEQP-VK.ray_tracing_pipeline.inside_aabbs.*

Components: Vulkan
VK-GL-CTS issue: 2928

Change-Id: I6b0a7c3a3bbe68cd2bc3b670c6dabcfa4374d473

3 years agoFix wait semaphore count value
Samuel Iglesias Gonsálvez [Tue, 1 Jun 2021 10:46:49 +0000 (12:46 +0200)]
Fix wait semaphore count value

Components: Vulkan
VK-GL-CTS issue: 2949
Fixes: a47665a6e "Generalize synchronization tests"

Affected tests:

   dEQP-VK.synchronization.op.single_queue.binary_semaphore.*

Change-Id: I14bb0d79b67e444b20683a766b769ce3a94a3222
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
3 years agoFix internal error for fragment stage in RT tests
Marcin Kantoch [Tue, 1 Jun 2021 09:02:50 +0000 (11:02 +0200)]
Fix internal error for fragment stage in RT tests

Previous CL added missing vertex pipeline stores check,
but forgot to do a passthough for fragment stage, which
is causing an internal error.

Affected tests:
dEQP-VK.ray_query.watertightness.*.frag.*
dEQP-VK.ray_query.builtin.*.frag.*
dEQP-VK.ray_query.advanced.*.frag.*
dEQP-VK.binding_model.descriptor_update.acceleration_structure.ray_query.*frag*

Components: Vulkan
VK-GL-CTS issue: 2948

Change-Id: Id8b7a6c13bf8acda3b0fd58e2afd3f61709ed295

3 years agoAdd GL_ARB_separate_shader_objects requirement
Alexander Galazin [Wed, 26 May 2021 07:26:56 +0000 (09:26 +0200)]
Add GL_ARB_separate_shader_objects requirement

Components: OpenGL

Affects: KHR*.shader_subroutine.subroutines_with_separate_shader_objects

VK-GL-CTS public issue: 271

Change-Id: I021776f105ec2ddf310deaf21827e5ce151784af

3 years agoRaise glsl version to 420 for compute shaders
Alexander Galazin [Wed, 26 May 2021 07:15:00 +0000 (09:15 +0200)]
Raise glsl version to 420 for compute shaders

Components: OpenGL

Affects:
KHR*.pipeline_statistics_query_tests_ARB.*
KHR*.cull_distance.*
KHR*.texture_gather.*

VK-GL-CTS public issue: 257

Change-Id: Ic777e7a821cbab9e6b71e266591352aea2fdd81d

3 years agoRaise glsl version to 410 core for shaders with GL_ARB_shader_atomic_counters
Alexander Galazin [Wed, 26 May 2021 07:20:59 +0000 (09:20 +0200)]
Raise glsl version to 410 core for shaders with GL_ARB_shader_atomic_counters

Components: OpenGL

Affects: KHR*.shader_subroutine.*

VK-GL-CTS public issue: 270

Change-Id: Ifed270991a1b18fb88514d6f0b96f0802498fb56

3 years agoRemove shaders.switch from the Khronos mustpasses
Alexander Galazin [Tue, 25 May 2021 09:51:18 +0000 (11:51 +0200)]
Remove shaders.switch from the Khronos mustpasses

Components: OpenGL

VK-GL-CTS issue: 2540

Affects: KHR*.shaders.switch.*

Change-Id: I41867656e67adc5077527a6d78791b06cee52c2f

3 years agoAdd a test for VK_EXT_global_priority_query
Yiwei Zhang [Wed, 10 Mar 2021 21:58:44 +0000 (21:58 +0000)]
Add a test for VK_EXT_global_priority_query

Components: Vulkan

VK-GL-CTS Issue: 2840

New tests: dEQP-VK.api.device_init.create_device_global_priority_query

Change-Id: I5245711e6db62f5fac06c146e868dfa4e88ab918
(cherry picked from commit 9c2b7bd961ac5f0394011930be9a4b58be37f217)

3 years agoUpdate Vulkan headers
Alexander Galazin [Mon, 7 Jun 2021 07:02:53 +0000 (09:02 +0200)]
Update Vulkan headers

Components: Vulkan

Change-Id: I357b284202a389ca269891938630e95edab57124

3 years agoFix validation errors in ASTC decode mode tests
Ilkka Saarelainen [Mon, 31 May 2021 12:10:38 +0000 (15:10 +0300)]
Fix validation errors in ASTC decode mode tests

The tests were trying to compare the raw contents of each ASTC
block contents between the tested and reference images via UINT and
SINT image views, but the type of the image view must be compatible
with the image format.

This CL changes the test to compare individual sampled texel
values instead of raw ASTC texel block values. The generated
images now contain valid ASTC blocks instead of random values.

Affects:
dEQP-VK.image.astc_decode_mode.*

Components: Vulkan

VK-GL-CTS issue: 2820

Change-Id: I38113725692f754c5de4393b5fad5d333cf99533

3 years agoAllow Vulkan CTS 1.2.6.2
Alexander Galazin [Thu, 3 Jun 2021 11:57:54 +0000 (13:57 +0200)]
Allow Vulkan CTS 1.2.6.2

Affects: dEQP-VK.api.driver_properties.properties

Components: Vulkan

Change-Id: Ie6657c70c6a1c51911361570977dd2fb205bd6c1

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master
Alexander Galazin [Thu, 3 Jun 2021 18:02:42 +0000 (20:02 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master

Change-Id: I070c88e5936fddc054050484c28fd892c6fb8a3a

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6
Alexander Galazin [Thu, 3 Jun 2021 15:15:02 +0000 (17:15 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.5 into vk-gl-cts/vulkan-cts-1.2.6

Change-Id: Id8117502d12cca36e3a414da3df7b8a3bb661cf5

3 years agoStatic code analysis fix for bounding box test
Jari Komppa [Tue, 18 May 2021 12:25:07 +0000 (15:25 +0300)]
Static code analysis fix for bounding box test

After closer analysis turns out the mistake in the code
was using xmin twice; changed to use xmin and xmax.

Affects:
dEQP-GLES31.functional.primitive_bounding_box.call_order.*

Change-Id: I307126c3558e4b8700d3ed808e24c7d85bcb50dc
Components: OpenGL

3 years agoAdd timer query handle reuse test for opengl es
Jari Komppa [Tue, 11 May 2021 06:52:45 +0000 (09:52 +0300)]
Add timer query handle reuse test for opengl es

This change adds base class for disjoint_timer_query tests
as well as test for handle reuse which was ported from the
GL4+ version.

New test: KHR-GLESEXT.disjoint_timer_query.handle_reuse

Components: OpenGL
VK-GL-CTS issue: 2911

Change-Id: I44421813a5de510e52fb6e1109fb2863856351c6

3 years agoInvalid VkPipelineRasterizationLineStateCreateInfoEXT chained
Boris Zanin [Thu, 27 May 2021 13:36:30 +0000 (15:36 +0200)]
Invalid VkPipelineRasterizationLineStateCreateInfoEXT chained

Some tests get the structure empty (and implementations most
likely ignore it), other tests get the structure with fields
inadequate to the test.

Update tests:
 * dEQP-VK.rasterization.*

Components: Vulkan

VK-GL-CTS issue: 2942

Change-Id: Ie485ad55266a53e64c74eab3db31a51d781c9d57

3 years agoFix vertex count calculation in XFB query tests
Mika Väinölä [Tue, 25 May 2021 07:21:53 +0000 (10:21 +0300)]
Fix vertex count calculation in XFB query tests

The primitive to vertex count calculation for
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY was
`(primCount + 4u) * 2u` when it should be `primCount * 2u + 4u`.

This change affects the bufferSize parameter passed to the tests.
The vertex count returned by this function is part of the test name
so the affected test cases are also renamed.

Affects:
dEQP-VK.transform_feedback.simple.query*
dEQP-VK.transform_feedback.simple.host_query_reset*

Components: Vulkan

VK-GL-CTS issue: 2934

Change-Id: I59e95a3240c6c45f8caf0dd4dc5b61c593059304

3 years agoSet the recursion depth for chit and miss cases
Piers Daniell [Mon, 17 May 2021 19:04:21 +0000 (13:04 -0600)]
Set the recursion depth for chit and miss cases

In the new dEQP-VK.binding_model.descriptor_update.acceleration_structure.ray_tracing.*
group of tests the "chit" and "miss" variants the shaders
generate additional rays, which means their recursion depth needs to be
greater than 1. In both cases "2" covers it.

Affects:

dEQP-VK.binding_model.descriptor_update.acceleration_structure.*

Components: Vulkan

VK-GL-CTS issue: 2924

Change-Id: I7acb1eda10f0ad6c7f2754deaa8451c317b4841b

3 years agoAdd depth-stencil tests that do vkCmdCopyImage() with both image aspects
Samuel Iglesias Gonsálvez [Wed, 19 May 2021 11:25:48 +0000 (13:25 +0200)]
Add depth-stencil tests that do vkCmdCopyImage() with both image aspects

Added tests:

   dEQP-VK.api.copy_and_blit.*_depth_stencil_aspects*

Components: Vulkan
VK-GL-CTS issue: 2926

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Change-Id: I9673674035d7a3fbd1947819305ea9dcb8dede6a

3 years agoTest for fragment shading rate in FragCoord.zw
marz [Thu, 22 Apr 2021 07:44:52 +0000 (09:44 +0200)]
Test for fragment shading rate in FragCoord.zw

Expansion of cases in pixel consistency test with varying shading rate
applied using zw fragment coordinates.

VK-GL-CTS issue: 2850

Components: Vulkan

Affects:
dEQP-VK.fragment_shading_rate.pixel_consistency.*

Change-Id: I8ba67a603a8b8b3b53f85207b5adae3bbc9ba51b

3 years agoAdd tests for vkCmdCopyQueryPoolResults and pipeline statistics
Samuel Iglesias Gonsálvez [Fri, 21 May 2021 08:30:32 +0000 (10:30 +0200)]
Add tests for vkCmdCopyQueryPoolResults and pipeline statistics

Added tests:

   dEQP-VK.query_pool.statistics_query.*cmdcopyquerypoolresults*

Modified tests:

   dEQP-VK.query_pool.statistics_query.multiple_queries.*

Renamed tests:
   dEQP-VK.query_pool.statistics_query.*dstoffset* to
   dEQP-VK.query_pool.statistics_query.*dstoffset_cmdcopyquerypoolresults*

Components: Vulkan
VK-GL-CTS issue: 2656

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Change-Id: I9cb6f4671f772834ca43f24a342323a42266c581

3 years agoUpdate glslang, SPIR-V Tools/Headers
Alexander Galazin [Wed, 2 Jun 2021 07:40:04 +0000 (09:40 +0200)]
Update glslang, SPIR-V Tools/Headers

Components: Framework

Change-Id: I88d7d3fb789c667261db76b143979cb7e7a87f30

3 years agoCheck return code for vkGetAndroidHardwareBufferPropertiesANDROID
Yiwei Zhang [Fri, 28 May 2021 06:47:29 +0000 (06:47 +0000)]
Check return code for vkGetAndroidHardwareBufferPropertiesANDROID

Components: Vulkan

VK-GL-CTS Issue: 2944

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

Change-Id: I2da2fe29ae34bd78c3bf2d4e37b002ef58828c12

3 years agoAdd script for comparing dEQP SwiftShader runs
Vihanakangas [Wed, 3 Feb 2021 10:07:19 +0000 (12:07 +0200)]
Add script for comparing dEQP SwiftShader runs

This submit adds a new script to vk-gl-cts/scripts that checks
for differences/regression in two different deqp-vk runs using regres and SwiftShader.
The script outputs a log of found differences from
the two different runs.

Change-Id: I9bfcc74e581c939a7b541fb7bb2a7141f0b9aeed

3 years agoMerge vk-gl-cts/github-master into vk-gl-cts/master
Alexander Galazin [Mon, 31 May 2021 07:24:28 +0000 (09:24 +0200)]
Merge vk-gl-cts/github-master into vk-gl-cts/master

Change-Id: Ia2f1289fc2d08e1238e0278067d1cf884e1b8287

3 years agoMerge pull request #258 from asimiklit/fix/arrayed-tests
Alexander Galazin [Mon, 31 May 2021 07:23:56 +0000 (09:23 +0200)]
Merge pull request #258 from asimiklit/fix/arrayed-tests

Disable explicit location tests for `arrayed` block members

3 years agoMerge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master
Alexander Galazin [Sat, 29 May 2021 08:00:26 +0000 (10:00 +0200)]
Merge vk-gl-cts/vulkan-cts-1.2.6 into vk-gl-cts/master

Change-Id: I7627d6a95d9d8fccff9da037851bd3f11eddc7b5

3 years agoUpdate OpenGL mustpass
Alexander Galazin [Fri, 28 May 2021 14:51:16 +0000 (16:51 +0200)]
Update OpenGL mustpass

Components: OpenGL

Change-Id: I0ecc800bfa213c4567354afc5c5cc7c0b96dd00b

3 years agoFix several issues in swapchain tests
Ricardo Garcia [Fri, 28 May 2021 11:53:56 +0000 (13:53 +0200)]
Fix several issues in swapchain tests

This commit fixes the following issues found in the swapchain tests:

- The initial image layout in some render passes did not match the
  actual image layout when starting the render pass.

- image_swapchain_create_info tests were using VK_KHR_bind_memory2
  functions without activating the extension on the device or making
  sure it was core in the used Vulkan API version.

- Many devices were being created with the wrong instance, using the
  context instance instead of the custom instance created for the tests.

- Several tests using VK_SHARING_MODE_CONCURRENT did not check for the
  availability of two queues or were always using one, which is invalid.

- VkDeviceGroupSwapchainCreateInfoKHR had a wrong sType.

- Swapchain resize tests were calling vkBeginCommandBuffer() on active
  command buffers without waiting for them to complete execution.

- Typos and other minor issues.

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

Components: Vulkan
VK-GL-CTS issue: 2941

Change-Id: I54d5f46cbcb76617260439a59bf3aef4028309bb