platform/upstream/VK-GL-CTS.git
7 years agoMerge "Remove invalid precision qualifier usage" into vulkan-cts-1.0.1
Pyry Haulos [Tue, 20 Sep 2016 22:48:44 +0000 (18:48 -0400)]
Merge "Remove invalid precision qualifier usage" into vulkan-cts-1.0.1

7 years agoRemove invalid precision qualifier usage
Pyry Haulos [Tue, 20 Sep 2016 22:11:11 +0000 (15:11 -0700)]
Remove invalid precision qualifier usage

dEQP-VK.pipeline.vertex_input tests were incorrectly using highp
qualifier with double types. That is not allowed, and default precision
in GLSL 4.4 shaders is highp anyway.

Fixes #458

Change-Id: I4b17b2273a8bf258bb8aec5737bd1c2a38aa49ce

7 years agoDo not use pointer value after deleting it
Pyry Haulos [Tue, 20 Sep 2016 21:47:29 +0000 (14:47 -0700)]
Do not use pointer value after deleting it

Pointer value is undefined after 'delete'.

Change-Id: I30dab519db61073932e3e35cd87809bf89b18dfc

7 years agoMerge "Fixes sparse_resources.shader_intrinsics.* tests to check for device feature...
Pyry Haulos [Tue, 30 Aug 2016 16:02:18 +0000 (12:02 -0400)]
Merge "Fixes sparse_resources.shader_intrinsics.* tests to check for device feature support." into vulkan-cts-1.0.1

7 years agoMerge "Run the memory tests ahead of all other tests" into vulkan-cts-1.0.1
Pyry Haulos [Tue, 30 Aug 2016 16:01:59 +0000 (12:01 -0400)]
Merge "Run the memory tests ahead of all other tests" into vulkan-cts-1.0.1

7 years agoFixes sparse_resources.shader_intrinsics.* tests to check for device feature support.
Petros Bantolas [Fri, 26 Aug 2016 14:25:45 +0000 (15:25 +0100)]
Fixes sparse_resources.shader_intrinsics.* tests to check for device feature support.

Change-Id: Ie3461ae4ec32b1f431b21ba7c6f453bde70834c7

7 years agoUpdate Android build dependencies in README.md
Pyry Haulos [Mon, 29 Aug 2016 21:35:51 +0000 (14:35 -0700)]
Update Android build dependencies in README.md

Change-Id: If159d4b4312183063a0d55483c1383197807eac1

7 years agoRun the memory tests ahead of all other tests
Mais Alnasser [Mon, 29 Aug 2016 16:54:16 +0000 (12:54 -0400)]
Run the memory tests ahead of all other tests

Other tests don't attempt to allocate that much memory and probably
don't care about fragmentation as much. This would reduce the
possibility of running into out-of-memory 32-bit issues at a later
point in the development of the CTS.

This change also updates the mustpass lists.

Change-Id: I4484e5a775fcf7efa39149f1e53eb049024a77da

7 years agoAdd /LARGEADDDRESSAWARE linker flag for MSVC
Piers Daniell [Thu, 25 Aug 2016 18:10:01 +0000 (12:10 -0600)]
Add /LARGEADDDRESSAWARE linker flag for MSVC

This allows 32-bit CTS to run to the end on Windows 32-bit platforms.

Change-Id: Iaec4efcddeb5e1248651fc2d1a1401dbb94bbaf7

7 years agoMerge gerrit/vulkan-cts-1.0.0 into gerrit/vulkan-cts-1.0.1
Pyry Haulos [Thu, 25 Aug 2016 16:36:49 +0000 (09:36 -0700)]
Merge gerrit/vulkan-cts-1.0.0 into gerrit/vulkan-cts-1.0.1

Change-Id: I9b5283a65a5b1cb1f9d34e98a916c73c9d5000ca

7 years agoMerge "Revert "Revert CUBE_COMPATIBLE flag check from "Fix required sample count...
Pyry Haulos [Thu, 25 Aug 2016 16:13:33 +0000 (12:13 -0400)]
Merge "Revert "Revert CUBE_COMPATIBLE flag check from "Fix required sample count tests""" into vulkan-cts-1.0.0

7 years agoRevert "Revert CUBE_COMPATIBLE flag check from "Fix required sample count tests""
Pyry Haulos [Thu, 25 Aug 2016 16:05:25 +0000 (12:05 -0400)]
Revert "Revert CUBE_COMPATIBLE flag check from "Fix required sample count tests""

This reverts commit 1106b0194f7571aebfdf76766760d91be772d8e7.

Fixes #440

Change-Id: Icdb5f71cd87b970edd1bf1770b4a0c15418f600b

7 years agoFix for #474. Add Vertex ordering and Spacing to tessellation shaders.
Andrew Woloszyn [Thu, 25 Aug 2016 14:01:18 +0000 (10:01 -0400)]
Fix for #474. Add Vertex ordering and Spacing to tessellation shaders.

Change-Id: I33760e0f23e6b8489e38cb93ad00e3483dc73d16

7 years agoIssue 479: Remove VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT
Alexander Galazin [Thu, 25 Aug 2016 10:32:42 +0000 (12:32 +0200)]
Issue 479: Remove VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT

dEQP-VK.glsl.texture_gather.basic.2d.depth32f.size_pot.compare_less.clamp_to_edge_repeat unconditionally creates a VkImage with VK_FORMAT_D32_SFLOAT and VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT which is optional.
However that the test does not really need VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT because the image is not used as D/S attachment, but as SAMPLED and TRANSFER.

Change-Id: Ia8a9fe62b3f6e0cf4635e25b33f1f79e2538ba3f

7 years agoFix parameter order for OpVectorTimesScalar.
Lei Zhang [Tue, 23 Aug 2016 18:18:14 +0000 (14:18 -0400)]
Fix parameter order for OpVectorTimesScalar.

The spec requires that the first parameter to OpVectorTimesScalar
must be of vector type, and the second of scalar type.

Change-Id: Ib4bb41bfc237efd000e48e21c2521ec616be35a5

7 years agoMerge gerrit/vulkan-cts-1.0.0 into gerrit/vulkan-cts-1.0.1
Pyry Haulos [Mon, 22 Aug 2016 19:48:36 +0000 (12:48 -0700)]
Merge gerrit/vulkan-cts-1.0.0 into gerrit/vulkan-cts-1.0.1

Change-Id: I70aadacf71364b934cb0340752176490b65d637d

7 years agoMerge "Limit maximum allocation size in memory mapping tests" into vulkan-cts-1.0.1
Pyry Haulos [Mon, 22 Aug 2016 19:47:03 +0000 (15:47 -0400)]
Merge "Limit maximum allocation size in memory mapping tests" into vulkan-cts-1.0.1

7 years agoLimit maximum allocation size in memory mapping tests
Pyry Haulos [Fri, 19 Aug 2016 12:20:38 +0000 (13:20 +0100)]
Limit maximum allocation size in memory mapping tests

Fixes also ReferenceMemory::m_flushed memory usage counting when
estimating reference memory usage (size should be divided by atomSize).

Fixes #468

Change-Id: Iad754e211e8070b09254d2451e03418fc2be541b

7 years agoCheck for imageCubeArray feature in image and image_view tests
Yanjun Zhang [Fri, 19 Aug 2016 13:00:26 +0000 (14:00 +0100)]
Check for imageCubeArray feature in image and image_view tests

Fixes #466

Change-Id: I8fcf807f99eaabdff293efac001b288b67b55cc9

7 years agoUpdate Vulkan CTS readme for 1.0.1
Pyry Haulos [Thu, 18 Aug 2016 11:00:13 +0000 (12:00 +0100)]
Update Vulkan CTS readme for 1.0.1

Change-Id: I191ebf2b7937c16d796a47534c7c6f2c27c00973

7 years agoFix image layout in pipeline barrier tests
Mika Isojärvi [Wed, 15 Jun 2016 18:42:36 +0000 (11:42 -0700)]
Fix image layout in pipeline barrier tests

(cherry picked from commit a80919a57ef8137712259273c18de0663cc724a0)

Change-Id: I59a6a1facd9348c949f78f808075a0377c1bfe9a

7 years agodEQP-VK.sparse_resources: Fixed VkBufferImageCopy buffer offset alignment issue
Petros Bantolas [Mon, 18 Jul 2016 08:12:08 +0000 (09:12 +0100)]
dEQP-VK.sparse_resources: Fixed VkBufferImageCopy buffer offset alignment issue

Fixes #433

Change-Id: I34a416670789979e967281d0ede406dd871862bc

7 years agoDo not check include guards in iOS porting files
Pyry Haulos [Tue, 16 Aug 2016 10:38:35 +0000 (12:38 +0200)]
Do not check include guards in iOS porting files

Change-Id: I0c67290322eb36bbc9287145cbbaea22f405d29c

7 years agoFix whitespace issues in other text files
Pyry Haulos [Tue, 16 Aug 2016 10:35:51 +0000 (12:35 +0200)]
Fix whitespace issues in other text files

Change-Id: Idab51b62589b9702d307022b0952a887bae263af

7 years agoFix merged <space><tab> in C/C++ files
Pyry Haulos [Tue, 16 Aug 2016 10:23:58 +0000 (12:23 +0200)]
Fix merged <space><tab> in C/C++ files

Change-Id: Ice7c1ae46a88c941c5834f9d34fcd4822c30debc

7 years agoFix trailing whitespace and include guards
Pyry Haulos [Tue, 16 Aug 2016 10:22:39 +0000 (12:22 +0200)]
Fix trailing whitespace and include guards

Change-Id: If9cf0f5b43ad668243033f7e7c04319c4fcd804d

7 years agoMerge "Fix typos in pipeline.cache test case names" into vulkan-cts-1.0.1
Pyry Haulos [Fri, 12 Aug 2016 17:44:23 +0000 (13:44 -0400)]
Merge "Fix typos in pipeline.cache test case names" into vulkan-cts-1.0.1

7 years agoFix typos in pipeline.cache test case names
Pyry Haulos [Thu, 11 Aug 2016 21:21:38 +0000 (14:21 -0700)]
Fix typos in pipeline.cache test case names

Change-Id: I7715bbd7bd21db4e6b1509d927fc087926253136

7 years agoFix race condition in qpTestLog debug asserts
Pyry Haulos [Thu, 11 Aug 2016 19:44:33 +0000 (12:44 -0700)]
Fix race condition in qpTestLog debug asserts

Code should be holding log mutex when checking state of internal data
structure.

Change-Id: I01f8aa851407c58813880a73c13f1966fdb1a2d1

7 years agoDo not log SPIR-V assembly when logging of shaders is disabled
Pyry Haulos [Thu, 11 Aug 2016 19:44:33 +0000 (12:44 -0700)]
Do not log SPIR-V assembly when logging of shaders is disabled

Fixes #461

Change-Id: I64aa8eb405db85d15aea663f6daba69279d5c6c8

7 years agoMerge gerrit/vulkan-cts-1.0.0 into gerrit/vulkan-cts-1.0.1
Pyry Haulos [Thu, 11 Aug 2016 18:43:38 +0000 (11:43 -0700)]
Merge gerrit/vulkan-cts-1.0.0 into gerrit/vulkan-cts-1.0.1

Change-Id: I64e15e4126afc4dde5dc95e6d766f95b6f04e30e

7 years agoRevert CUBE_COMPATIBLE flag check from "Fix required sample count tests"
Slawomir Cygan [Thu, 11 Aug 2016 12:34:37 +0000 (14:34 +0200)]
Revert CUBE_COMPATIBLE flag check from "Fix required sample count tests"

Spec does not say CUBE_COMPATIBLE flag forces
vkGetPhysicalDeviceImageFormatProperties to return sample count equal
to 1, so the flag should be irrelevant for sample count check.

Fixes #440
This partially reverts 8753a9e7528ca67b25bfabb4f03915a25721a690.

Change-Id: Ic4005cb0a651f433ff421eab671fb013561c78c4

7 years agoMerge gerrit/vulkan-cts-1.0.0 into gerrit/vulkan-cts-1.0.1
Pyry Haulos [Thu, 11 Aug 2016 00:51:46 +0000 (17:51 -0700)]
Merge gerrit/vulkan-cts-1.0.0 into gerrit/vulkan-cts-1.0.1

Change-Id: Ice2ae0c69dc296fcf2b2e75f1647c18798387a35

7 years agoMerge "Remove OpFUnord* tests from mustpass" into vulkan-cts-1.0.1
Pyry Haulos [Wed, 10 Aug 2016 18:26:47 +0000 (14:26 -0400)]
Merge "Remove OpFUnord* tests from mustpass" into vulkan-cts-1.0.1

7 years agoAdd .editorconfig
Pyry Haulos [Tue, 9 Aug 2016 20:19:35 +0000 (13:19 -0700)]
Add .editorconfig

Github uses tab width from .editorconfig when displaying code.

Change-Id: I9dcbe192ca21d7606a6ae56c747acd271562358c

7 years agoFix image layout in pipeline barrier tests
Mika Isojärvi [Wed, 15 Jun 2016 18:42:36 +0000 (11:42 -0700)]
Fix image layout in pipeline barrier tests

(cherry picked from commit a80919a57ef8137712259273c18de0663cc724a0)

Change-Id: Id12a18d68376056f8914eaca7774e976b493aa10

7 years agoRemove OpFUnord* tests from mustpass
Pyry Haulos [Mon, 8 Aug 2016 16:43:45 +0000 (09:43 -0700)]
Remove OpFUnord* tests from mustpass

There's open spec issue about NaN handling in these instructions.

See #426

Change-Id: I97613857c72f80171b1c6b0cfecd6d564f1c2149

7 years agoUpdate Android CTS mustpass
Pyry Haulos [Mon, 8 Aug 2016 21:58:56 +0000 (14:58 -0700)]
Update Android CTS mustpass

This brings Android CTS mustpass files up-to-date with latest test case
renames.

Change-Id: I436bf70fb685d538b79fb0cb86e9fc1883ee929c

7 years agoHarmonize test case names
Pyry Haulos [Mon, 8 Aug 2016 21:39:54 +0000 (14:39 -0700)]
Harmonize test case names

 * Avoid camel case and uppercase
 * Use more common abbreviations

Change-Id: Ica9a3936be96a72ec410d3673d5c6a2dd9e32c44

7 years agoRemove mustpass XML files not used by Vulkan CTS
Pyry Haulos [Mon, 8 Aug 2016 21:37:48 +0000 (14:37 -0700)]
Remove mustpass XML files not used by Vulkan CTS

Change-Id: I48e43f604c296baebdad5a25c3d7a723bfddb0f0

7 years agoMerge "Check and enable VK_KHR_sampler_mirror_clamp_to_edge" into vulkan-cts-1.0.1
Pyry Haulos [Mon, 8 Aug 2016 18:58:59 +0000 (14:58 -0400)]
Merge "Check and enable VK_KHR_sampler_mirror_clamp_to_edge" into vulkan-cts-1.0.1

7 years agoFix VkDeviceSize -> size_t implicit conversion warning
Pyry Haulos [Mon, 8 Aug 2016 18:12:18 +0000 (11:12 -0700)]
Fix VkDeviceSize -> size_t implicit conversion warning

Change-Id: Id1742b7830e12799948bf635412974df17b9bce4

7 years agoCheck and enable VK_KHR_sampler_mirror_clamp_to_edge
Pyry Haulos [Mon, 8 Aug 2016 18:08:47 +0000 (11:08 -0700)]
Check and enable VK_KHR_sampler_mirror_clamp_to_edge

Several tests in dEQP-VK.pipeline group assume that
VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE mode is supported. Spec
actually requires that VK_KHR_sampler_mirror_clamp_to_edge is enabled if
that mode is used.

This change enables VK_KHR_sampler_mirror_clamp_to_edge in default
device, if supported, and adds relevant checks in the test code.

In the future we'll want to clean this up by giving test cases more
control about the device configuration they need.

Fixes #339

Change-Id: Ib264c4f2fb147271c9c09d6286f4a26dd175f493

7 years agoFix api.buffer.* tests to use sparse capable queue instead the default.
Gabor Abraham [Mon, 25 Jul 2016 15:28:05 +0000 (17:28 +0200)]
Fix api.buffer.* tests to use sparse capable queue instead the default.

7 years agoFix accidental disabling of ASTC decoding internal test
Pyry Haulos [Thu, 4 Aug 2016 19:47:26 +0000 (12:47 -0700)]
Fix accidental disabling of ASTC decoding internal test

7 years agoDo not allocate large objects unnecessarily in static memory
Pyry Haulos [Thu, 4 Aug 2016 18:36:15 +0000 (11:36 -0700)]
Do not allocate large objects unnecessarily in static memory

7 years agoFix memory leaks in pipeline cache tests
Pyry Haulos [Thu, 4 Aug 2016 18:35:33 +0000 (11:35 -0700)]
Fix memory leaks in pipeline cache tests

7 years agoFix tcu::Resource leak in draw and dynamic_state tests
Pyry Haulos [Thu, 4 Aug 2016 18:34:52 +0000 (11:34 -0700)]
Fix tcu::Resource leak in draw and dynamic_state tests

7 years agoFix failing assert in copies and blitting tests
Pyry Haulos [Thu, 4 Aug 2016 18:34:25 +0000 (11:34 -0700)]
Fix failing assert in copies and blitting tests

7 years agoAdd note why command buffers are not freed individually
Pyry Haulos [Thu, 4 Aug 2016 18:34:01 +0000 (11:34 -0700)]
Add note why command buffers are not freed individually

7 years agoSkip testing int lookups for fp32/fp64 formats in internal tests
Pyry Haulos [Thu, 4 Aug 2016 18:32:59 +0000 (11:32 -0700)]
Skip testing int lookups for fp32/fp64 formats in internal tests

Overflow in float->int conversion is undefined and results vary between
tested CPUs.

7 years agoDisallow decoding ASTC sRGB formats in HDR mode
Pyry Haulos [Thu, 4 Aug 2016 18:29:52 +0000 (11:29 -0700)]
Disallow decoding ASTC sRGB formats in HDR mode

sRGB is not supported in HDR mode

7 years agoFix out-of-bounds memory accesses in ASTC decoder
Pyry Haulos [Thu, 4 Aug 2016 18:28:13 +0000 (11:28 -0700)]
Fix out-of-bounds memory accesses in ASTC decoder

interpolateWeights() was accessing weights outside weight grid bounds.
This resulted in valgrind errors even though values did not contribute
to result colors due to having zero-valued weights.

7 years agoImprove Vulkan null driver
Pyry Haulos [Thu, 4 Aug 2016 18:25:51 +0000 (11:25 -0700)]
Improve Vulkan null driver

 * Implement VkCommandPool/VkCommandBuffer lifetime management
correctly.

 * Return sensible values for device feature and limit queries to allow
more tests to run.

7 years agoUpdate framework to match vulkan.h at 15aa048
Pyry Haulos [Tue, 2 Aug 2016 18:11:49 +0000 (11:11 -0700)]
Update framework to match vulkan.h at 15aa048

7 years agoFix continue target in graphics block order tests
David Neto [Fri, 29 Jul 2016 20:35:12 +0000 (16:35 -0400)]
Fix continue target in graphics block order tests

Fixes validation of shaders in:
    dEQP-VK.spirv_assembly.instruction.graphics.selection_block_order.out_of_order_vert
    dEQP-VK.spirv_assembly.instruction.graphics.selection_block_order.out_of_order_tessc
    dEQP-VK.spirv_assembly.instruction.graphics.selection_block_order.out_of_order_tesse
    dEQP-VK.spirv_assembly.instruction.graphics.selection_block_order.out_of_order_geom
    dEQP-VK.spirv_assembly.instruction.graphics.selection_block_order.out_of_order_frag
    dEQP-VK.spirv_assembly.instruction.graphics.switch_block_order.out_of_order_vert
    dEQP-VK.spirv_assembly.instruction.graphics.switch_block_order.out_of_order_tessc
    dEQP-VK.spirv_assembly.instruction.graphics.switch_block_order.out_of_order_tesse
    dEQP-VK.spirv_assembly.instruction.graphics.switch_block_order.out_of_order_geom
    dEQP-VK.spirv_assembly.instruction.graphics.switch_block_order.out_of_order_frag
    dEQP-VK.spirv_assembly.instruction.graphics.opphi.out_of_order_vert
    dEQP-VK.spirv_assembly.instruction.graphics.opphi.out_of_order_tessc
    dEQP-VK.spirv_assembly.instruction.graphics.opphi.out_of_order_tesse
    dEQP-VK.spirv_assembly.instruction.graphics.opphi.out_of_order_geom
    dEQP-VK.spirv_assembly.instruction.graphics.opphi.out_of_order_frag

Fixes https://gitlab.khronos.org/vulkan/vulkancts/issues/443

7 years agoFix block order vs. dominance
David Neto [Fri, 29 Jul 2016 20:00:22 +0000 (16:00 -0400)]
Fix block order vs. dominance

The OpSwitch must dominate its merge block.  It also must dominate
%case1.

Fixes https://gitlab.khronos.org/vulkan/vulkancts/issues/442

7 years agoFix SPIR-V continue construct dominance
David Neto [Fri, 29 Jul 2016 16:11:33 +0000 (12:11 -0400)]
Fix SPIR-V continue construct dominance

Fix structured control flow validation problems in
dEQP-VK.spirv_assembly.instruction.compute.loop_control.*

Fixes https://gitlab.khronos.org/vulkan/vulkancts/issues/441

7 years agoFix required sample count tests
Nanley Chery [Tue, 19 Apr 2016 19:13:58 +0000 (12:13 -0700)]
Fix required sample count tests

According to,

   Table 11.1. Image and image view parameter compatibility requirements

Only non-cube images with type VK_IMAGE_TYPE_2D can have sample counts
greater than one.

In addition, the following properties should hold for multisampled
images: the formats must support being used in a color or depth/stencil
attachment, or in a storage image when shaderStorageImageMultisample is
supported. Images not fitting the above descriptions may have a sample
count of one or zero (in error conditions). Align tests for sample
counts to this behavior.

(cherry picked from commit dc4227d5ec87080f5dad810b5e33ae3b3fa014a4)

7 years agoShaderRender tests: do not use copyBufferToImage on MS Images
Slawomir Cygan [Fri, 22 Jul 2016 15:05:53 +0000 (17:05 +0200)]
ShaderRender tests: do not use copyBufferToImage on MS Images

This is forbidden by spec:

```
dstImage must have a sample count equal to VK_SAMPLE_COUNT_1_BIT
```

Instead image is cleared, and provided `textureData` ignored.

This fixes:
```
dEQP-VK.glsl.texture_functions.query.texturesamples.isampler2dms_fragment
dEQP-VK.glsl.texture_functions.query.texturesamples.isampler2dms_vertex
dEQP-VK.glsl.texture_functions.query.texturesamples.isampler2dmsarray_fragment
dEQP-VK.glsl.texture_functions.query.texturesamples.isampler2dmsarray_vertex
dEQP-VK.glsl.texture_functions.query.texturesamples.sampler2dms_fixed_fragment
dEQP-VK.glsl.texture_functions.query.texturesamples.sampler2dms_fixed_vertex
dEQP-VK.glsl.texture_functions.query.texturesamples.sampler2dms_float_fragment
dEQP-VK.glsl.texture_functions.query.texturesamples.sampler2dms_float_vertex
dEQP-VK.glsl.texture_functions.query.texturesamples.sampler2dmsarray_fixed_fragment
dEQP-VK.glsl.texture_functions.query.texturesamples.sampler2dmsarray_fixed_vertex
dEQP-VK.glsl.texture_functions.query.texturesamples.sampler2dmsarray_float_fragment
dEQP-VK.glsl.texture_functions.query.texturesamples.sampler2dmsarray_float_vertex
dEQP-VK.glsl.texture_functions.query.texturesamples.usampler2dms_fragment
dEQP-VK.glsl.texture_functions.query.texturesamples.usampler2dms_vertex
dEQP-VK.glsl.texture_functions.query.texturesamples.usampler2dmsarray_fragment
dEQP-VK.glsl.texture_functions.query.texturesamples.usampler2dmsarray_vertex
```

Fixes issue #430

7 years agodEQP-VK.image: group some test cases together
Maciej Jesionowski [Mon, 25 Jul 2016 11:55:33 +0000 (13:55 +0200)]
dEQP-VK.image: group some test cases together

7 years agoStrip debug info from SPIR-V binaries
Pyry Haulos [Thu, 21 Jul 2016 21:38:04 +0000 (14:38 -0700)]
Strip debug info from SPIR-V binaries

This requires updating glslang to fix ID remapping problem in SPIR-V
remapper.

Fixes #391

7 years agoValidation fix in dEQP-VK.api.command_buffers.*
Maciej Jesionowski [Fri, 22 Jul 2016 14:58:28 +0000 (16:58 +0200)]
Validation fix in dEQP-VK.api.command_buffers.*

- use correct stage masks with vkCmdWaitEvents
- set reserved flags to 0 in VkQueryPoolCreateInfo
- use non-zero srcStageMask with vkCmdPipelineBarrier

7 years agoUse pipeline cache to speed up synchronization.op tests
Pyry Haulos [Tue, 19 Jul 2016 22:02:02 +0000 (15:02 -0700)]
Use pipeline cache to speed up synchronization.op tests

7 years agoSparse resources fixes
Kantoch [Tue, 19 Jul 2016 11:37:33 +0000 (13:37 +0200)]
Sparse resources fixes

1. Do not allow to request more queues than available
2. Allow to reuse queue if it supports more than one type of operations

7 years agodEQP-VK.draw: fix minor issues
Mais Alnasser [Mon, 20 Jun 2016 19:14:33 +0000 (15:14 -0400)]
dEQP-VK.draw: fix minor issues

- colorWriteMask validation error
- minDepthBounds

7 years agoMerge "Don't rely on framebuffer contents after eglSwapBuffers"
Pablo Ceballos [Wed, 27 Jul 2016 17:46:20 +0000 (17:46 +0000)]
Merge "Don't rely on framebuffer contents after eglSwapBuffers"

7 years agoUpdate Android CTS mustpass
Pyry Haulos [Wed, 27 Jul 2016 15:42:16 +0000 (08:42 -0700)]
Update Android CTS mustpass

Change-Id: Icb869468a701a7ef664087ff401f80344719134f

7 years agoDon't rely on framebuffer contents after eglSwapBuffers
Pablo Ceballos [Thu, 16 Jun 2016 18:58:18 +0000 (11:58 -0700)]
Don't rely on framebuffer contents after eglSwapBuffers

Bug 27129258

Change-Id: Ic1c58d37c665dc9c35daa2b05ca40ecb969ad5dc

7 years agoMerge upstream vulkan-cts-1.0-dev into AOSP master
Pyry Haulos [Mon, 25 Jul 2016 22:23:26 +0000 (15:23 -0700)]
Merge upstream vulkan-cts-1.0-dev into AOSP master

7 years agoDO NOT MERGE revert CTS integration build changes
Pyry Haulos [Tue, 26 Jul 2016 23:26:54 +0000 (16:26 -0700)]
DO NOT MERGE revert CTS integration build changes

Reverts CTS integration makefiles to match marshmallow-cts-dev

Change-Id: I2b99024cee587bc823003df5aef0b555c265e381

7 years agoAdd new files to Android.mk
Pyry Haulos [Mon, 25 Jul 2016 22:17:36 +0000 (15:17 -0700)]
Add new files to Android.mk

7 years agoFix device mismatch bug by creating allocator for the sparse context too
Peter Siket [Mon, 25 Jul 2016 14:29:00 +0000 (16:29 +0200)]
Fix device mismatch bug by creating allocator for the sparse context too

7 years agoOnly use single-mipped MS images when testing textureSamples()
Dominik Witczak [Fri, 15 Jul 2016 07:15:01 +0000 (09:15 +0200)]
Only use single-mipped MS images when testing textureSamples()

This MR changes two aspects of the
dEQP-VK.glsl.texture_functions.query.texturesamples tests:

 * Only MS images are now bound to sampled image bindings.
 * As per recent spec clarification, MS images should always be
single-mipped.

Fixes #432

7 years agopipeline.spec_constant: Remove the data_size tests
Jason Ekstrand [Tue, 14 Jun 2016 17:04:08 +0000 (10:04 -0700)]
pipeline.spec_constant: Remove the data_size tests

These tests are invalid.  The size of the provided data *must* match the
size of the constant being specialized in the SPIR-V.

See also: https://gitlab.khronos.org/vulkan/vulkan/issues/345

7 years agoFix another set of warnings reported by GCC
Pyry Haulos [Thu, 21 Jul 2016 21:12:26 +0000 (14:12 -0700)]
Fix another set of warnings reported by GCC

7 years agoFix required sample count tests
Nanley Chery [Tue, 19 Apr 2016 19:13:58 +0000 (12:13 -0700)]
Fix required sample count tests

According to,

   Table 11.1. Image and image view parameter compatibility requirements

Only non-cube images with type VK_IMAGE_TYPE_2D can have sample counts
greater than one.

In addition, the following properties should hold for multisampled
images: the formats must support being used in a color or depth/stencil
attachment, or in a storage image when shaderStorageImageMultisample is
supported. Images not fitting the above descriptions may have a sample
count of one or zero (in error conditions). Align tests for sample
counts to this behavior.

7 years agoFix a few warnings
Pyry Haulos [Tue, 19 Jul 2016 22:17:06 +0000 (15:17 -0700)]
Fix a few warnings

7 years agoMerge "Add mipmap.2d.projected tests back to mustpass"
Pyry Haulos [Mon, 18 Jul 2016 22:11:14 +0000 (22:11 +0000)]
Merge "Add mipmap.2d.projected tests back to mustpass"

7 years agoAdded tests for internally synchronized objects
Arkadiusz Sarwa [Wed, 15 Jun 2016 14:52:29 +0000 (16:52 +0200)]
Added tests for internally synchronized objects

7 years agoSynchronization tests
Maciej Jesionowski [Thu, 9 Jun 2016 10:30:55 +0000 (12:30 +0200)]
Synchronization tests

Test fences, semaphores, barriers and events with various API functions
and pipeline stages.

7 years agovktPipelineCacheTests: improved pipeline cache tests
asokolow [Tue, 17 May 2016 05:05:23 +0000 (07:05 +0200)]
vktPipelineCacheTests: improved pipeline cache tests

7 years agoimage_clearing test: lower the threshold for clear validation
scygan [Wed, 1 Jun 2016 13:06:58 +0000 (15:06 +0200)]
image_clearing test: lower the threshold for clear validation

7 years agoSPIR-V Shader Intrinsics for Sparse Images Test
Kantoch [Tue, 12 Apr 2016 08:47:10 +0000 (10:47 +0200)]
SPIR-V Shader Intrinsics for Sparse Images Test

7 years agoUpdate Vulkan CTS mustpass
Kristof Kosztyo [Fri, 15 Jul 2016 16:29:41 +0000 (09:29 -0700)]
Update Vulkan CTS mustpass

7 years agoExtend copyImage tests with all compatible formats
Szilard Ledan [Fri, 15 Jul 2016 16:20:05 +0000 (09:20 -0700)]
Extend copyImage tests with all compatible formats

7 years agoExtend tcu::scale with sRGB conversion
Szilard Ledan [Fri, 15 Jul 2016 16:16:00 +0000 (09:16 -0700)]
Extend tcu::scale with sRGB conversion

7 years agoRemove vk::getFormatComponentMapping()
Pyry Haulos [Thu, 14 Jul 2016 23:51:42 +0000 (16:51 -0700)]
Remove vk::getFormatComponentMapping()

This function is highly misleading and often misused.

As as result image view component mapping is normalized to RGBA in
following tests:

 * pipeline.image
 * pipeline.image_view
 * pipeline.sampler

7 years agoUpdate mustpass and exclude problematic tests
Maciej Jesionowski [Fri, 1 Jul 2016 09:00:47 +0000 (11:00 +0200)]
Update mustpass and exclude problematic tests

7 years agoAdd clipping tests
Maciej Jesionowski [Wed, 29 Jun 2016 10:31:07 +0000 (12:31 +0200)]
Add clipping tests

- primitive clipping against the clip volume
  - depth clipping
  - depthClampEnable
  - large point and wide line clipping
- user-defined clipping planes ClipDistance
  - static and dynamic indexing
  - interaction with CullDistance
  - complementarity criterion

7 years agoEnable all textureproj* tests.
Akos Dirner [Wed, 15 Jun 2016 13:47:36 +0000 (15:47 +0200)]
Enable all textureproj* tests.

7 years agoMerge "switch to default Trade Federation ABI class"
Julius D'souza [Wed, 13 Jul 2016 18:57:05 +0000 (18:57 +0000)]
Merge "switch to default Trade Federation ABI class"

7 years agoUpdate Vulkan CTS mustpass
Pyry Haulos [Wed, 13 Jul 2016 17:24:24 +0000 (10:24 -0700)]
Update Vulkan CTS mustpass

7 years agoMerge in changes from upstream dEQP repository
Pyry Haulos [Wed, 13 Jul 2016 17:19:09 +0000 (10:19 -0700)]
Merge in changes from upstream dEQP repository

7 years agoMerge changes I219c2b3a,I7af6fe67
Pyry Haulos [Wed, 13 Jul 2016 17:18:10 +0000 (17:18 +0000)]
Merge changes I219c2b3a,I7af6fe67

* changes:
  Improve memory tracking in vulkan memory mapping tests
  Optimize random memory mapping tests reference memory

7 years agoImage memory barrier and resolved image load operation fixes.
Peter Siket [Tue, 28 Jun 2016 12:36:28 +0000 (14:36 +0200)]
Image memory barrier and resolved image load operation fixes.

7 years agoFix license header in testlog.xls
Pyry Haulos [Tue, 12 Jul 2016 18:55:17 +0000 (11:55 -0700)]
Fix license header in testlog.xls

Change-Id: I167e3240539e4cdafa5afb86bd2a43d2e79b8576

7 years agoAdd OpImageSparse* instruction tests
Gabor Abraham [Wed, 25 May 2016 15:15:44 +0000 (17:15 +0200)]
Add OpImageSparse* instruction tests

7 years agoClean up code in texture gather tests
Pyry Haulos [Fri, 8 Jul 2016 23:06:54 +0000 (16:06 -0700)]
Clean up code in texture gather tests

Removes use of multiple inheritance and virtual base classes.

7 years agoChange tes/geom shaders in timestamp tests use 310 es
Pyry Haulos [Thu, 7 Jul 2016 21:01:50 +0000 (14:01 -0700)]
Change tes/geom shaders in timestamp tests use 310 es

Vertex and fragment shaders were already using that GLSL version.