platform/upstream/VK-GL-CTS.git
7 years agoUpdate zlib and libpng dependencies
Maciej Jesionowski [Thu, 5 Jan 2017 10:21:40 +0000 (11:21 +0100)]
Update zlib and libpng dependencies

Fixes #568

Change-Id: I8ee890a2176bf6d42d3dd8b119b7263034127960

7 years agoAdd -Wno-delete-non-virtual-dtor to default cxxflags
Pyry Haulos [Thu, 15 Dec 2016 12:11:43 +0000 (14:11 +0200)]
Add -Wno-delete-non-virtual-dtor to default cxxflags

That warning generates some false negatives that are hard to work
around.

Change-Id: Ib451eca3af7bf2a6bfd24aa966f89496257b9f0d

7 years agoGet rid of invalid buffer create flags combinations
Maciej Jesionowski [Mon, 12 Dec 2016 15:24:30 +0000 (16:24 +0100)]
Get rid of invalid buffer create flags combinations

Removed tests:
- dEQP-VK.api.buffer.createBuffer_*_2
- dEQP-VK.api.buffer.createBuffer_*_6

Change-Id: I6cc6ed365de9d710f07fbfd2dde9db7edaecd007

7 years agoClarify --deqp-log-filename usage in README.md
Pyry Haulos [Fri, 2 Dec 2016 22:29:24 +0000 (14:29 -0800)]
Clarify --deqp-log-filename usage in README.md

Vulkan CTS issue: #525

Change-Id: Idb0f23cd13e548aaea21682ec02d89e52adee579

7 years agoFramework: Add assert to position deviation image compare
Maciej Jesionowski [Tue, 29 Nov 2016 12:38:22 +0000 (13:38 +0100)]
Framework: Add assert to position deviation image compare

When using position deviation tolerance it's easy to forget
about the depth and effectively skip the check for the whole
image.

Change-Id: Ide873be57ba19e7e9e45606d27aae403f9c131ec

7 years agoFix RelaxedPrecision mismatch in shader return statement tests
Pyry Haulos [Thu, 20 Oct 2016 20:17:33 +0000 (13:17 -0700)]
Fix RelaxedPrecision mismatch in shader return statement tests

Affects:

dEQP-VK.glsl.return.single_return_vertex
dEQP-VK.glsl.return.double_return_vertex
dEQP-VK.glsl.return.last_statement_in_main_vertex
dEQP-VK.glsl.return.return_in_infinite_loop_vertex

See #518

Change-Id: I981b7623f7dc2eed2e438092226f3fa3bde44d58

7 years agoUse highp by default in ShaderLibrary-based tests
Pyry Haulos [Thu, 20 Oct 2016 20:07:45 +0000 (13:07 -0700)]
Use highp by default in ShaderLibrary-based tests

This resolves numerous RelaxedPrecision mismatches

Affects:

dEQP-VK.glsl.arrays.*
dEQP-VK.glsl.conditionals.*
dEQP-VK.glsl.constants.*
dEQP-VK.glsl.conversions.*
dEQP-VK.glsl.functions.*
dEQP-VK.glsl.linkage.*
dEQP-VK.glsl.scoping.*
dEQP-VK.glsl.swizzles.*

See #518

Change-Id: I7b79f10c6dbdd5ae8da31359b680ac52ce2ad28c

7 years agoFix RelaxedPrecision mismatch in binding_model tests
Pyry Haulos [Thu, 20 Oct 2016 20:06:49 +0000 (13:06 -0700)]
Fix RelaxedPrecision mismatch in binding_model tests

Affects: dEQP-VK.binding_model.*

See #518

Change-Id: Iccda14ae17c7852c5283547e01573907f2eef18a

7 years agoFix race condition between query pool reset and accessing query results
Slawomir Cygan [Mon, 14 Nov 2016 16:57:31 +0000 (17:57 +0100)]
Fix race condition between query pool reset and accessing query results

Affects tests:
dEQP-VK.query_pool.occlusion_query.get_results*(wait_query|wait_none)*

These tests access query pool results on host, without any synchronization
with command buffer which performs the query - they either use
VK_QUERY_RESULT_WAIT_BIT or allow for incomplete results to be captured.

This may have a race condition, mentioned by spec:

"""
Applications must take care to ensure that use of the
VK_QUERY_RESULT_WAIT_BIT bit has the desired effect. For example, if
a query has been used previously and a command buffer records the
commands vkCmdResetQueryPool, vkCmdBeginQuery, and vkCmdEndQuery for
that query, then the query will remain in the available state until the
 vkCmdResetQueryPool command executes on a queue.
"""

In affected tests, this change moves vkCmdResetQueryPool to separate
command buffer that is sumitted and completed before query is used on
device & host.

Additionally code handling RESULTS_MODE_COPY mode is refactored to use
new haveSeparateCopyCmdBuf() function instead of tons of flags and conditions.

Change-Id: Id4a538b912030f2a86b09593fecaae37f1819a71

7 years agoUpdate to latest libpng release
Pyry Haulos [Mon, 14 Nov 2016 16:51:13 +0000 (08:51 -0800)]
Update to latest libpng release

Previously used release 1.6.17 has been deprecated due to security bugs.

Change-Id: Ie5b749eea96e34f88a6833fbfab40c59cd3d162c

8 years agoFix alignment issues in uploading image data in ShaderExecutor
Pyry Haulos [Tue, 27 Sep 2016 22:49:46 +0000 (15:49 -0700)]
Fix alignment issues in uploading image data in ShaderExecutor

Fixes #485

Change-Id: If04aebab19fb25ef26b51b4af86e718004438d82
(cherry picked from commit 9141d25d08d53c203f8ac5a9c5937a41e1d83d02)

8 years agodEQP-VK.compute: Fix layout of storage image descriptor
Slawomir Cygan [Mon, 10 Oct 2016 16:20:49 +0000 (18:20 +0200)]
dEQP-VK.compute: Fix layout of storage image descriptor

Affects: dEQP-VK.compute.basic.copy_image_to_ssbo*

IMAGE_STORAGE type descriptor was updated with *_OPTIMAL layout.
This is invalid according to spec:

"Load and store operations on storage images can only
be done on images in VK_IMAGE_LAYOUT_GENERAL layout."

Submitted Vulkan-LoaderAndValidationLayers issue !1034 to
ensure this is caught in val layers.

Additionally one validation warn on 0 src stage in barrier is fixed.

Change-Id: Ie6d6875465f382c62dd9802f286de77c4c808fc2

8 years agoBugfix: use normalized coords in glsl sampler tests
Maciej Jesionowski [Thu, 6 Oct 2016 10:23:23 +0000 (12:23 +0200)]
Bugfix: use normalized coords in glsl sampler tests

Modified tests:
- dEQP-VK.glsl.opaque_type_indexing.sampler.*

Fixes #505

Change-Id: Ie7c7f48276b52bcce3cb8ac41914398b669fe5ae

8 years agoFix incorrect limits in device properties test
Maciej Jesionowski [Tue, 27 Sep 2016 11:09:32 +0000 (13:09 +0200)]
Fix incorrect limits in device properties test

- alignment/offset type limits must be greater than 0
- nonCoherentAtomSize must be in range [1, 256] (the upper limit was
  relaxed with spec update 1.0.27
- point sizes and line widths must be positive

Modified test:
- dEQP-VK.api.info.device.properties

Fixes #502

Change-Id: I98a956d1cea741dd6d787415a0ad91178ffa0abf

8 years agodEQP-VK.dynamic_state tests: fix sizeof(size) bug
Slawomir Cygan [Thu, 22 Sep 2016 14:33:02 +0000 (16:33 +0200)]
dEQP-VK.dynamic_state tests: fix sizeof(size) bug

Change-Id: I7e90b30a88bb59bbe73fec00ecb8ce0fd92ac1f0

8 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

8 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

8 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

8 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

8 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

8 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)

8 years agoUpdate glslang to (f5dcdf01) "Front-end: Don't lower precision of bit operations...
scygan [Thu, 16 Jun 2016 12:53:06 +0000 (14:53 +0200)]
Update glslang to (f5dcdf01) "Front-end: Don't lower precision of bit operations taking highp inputs."

Fixes #382

8 years agoExplicitly declare gl_PerVertex block
Maciej Jesionowski [Thu, 16 Jun 2016 12:02:45 +0000 (14:02 +0200)]
Explicitly declare gl_PerVertex block

This fixes SPIR-V validation error in shaders generated from GLSL (not ES)
due to missing ClipDistance capability.

(cherry picked from commit 0a6fe1448b303a6a4e4ab48712eaf1c0b16d75b1)

8 years agoMerge branch 'git_log_process_update' into 'vulkan-cts-1.0'
Pyry Haulos [Tue, 14 Jun 2016 15:45:41 +0000 (15:45 +0000)]
Merge branch 'git_log_process_update' into 'vulkan-cts-1.0'

See merge request !577

8 years agoMerge branch 'scygan-fix_image_properties_tests' into 'vulkan-cts-1.0'
Pyry Haulos [Tue, 14 Jun 2016 15:44:14 +0000 (15:44 +0000)]
Merge branch 'scygan-fix_image_properties_tests' into 'vulkan-cts-1.0'

Fix dEQP-VK.api.info.image_format_properties - TRANSIENT usage flag used with DMA flags

Spec:
```
VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT indicates that the ....
If this is set, then bits other than VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT,
VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, and VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT must not be set.
```

The test tries the forbidden combination of usage flags, for example VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT + VK_IMAGE_USAGE_TRANSFER_SRC

See merge request !570

8 years agoUpdate git log command
Alexander Galazin [Wed, 8 Jun 2016 09:25:47 +0000 (11:25 +0200)]
Update git log command

8 years agoFix dEQP-VK.api.info.image_format_properties - TRANSIENT usage flag used with DMA...
scygan [Wed, 1 Jun 2016 13:55:20 +0000 (15:55 +0200)]
Fix dEQP-VK.api.info.image_format_properties - TRANSIENT usage flag used with DMA flags

Conflicts:
intel/negativeList.txt

8 years agoMerge branch 'memory-release-fix' into 'vulkan-cts-1.0'
Pyry Haulos [Tue, 31 May 2016 16:27:30 +0000 (16:27 +0000)]
Merge branch 'memory-release-fix' into 'vulkan-cts-1.0'

Use TCU_CHECK instead of DE_ASSERT

DE_ASSERT is optimized away in release build. In this case it resulted
in the 'modifyXor' function not being called, causing the reference
memory to go out of sync with the actual memory. Follow up to the fix
for #353.

See merge request !566

8 years agoUse TCU_CHECK instead of DE_ASSERT
Sivert Berg [Tue, 31 May 2016 12:37:57 +0000 (14:37 +0200)]
Use TCU_CHECK instead of DE_ASSERT

DE_ASSERT is optimized away in release build. In this case it resulted
in the 'modifyXor' function not being called, causing the reference
memory to go out of sync with the actual memory.

8 years agoFix several issues in dEQP-VK.memory.mapping tests
Pyry Haulos [Fri, 27 May 2016 23:03:46 +0000 (16:03 -0700)]
Fix several issues in dEQP-VK.memory.mapping tests

This is a very manual cherry-pick of memory mapping test fixes from
development branch into the release branch.

Fixes #353

8 years agoMerge branch 'cherry-pick-validation-fixes' into 'vulkan-cts-1.0'
Pyry Haulos [Tue, 24 May 2016 17:42:32 +0000 (17:42 +0000)]
Merge branch 'cherry-pick-validation-fixes' into 'vulkan-cts-1.0'

Cherry-pick validation fixes to release branch

See merge request !563

8 years agoMerge pull request #16 from jchen10/image_layout
Pyry Haulos [Fri, 20 May 2016 19:55:25 +0000 (12:55 -0700)]
Merge pull request #16 from jchen10/image_layout

Fix Pipeline barrier test

8 years agoFix test copying zero sized regions
Mika Isojärvi [Tue, 17 May 2016 17:08:40 +0000 (10:08 -0700)]
Fix test copying zero sized regions

Bug: 28677103
Change-Id: I4c23277f51ab4ea3e28a76ab757d0c2c8fe007d6
(cherry picked from commit 5dcb4c684341f681eea37ffc4d1727b2239516ef)

8 years agoUpdate sample conformance statement with latest release tag
Pyry Haulos [Fri, 20 May 2016 19:35:30 +0000 (12:35 -0700)]
Update sample conformance statement with latest release tag

8 years agoRemove use of non-standard strnlen()
Pyry Haulos [Thu, 21 Apr 2016 22:09:17 +0000 (15:09 -0700)]
Remove use of non-standard strnlen()

(cherry picked from commit febb0bbd97bc3004df7e81f90e9a5ddb49504aac)

8 years agoValidation fix dEQP-VK.binding_model
Maciej Jesionowski [Tue, 10 May 2016 09:40:39 +0000 (11:40 +0200)]
Validation fix dEQP-VK.binding_model

- Add srcStageMask to barriers

(cherry picked from commit f2e4f11a0803db89f7c7d8f9a9038a79e27a65ea)

8 years agoValidation fix for dEQP-VK.ssbo
Maciej Jesionowski [Mon, 25 Apr 2016 11:43:37 +0000 (13:43 +0200)]
Validation fix for dEQP-VK.ssbo

Fixed an issue where descriptor set bindings were updated incorrectly
(array of descriptors vs a few bindings of a single descriptor).

(cherry picked from commit 517e989710e57ac0008c0ea26bafb67418e52610)

8 years agoRemove dEQP-VK.glsl.linkage.varying.rules.fragment_declare
Maciej Jesionowski [Fri, 22 Apr 2016 12:44:19 +0000 (14:44 +0200)]
Remove dEQP-VK.glsl.linkage.varying.rules.fragment_declare

Test removed because it used the API incorrectly.

(cherry picked from commit 077398babe16b80a3934ec970932a3c80ae02bc1)

8 years agoValidation fixes for dEQP-VK.renderpass
Maciej Jesionowski [Thu, 21 Apr 2016 14:20:12 +0000 (16:20 +0200)]
Validation fixes for dEQP-VK.renderpass

- Correct access flags in layout barriers
- Remove duplicate barrier
- Fix minDepthBounds value

(cherry picked from commit ba01feddc2c4b2cafba566462732ac2f3e813c83)

8 years agoValidation fixes for dEQP-VK.glsl
Maciej Jesionowski [Tue, 19 Apr 2016 13:21:12 +0000 (15:21 +0200)]
Validation fixes for dEQP-VK.glsl

- Use uint type for booleans to match attribute format
- Don't bind descriptor set when it's not updated
- Use correct number of vertex input bindings
- Use correct color attachment format and layout
- Use correct access flags and layout in image barriers

(cherry picked from commit 5533f025bb144cdeee813ebabba2885e14b33b2e)

8 years agodEQP-VK.binding_model validation fixes
Maciej Jesionowski [Tue, 19 Apr 2016 09:12:28 +0000 (11:12 +0200)]
dEQP-VK.binding_model validation fixes

- Add image layout transition barrier flags
- Fix shader interface mismatch
- Add fence after command submission
- Remove buffer barrier from render pass

(cherry picked from commit ad5e2b6869cdbe14bd7f9847b2eef498f7a41a8c)

8 years agoRemoved not needed reading of image
Arkadiusz Sarwa [Mon, 18 Apr 2016 08:27:34 +0000 (10:27 +0200)]
Removed not needed reading of image

(cherry picked from commit 908d6bebb1e8149a8ec877853fc4a84641923425)

8 years agoBug Fix: Corrected barriers in the tests dEQP-VK.query_pool
Arkadiusz Sarwa [Wed, 13 Apr 2016 12:43:17 +0000 (14:43 +0200)]
Bug Fix: Corrected barriers in the tests dEQP-VK.query_pool

(cherry picked from commit 0319b008a20f6c61504d39c118c0dc271e015c25)

8 years agoValidation fixes for dEQP-VK.api
Maciej Jesionowski [Tue, 12 Apr 2016 12:18:45 +0000 (14:18 +0200)]
Validation fixes for dEQP-VK.api

- Correct minDepthBounds value
- api.copy_and_blit: corrected image layout barriers usage

(cherry picked from commit ed9d438ecd49d41e86247421c253692b92bcef63)

8 years agodEQP-VK.api.info.device.properties struct offsets
Maciej Jesionowski [Fri, 15 Apr 2016 08:53:41 +0000 (10:53 +0200)]
dEQP-VK.api.info.device.properties struct offsets

Use correct offsets and comparison algorithm when checking
VkPhysicalDeviceProperties structure.

(cherry picked from commit 33878d45346dddf85669f610783939cad0d32817)

8 years agoBug Fix: Corrected barriers in the tests dEQP-VK.dynamic_state.
Arkadiusz Sarwa [Mon, 11 Apr 2016 13:30:40 +0000 (15:30 +0200)]
Bug Fix: Corrected barriers in the tests dEQP-VK.dynamic_state.

(cherry picked from commit 188341def51b4a425163576ce1cd1c8931c45df8)

8 years agoTurn on well defined signed integer overflow
Mika Isojärvi [Thu, 17 Mar 2016 02:00:59 +0000 (19:00 -0700)]
Turn on well defined signed integer overflow

clang and gcc assume that signed integers never overflow.
This leads to unexpected bugs when optimizer removes bound checks etc.

Bug: 27703278
Bug: 22715185
Change-Id: Iab4c884fa190d05c0ac9236d01eeeb190e765e69
(cherry picked from commit ae6c306e39080de59a8535cf1797b27951dcaa6c)

8 years agoAdd Android NDK r11 toolchain as new default
Pyry Haulos [Tue, 15 Mar 2016 20:47:53 +0000 (13:47 -0700)]
Add Android NDK r11 toolchain as new default

New NDK r11 toolchain fixes libc++ on x86 enabling glslang support in
Android builds.

Change-Id: I5141b97f3152cfb1420a116cae40d671477ed254
(cherry picked from commit de7fb14fc30a8dd60e0215c333950b6a996c825a)

8 years agoUpdate glslang to (7b3096a) to include bitfield functions precision fix
scygan [Tue, 10 May 2016 15:38:13 +0000 (17:38 +0200)]
Update glslang to (7b3096a) to include bitfield functions precision fix

This fixes issue #385

8 years agoFix Pipeline barrier test
jchen10 [Wed, 11 May 2016 00:47:18 +0000 (08:47 +0800)]
Fix Pipeline barrier test

Set the old layout of color attachment image to VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL

8 years agoUpdate glslang to (af4592) - include proper RelaxedPrecision handling
scygan [Fri, 6 May 2016 15:46:29 +0000 (17:46 +0200)]
Update glslang to (af4592) - include proper RelaxedPrecision handling

Without this all build-in functions get RelaxedPrecision decoration in fragment shader, making _many_ tests fail.

8 years agoRemove instances of pDynamicState->dynamicStateCount = 0
Pyry Haulos [Wed, 6 Apr 2016 22:44:14 +0000 (15:44 -0700)]
Remove instances of pDynamicState->dynamicStateCount = 0

Specification explicitly disallows using
VkPipelineDynamicStateCreateInfo with dynamicStateCount = 0 when
creating pipelines. Instead pDynamicState must be set to NULL.

Change-Id: Iff9e2f10e0080ffae0f6698aff342132f148b41d
(cherry picked from commit 86a8ae9e0d61bbfe1f1e273fdbb026369bdb5f29)

8 years agoShaderRender tests: do not use images in UNDEFINED layout
scygan [Fri, 22 Apr 2016 18:18:07 +0000 (20:18 +0200)]
ShaderRender tests: do not use images in UNDEFINED layout

Just transition them at the beginning of renderpass

(cherry picked from commit 9f60392d15906ca26e0ae2ec97fe3e2c40f69a1f)

8 years agoMerge branch '357-ports-to-release-1.0' into 'vulkan-cts-1.0'
Pyry Haulos [Tue, 26 Apr 2016 12:11:01 +0000 (12:11 +0000)]
Merge branch '357-ports-to-release-1.0' into 'vulkan-cts-1.0'

Check existing tests with validation layers - partial port to 1.0 branch

This is a port of subset of MRs listed in #357 - the ones that fix usage of images in UNDEFINED layout.

We need this one because of implementation change on our side.

The contents of this MR equals !526 + !516 + !510, all of these are in MERGED state.

See merge request !534

8 years agoRevert to original boilerplate in Vulkan CTS license appendix
Pyry Haulos [Thu, 21 Apr 2016 18:12:14 +0000 (11:12 -0700)]
Revert to original boilerplate in Vulkan CTS license appendix

8 years agoValidation fixes in dEQP-VK.pipeline
Maciej Jesionowski [Fri, 8 Apr 2016 09:17:04 +0000 (11:17 +0200)]
Validation fixes in dEQP-VK.pipeline

- Corrected out of range minDepthBounds value
- Added missing image layout transitions
- timestamp, cache tests: pass data through geometry shader
- cache test: use correct initialLayout in attachment when starting
  a second render pass

(cherry picked from commit 1d3585c5ec71cf90d6519913db6a01ef2c0f840c)

Conflicts:
external/vulkancts/modules/vulkan/pipeline/vktPipelineCacheTests.cpp

8 years agoBug Fix: Corrected barriers in the tests dEQP-VK.compute
Arkadiusz Sarwa [Tue, 12 Apr 2016 08:54:01 +0000 (10:54 +0200)]
Bug Fix: Corrected barriers in the tests dEQP-VK.compute

(cherry picked from commit 9b3e984f996ac8d7cc18c16e466a149eef2397e3)

8 years agoBug Fix: Corrected barrier in the tests dEQP-VK.ubo
Arkadiusz Sarwa [Tue, 19 Apr 2016 07:24:23 +0000 (09:24 +0200)]
Bug Fix: Corrected barrier in the tests dEQP-VK.ubo

(cherry picked from commit ee29316060b9858e85c5aabb2a6c563c6d34826a)

8 years agoFix unused parameter warning in vktDrawIndirectTest.cpp
Pyry Haulos [Tue, 19 Apr 2016 19:46:56 +0000 (12:46 -0700)]
Fix unused parameter warning in vktDrawIndirectTest.cpp

8 years agoMerge branch '355-fix-tesc-tese-executors' into 'vulkan-cts-1.0'
Pyry Haulos [Tue, 19 Apr 2016 19:31:27 +0000 (19:31 +0000)]
Merge branch '355-fix-tesc-tese-executors' into 'vulkan-cts-1.0'

Fix a few issues in tessellation shader executors

 * Off-by-one buffer overflow in TessEvaluationExecutor

 * Set patchControlPoints to sensible values

Fixes #355

See merge request !519

8 years agoMerge branch 'scygan-draw-tests-split-firstInstance-1.0' into 'vulkan-cts-1.0'
Pyry Haulos [Tue, 19 Apr 2016 19:27:17 +0000 (19:27 +0000)]
Merge branch 'scygan-draw-tests-split-firstInstance-1.0' into 'vulkan-cts-1.0'

deqp-vk-draw: split indirect_draw tests into groups depending on `drawIndirectFirstInstance` optional feature

Fixes #337 on 1.0 branch, as an alternative to !507

See merge request !512

8 years agodeqp-vk-draw: split indirect_draw tests into groups depending on `drawIndirectFirstIn...
scygan [Fri, 8 Apr 2016 16:10:18 +0000 (18:10 +0200)]
deqp-vk-draw: split indirect_draw tests into groups depending on `drawIndirectFirstInstance` optional feature

8 years agoRemove initialization check for deviceName
Pyry Haulos [Fri, 15 Apr 2016 15:20:31 +0000 (08:20 -0700)]
Remove initialization check for deviceName

Initialization checking code doesn't currently handle null-terminated
strings correctly. Implementation is not required to initialize bytes
following the terminator 0 byte in string fields.

8 years agoFix VkPhysicalDeviceProperties init validation
Pyry Haulos [Thu, 14 Apr 2016 17:51:45 +0000 (10:51 -0700)]
Fix VkPhysicalDeviceProperties init validation

dEQP-VK.api.info.device.properties was using incorrect member offset
table to verify initialization of VkPhysicalDeviceProperties.

Fixes #367

8 years agoImprove VK_MAKE_VERSION and VK_BIT macros
Pyry Haulos [Fri, 8 Apr 2016 00:10:27 +0000 (17:10 -0700)]
Improve VK_MAKE_VERSION and VK_BIT macros

VK_MAKE_VERSION was causing int->uint conversion warnings.

Put arguments inside parenthesis to make evaluation unambiguous.

Change-Id: Ia47efdf77789905f4c45a551c08eb0ff3496c556
(cherry picked from commit dd99172aee72493b3e508dc8990e7eac95a40f8f)

8 years agoMerge branch '361-memory-properties' into 'vulkan-cts-1.0'
Pyry Haulos [Tue, 12 Apr 2016 21:10:00 +0000 (21:10 +0000)]
Merge branch '361-memory-properties' into 'vulkan-cts-1.0'

Fix dEQP-VK.api.info.device.memory_properties

Includes both fix for missing propertyFlags 0 as well as improved logging.

Fixes #361

See merge request !518

8 years agoFix a few issues in tessellation shader executors
Pyry Haulos [Tue, 12 Apr 2016 17:47:55 +0000 (10:47 -0700)]
Fix a few issues in tessellation shader executors

 * Off-by-one buffer overflow in TessEvaluationExecutor

 * Set patchControlPoints to sensible values

Change-Id: Ie94cf02c2fccd5e018a0e4de02c956f0d2abc6b0

8 years agoAdd 0 to list of valid memory property flags
Pyry Haulos [Tue, 12 Apr 2016 16:53:04 +0000 (09:53 -0700)]
Add 0 to list of valid memory property flags

Fixes #361

8 years agoImprove logging in dEQP-VK.api.info.device.memory_properties
Pyry Haulos [Mon, 21 Mar 2016 19:48:50 +0000 (12:48 -0700)]
Improve logging in dEQP-VK.api.info.device.memory_properties

Change-Id: I70927510e3dce6dbc05cc0f49f24f5d331f49412
(cherry picked from commit cdf80ba37ef186bb2d8fc5a3a97dd633e6a67d85)

8 years agoMerge branch 'extend-query-validation' into 'vulkan-cts-1.0'
Pyry Haulos [Sun, 10 Apr 2016 00:02:31 +0000 (00:02 +0000)]
Merge branch 'extend-query-validation' into 'vulkan-cts-1.0'

Extend feature and limit query validation

Manual cherry-pick of extended validation code in `vktApiFeatureInfo.cpp` from the development to the release branch.

Includes framework API update to 1.0.5 as the new code requires `VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT`

See merge request !499

8 years agoExtend feature and limit query validation
Pyry Haulos [Tue, 5 Apr 2016 22:32:41 +0000 (15:32 -0700)]
Extend feature and limit query validation

This change manually cherry-picks extended feature and limit query
validation code from development branch to the release branch.

8 years agoMerge branch '340-cube-corner-mustpass' into 'vulkan-cts-1.0'
Pyry Haulos [Thu, 7 Apr 2016 20:47:36 +0000 (20:47 +0000)]
Merge branch '340-cube-corner-mustpass' into 'vulkan-cts-1.0'

Remove test affected by cube corner texel selection issue

See #340

See merge request !505

8 years agoMerge branch '352-missed-pipeline-barrier' into 'vulkan-cts-1.0'
Pyry Haulos [Thu, 7 Apr 2016 20:46:55 +0000 (20:46 +0000)]
Merge branch '352-missed-pipeline-barrier' into 'vulkan-cts-1.0'

Add missing memory barrier to draw tests

Fixes #352

See merge request !493

8 years agoMerge branch '350-LOD-precision-for-snorm-cts-1.0' into 'vulkan-cts-1.0'
Pyry Haulos [Thu, 7 Apr 2016 20:46:25 +0000 (20:46 +0000)]
Merge branch '350-LOD-precision-for-snorm-cts-1.0' into 'vulkan-cts-1.0'

Use larger threshold for EAC formats in sampler tests

Fixes #350

See merge request !490

8 years agoAdd missing memory barrier to draw tests.
zeppelin [Fri, 1 Apr 2016 23:09:55 +0000 (16:09 -0700)]
Add missing memory barrier to draw tests.

Fixes #352

8 years agoUse larger threshold for EAC formats in sampler tests
zeppelin [Fri, 1 Apr 2016 01:43:50 +0000 (18:43 -0700)]
Use larger threshold for EAC formats in sampler tests

Fixes #350

8 years agoRemove test affected by cube corner texel selection issue
Pyry Haulos [Thu, 7 Apr 2016 20:12:15 +0000 (13:12 -0700)]
Remove test affected by cube corner texel selection issue

8 years ago Fix int->float conversion warning
Pyry Haulos [Wed, 9 Mar 2016 21:10:47 +0000 (13:10 -0800)]
 Fix int->float conversion warning

Change-Id: I3a8c01a9223b1b261b2cf162ab0ef9babb8bbb45
(cherry picked from commit de443fdd0e0f38f5fd8bd02aa27e6931063a39e3)

8 years agoUpdate Vulkan framework to API 1.0.5
Pyry Haulos [Tue, 16 Feb 2016 10:05:17 +0000 (12:05 +0200)]
Update Vulkan framework to API 1.0.5

Change-Id: I4e469b9384701303f96826c25a51e623316719dc
(cherry picked from commit 931d1df9bc5ac16200e2e63dfce17dcbbbb35d36)

8 years agoMerge branch 'change-license-rel' into 'vulkan-cts-1.0'
Pyry Haulos [Mon, 4 Apr 2016 19:14:31 +0000 (19:14 +0000)]
Merge branch 'change-license-rel' into 'vulkan-cts-1.0'

Change license in release branch

See merge request !481

8 years agoChange Vulkan CTS license to Apache 2
Pyry Haulos [Tue, 29 Mar 2016 20:47:06 +0000 (13:47 -0700)]
Change Vulkan CTS license to Apache 2

8 years agoFix malformed copyright boxes
Pyry Haulos [Tue, 29 Mar 2016 20:40:06 +0000 (13:40 -0700)]
Fix malformed copyright boxes

8 years agoMerge branch '341-fix-invocations' into 'vulkan-cts-1.0'
Pyry Haulos [Tue, 29 Mar 2016 19:36:22 +0000 (19:36 +0000)]
Merge branch '341-fix-invocations' into 'vulkan-cts-1.0'

Remove invalid Invocations=0 from geometry shaders.

All of these geometry shaders are default, so they do not need any
Invocations decoration.

Fixeds #341

See merge request !477

8 years agoRemove invalid Invocations=0 from geometry shaders.
Andrew Woloszyn [Tue, 22 Mar 2016 15:57:04 +0000 (11:57 -0400)]
Remove invalid Invocations=0 from geometry shaders.

All of these geometry shaders are default, so they do not need any
Invocations decoration.

8 years agoMerge branch 'side-effect-of-322_api-patch-version-test' into 'vulkan-cts-1.0'
Pyry Haulos [Tue, 22 Mar 2016 14:53:04 +0000 (07:53 -0700)]
Merge branch 'side-effect-of-322_api-patch-version-test' into 'vulkan-cts-1.0'

Add a test for checking random values of PATCH component of VKApplicationInfo.apiVersion

This is a continuation of #322, where negative test for checking random patch versions is removed.

Here, a positive test is added instead to ensure that vkCreateInstande does NOT fail if PATCH version is unrecognized, weird or just 0.

See merge request !462

8 years agoMerge branch '329-fix-undef-tests' into 'vulkan-cts-1.0'
Pyry Haulos [Tue, 22 Mar 2016 14:52:27 +0000 (07:52 -0700)]
Merge branch '329-fix-undef-tests' into 'vulkan-cts-1.0'

Fix createOpUndef tests.

If we get a Nan from the OpFMul %f32 %undef %c_f32_0 then zero that
out as well.

Fixes #329

See merge request !473

8 years agovktApiDeviceInitializationTests patch iteration added
saniola [Thu, 3 Mar 2016 15:34:07 +0000 (16:34 +0100)]
vktApiDeviceInitializationTests patch iteration added

8 years agoMerge branch 'jbreton-buffer-test-heap-limit' into 'vulkan-cts-1.0'
Pyry Haulos [Mon, 21 Mar 2016 17:28:07 +0000 (10:28 -0700)]
Merge branch 'jbreton-buffer-test-heap-limit' into 'vulkan-cts-1.0'

Fix createBuffer tests to clamp the buffer size based on the size of the selected heap

Right now, those tests clamp the allocation size based on the size of heap 0.
This is incorrect if the allocation is not done on heap 0.
In order to get the first compatible heap, we need to create the buffer and then call getBufferMemoryRequirements to query the requirement.

Then if we detect if the size need to be clamped we will recreate another buffer with the clamped size.

Fixes #326

See merge request !464

8 years agoclamp allocation size based on heap size
Jeannot Breton [Fri, 4 Mar 2016 19:05:39 +0000 (13:05 -0600)]
clamp allocation size based on heap size

8 years agoFix createOpUndef tests.
Andrew Woloszyn [Wed, 16 Mar 2016 20:06:16 +0000 (16:06 -0400)]
Fix createOpUndef tests.

If we get a Nan from the OpFMul %f32 %undef %c_f32_0 then zero that
out as well.

8 years agoMerge branch '325-spirv-assembly-avoid-rounding' into 'vulkan-cts-1.0'
Pyry Haulos [Thu, 10 Mar 2016 21:35:18 +0000 (16:35 -0500)]
Merge branch '325-spirv-assembly-avoid-rounding' into 'vulkan-cts-1.0'

dEQP-VK.spirv_assembly.instruction.compute.*: avoid platform-dependent rounding

Avoid platform-dependent rounding in tests for OpCopyObjectGroup, OpPhiGroup, SelectionControlGroup and FunctionControlGroup.

See merge request !461

8 years agoMerge branch 'issue-307' into 'vulkan-cts-1.0'
Pyry Haulos [Thu, 10 Mar 2016 16:18:03 +0000 (11:18 -0500)]
Merge branch 'issue-307' into 'vulkan-cts-1.0'

Issue 307: Add new --deqp-log-flush command line option

Fixes issue #307

It defaults to enabled. When disabled it skips calling fflush() for every XML token and line of log.

See merge request !441

8 years agodEQP-VK.spirv_assembly.instruction.compute.*: avoid platform-dependent rounding in...
Dae Kim [Wed, 9 Mar 2016 15:16:25 +0000 (15:16 +0000)]
dEQP-VK.spirv_assembly.instruction.compute.*: avoid platform-dependent rounding in tests for OpCopyObjectGroup, OpPhiGroup, SelectionControlGroup and FunctionControlGroup.

8 years agoMerge branch '323_timestamp_buffer_overflow_fix' into 'vulkan-cts-1.0'
Pyry Haulos [Mon, 7 Mar 2016 23:21:49 +0000 (18:21 -0500)]
Merge branch '323_timestamp_buffer_overflow_fix' into 'vulkan-cts-1.0'

Fixes buffer overflow in pipeline timestamp tests

Fixes #323

See merge request !459

8 years agoMerge branch '310-update-glslang' into 'vulkan-cts-1.0'
Pyry Haulos [Mon, 7 Mar 2016 23:20:44 +0000 (18:20 -0500)]
Merge branch '310-update-glslang' into 'vulkan-cts-1.0'

Update glslang to include "SPV: Use heuristic to avoid geometry multi-streams"

Fixes issue #310

See merge request !463

8 years agoMerge branch '308-fix-opaque-type-indexing-array-descriptors' into 'vulkan-cts-1.0'
Pyry Haulos [Mon, 7 Mar 2016 23:20:13 +0000 (18:20 -0500)]
Merge branch '308-fix-opaque-type-indexing-array-descriptors' into 'vulkan-cts-1.0'

ShaderExecutor: use descriptor arrays when uniform/buffer arrays are used in the…

… shader code. Another partial solution to #308.

See merge request !455

8 years agoMerge branch 'spec-176-api-remove-patch-version-check' into 'vulkan-cts-1.0'
Pyry Haulos [Mon, 7 Mar 2016 23:19:48 +0000 (18:19 -0500)]
Merge branch 'spec-176-api-remove-patch-version-check' into 'vulkan-cts-1.0'

Issue 322: dEQP-VK.api.device_init.create_instance_invalid_api_version - remove patch version check

In the spirit of spec bug #176, the implementation should not emit error on unrecognized PATCH component of VkApplicationInfo.apiVersion.

This makes implementation compatible with all header patch versions that may be used by the application.

This fixes #322

See merge request !454

8 years agobinding_model: Respect the StoresAndAtomics feature bits
Jason Ekstrand [Mon, 29 Feb 2016 23:51:51 +0000 (15:51 -0800)]
binding_model: Respect the StoresAndAtomics feature bits

This takes care of #320 for the binding_model tests

8 years agoUpdate glslang to include "SPV: Use heuristic to avoid geometry multi-streams"
scygan [Fri, 4 Mar 2016 17:44:39 +0000 (18:44 +0100)]
Update glslang to include "SPV: Use heuristic to avoid geometry multi-streams"

8 years agoFixes buffer overflow in pipeline timestamp tests
mnetsch [Thu, 3 Mar 2016 18:19:22 +0000 (13:19 -0500)]
Fixes buffer overflow in pipeline timestamp tests

Fixes #323