platform/upstream/VK-GL-CTS.git
7 years agoFix GL45-CTS.pipeline_statistics_query_tests_ARB.functional_default_qo_values
Gustaw Smolarczyk [Tue, 24 Jan 2017 19:49:05 +0000 (20:49 +0100)]
Fix GL45-CTS.pipeline_statistics_query_tests_ARB.functional_default_qo_values

m_current_draw_call_type and m_current_primitive_type should not be
processed in PipelineStatisticsQueryTestFunctional1.

Otherwise we have reads from an uninitialized fields.

7 years agoMerge vulkancts/vulkan-cts-1.0-dev into vulkancts/opengl-cts-dev
Pyry Haulos [Tue, 24 Jan 2017 00:32:35 +0000 (16:32 -0800)]
Merge vulkancts/vulkan-cts-1.0-dev into vulkancts/opengl-cts-dev

Change-Id: Iad6867155d0e94a63b4dfd259f17a811baab5520

7 years agoMerge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0-dev
Pyry Haulos [Tue, 24 Jan 2017 00:32:33 +0000 (16:32 -0800)]
Merge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0-dev

Change-Id: I930987be3bb947d4fe51d9b931ed882f04e45a19

7 years agoMerge vulkancts/vulkan-cts-next-dev into vulkancts/vulkan-cts-1.0-dev
Pyry Haulos [Tue, 24 Jan 2017 00:28:00 +0000 (16:28 -0800)]
Merge vulkancts/vulkan-cts-next-dev into vulkancts/vulkan-cts-1.0-dev

This merge introduces tests for 3 new extensions:

 * VK_KHR_get_physical_device_properties2
 * VK_KHR_shader_draw_parameters
 * VK_KHR_maintenance1

Change-Id: I2190b1ee4f3600708abde820e678a830488093ab

7 years agoMerge vulkancts/vulkan-cts-1.0-dev into vulkancts/vulkan-cts-next-dev
Pyry Haulos [Tue, 24 Jan 2017 00:13:11 +0000 (16:13 -0800)]
Merge vulkancts/vulkan-cts-1.0-dev into vulkancts/vulkan-cts-next-dev

Change-Id: Ia827f021762fd1b9444fe8fac6a11b59780349cd

7 years agoMerge vulkancts/opengl-cts-es-3.2.2 into vulkancts/opengl-cts-dev
Alexander Galazin [Mon, 23 Jan 2017 00:51:34 +0000 (01:51 +0100)]
Merge vulkancts/opengl-cts-es-3.2.2 into vulkancts/opengl-cts-dev

Change-Id: Idbcb8437a3598c158d3e4f7d57000b6b668dcf05

7 years agoImprove submission verification scripts
Alexander Galazin [Fri, 20 Jan 2017 09:00:27 +0000 (10:00 +0100)]
Improve submission verification scripts

Do not report warnings if git logs match exactly the release tag commit

Components: Framework

Change-Id: I9833026c5924bd22adfce8d26de2314a52fd88b9
(cherry picked from commit 244a26241b3887ccdca2eccbd45b914d3b5e6883)

7 years agoImprove submission verification scripts
Alexander Galazin [Fri, 20 Jan 2017 09:00:27 +0000 (10:00 +0100)]
Improve submission verification scripts

Do not report warnings if git logs match exactly the release tag commit

Components: Framework

Change-Id: I9833026c5924bd22adfce8d26de2314a52fd88b9

7 years agoMove OpNop graphics test case into function
Lei Zhang [Fri, 20 Jan 2017 16:21:45 +0000 (11:21 -0500)]
Move OpNop graphics test case into function

Change-Id: Ic3a12b67252a125a49bd6e833938c3ee33a88fdd

7 years agoMap buffers for writing in atomic counter tests
Graeme Leese [Fri, 20 Jan 2017 13:44:51 +0000 (13:44 +0000)]
Map buffers for writing in atomic counter tests

These tests attempt to sort the values in the returned buffers in place,
so the buffers must be mapped for writing. See VK-GL-CTS issue: 39.

Components: OpenGL

Affects: KHR-GLES31.core.shader_atomic_counters.*

Change-Id: Icda40fe8d27c86ecd9912767c34ec81e7fa3a35a

7 years agoMerge vulkancts/opengl-cts-es-3.2.2 into vulkancts/opengl-cts-dev
Alexander Galazin [Fri, 20 Jan 2017 10:21:49 +0000 (11:21 +0100)]
Merge vulkancts/opengl-cts-es-3.2.2 into vulkancts/opengl-cts-dev

Change-Id: Ia246cacb67f8e9f01f84533337efff66e40be757

7 years agoMake RGB16F/RGB32F not color-renderable in ES 3.2
Alexander Galazin [Thu, 19 Jan 2017 20:00:10 +0000 (21:00 +0100)]
Make RGB16F/RGB32F not color-renderable in ES 3.2

GL_RGB16F is color-renderable only if
GL_EXT_color_buffer_half_float is supported.

GL_RGB32F is color-renderable only if
GL_EXT_color_buffer_float is supported.

Affects: dEQP-GLES31.functional.fbo.color.texcubearray.rgb16f

VK-GL-CTS issue: 40

Components: AOSP

Change-Id: I2cf3eb7e8d5c361ac23a64128b0d27958dc48438

7 years agoMerge vulkancts/vulkan-cts-1.0-dev into vulkancts/opengl-cts-dev
Pyry Haulos [Thu, 19 Jan 2017 19:43:08 +0000 (11:43 -0800)]
Merge vulkancts/vulkan-cts-1.0-dev into vulkancts/opengl-cts-dev

Change-Id: I54cbd7d0021d911bad32411f54437fb270a60b64

7 years agoMerge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0.2-extensions
Pyry Haulos [Thu, 19 Jan 2017 19:43:06 +0000 (11:43 -0800)]
Merge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0.2-extensions

Change-Id: I1c6f35fd8f03e2bd4d72a99b6d062d08703985ff

7 years agoMerge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0-dev
Pyry Haulos [Thu, 19 Jan 2017 19:41:57 +0000 (11:41 -0800)]
Merge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0-dev

Change-Id: I42976523a4e4b0c9b66fadc7b28f4acaa3f93c9e

7 years agoRemove PointCoord test from mustpass
Pyry Haulos [Thu, 19 Jan 2017 17:10:20 +0000 (09:10 -0800)]
Remove PointCoord test from mustpass

Test doesn't take into account difference between real (unrounded) point
origin and (rounded) texel center when computing PointCoord reference
values.

Vulkan CTS issue: 582

Change-Id: I0ffaf40c1d99247b68d6ee16f2f94df74c832884

7 years agoRemove broken pipeline barrier tests from mustpass
Pyry Haulos [Thu, 19 Jan 2017 17:08:02 +0000 (09:08 -0800)]
Remove broken pipeline barrier tests from mustpass

These tests attempt to store a value that doesn't fit in 16-bit uint
into a RelaxedPrecision-qualified uint push constant.

Vulkan CTS issue: 583

Change-Id: I9ae6da8469b8213c2f1d0e5d90b1ada8640bef6e

7 years agoUpdate README.md in response to feedback
Alexander Galazin [Thu, 19 Jan 2017 09:42:20 +0000 (10:42 +0100)]
Update README.md in response to feedback

- Add more details about GLCTS_GTF_TARGET
- Clarify that KC CTS is necessary only for conformance submissions
- Clarify that GTF builds and conformance runs must use matching
  API versions

Components: OpenGL

Change-Id: I76a015e66918cf074823e6ab139c140369f7a073

7 years agoAdd NV extensions to known instance extension list
Courtney Goeltzenleuchter [Thu, 12 Jan 2017 01:17:08 +0000 (18:17 -0700)]
Add NV extensions to known instance extension list

Change-Id: Idf87f8718fcfdd55764d81dcbf478685225b3635

7 years agoTest OpVectorShuffle with 0xFFFFFFFF and OpUndef
Maciej Jesionowski [Wed, 7 Dec 2016 15:14:55 +0000 (16:14 +0100)]
Test OpVectorShuffle with 0xFFFFFFFF and OpUndef

Modified tests:
- dEQP-VK.spirv_assembly.instruction.compute.opspecconstantop.vector_related
- dEQP-VK.spirv_assembly.instruction.graphics.opspecconstantop.vector_related_*

Khronos issue: #498

Change-Id: I6f370c5300cdcb3f9afa3c20e22ab5f2ccfaeffa

7 years agoAdd new texture function tests with 1d, 1d array and cube array samplers
Akos Dirner [Tue, 28 Jun 2016 13:15:08 +0000 (15:15 +0200)]
Add new texture function tests with 1d, 1d array and cube array samplers

New tests:
- dEQP-VK.glsl.texture_functions.*sampler1d*
- dEQP-VK.glsl.texture_functions.*sampler1darray*
- dEQP-VK.glsl.texture_functions.*samplercubearray*

Affected tests:
- dEQP-VK.glsl.texture_functions.*

Fixes #413

Change-Id: I9fb5096ea0e77e2973df190b0d6eff91e17dcd0e

7 years agoMultisample Shader BuiltIn Tests
Kantoch [Thu, 13 Oct 2016 12:29:53 +0000 (14:29 +0200)]
Multisample Shader BuiltIn Tests

Tests for gl_SampleID, gl_SamplePosition, gl_SampleMaskIn[], gl_SampleMask[]

New tests:
- dEQP-VK.pipeline.multisample_shader_builtin.*

Issue #450

Change-Id: I82875fc20d01232127f01186644a04d67ddb8833

7 years agoAdd tests for resolving between images of different sizes
Slawomir Cygan [Mon, 28 Nov 2016 18:28:01 +0000 (19:28 +0100)]
Add tests for resolving between images of different sizes

New tests: dEQP-VK.api.copy_and_blit.resolve_image.diff_image_size*

This change adds new tests, which try to resolve data between images of
different sizes. As some implementations may optimize resolves of whole
images, this tests tricks implementation by having resolve region equal
one of dst/src image size, while the other image is larger.

`FILL_MODE_MULTISAMPLE` logic was tweaked to work properly on non-square src images
- this is required by new tests.

Change-Id: If15f500e0e4b2b574f1441da71e5d57e690f8f43

7 years agoRelax LOD computation bounds; add mipmap.2d.projected to mustpass
Pyry Haulos [Wed, 23 Nov 2016 19:02:57 +0000 (11:02 -0800)]
Relax LOD computation bounds; add mipmap.2d.projected to mustpass

This change updates LOD approximation rules to match proposed spec
language in Vulkan texture filtering and mipmap tests.

dEQP-VK.texture.mipmap.2d.projected.* is added back to the mustpass.

Affects: dEQP-VK.texture.*

Change-Id: Ic786bc733913a76d27f0cba31f3a61a10f8144fc

7 years agoImprove the test generation in the copies and blitting tests
Gabor Abraham [Fri, 18 Nov 2016 10:22:53 +0000 (11:22 +0100)]
Improve the test generation in the copies and blitting tests

The generateBuffer function didn't handle the integer formats well.

Affected tests:
- dEQP-VK.api.copy_and_blit.image_to_image.all_formats.*int*
- dEQP-VK.api.copy_and_blit.blit_image.all_formats.*int*

Change-Id: I248136606d2535c176432bbc50de45e1e4e55b80

7 years agoAdd NEAREST filtered blitting tests
Maciej Jesionowski [Tue, 27 Dec 2016 13:15:58 +0000 (14:15 +0100)]
Add NEAREST filtered blitting tests

This fixes a couple of issues with nearest filtered blitting tests
and adds them back to the mustpass.

- Corrected test case names (esp. for D/S formats)
- Modified common code used by linear cases too (shouldn't have
  an observable effect on tests)
- Used tcuTexLookupVerifier to sample source image with an offset
  that accounts for rounding errors in coordinate calculation
- Enabled nearest cases in mustpass

New tests:
- dEQP-VK.api.copy_and_blit.blit_image.all_formats.*_nearest

Modified tests:
- dEQP-VK.api.copy_and_blit.blit_image.all_formats.*

Fixes #483, #565

Change-Id: I176c2b50a656268a31f1f35fef1ff90647039727

7 years agoopengl/khr_debug: Push/pop the custom render context
Eduardo Lima Mitev [Mon, 12 Dec 2016 18:46:57 +0000 (19:46 +0100)]
opengl/khr_debug: Push/pop the custom render context

KHR_Debug tests create their own render context. However, the
framework's test iterator handles basic operations on the render context
between test executions (e.g, swapping buffers), but it always assumes
that the default render context is the one being used. This causes
conflicts on KHR_debug tests, where the postIterate() method throws a
ResourceError, aborting the test execution, and breaking the logging
system.

This patch changes all KHR_debug tests to first save the original render
context, then sets the created render context as that of the base
context to give the framework a good, active render context; and finally
sets back the riginal render context when the test finishes.

If the test aborts in the middle, the destructor of the test (in TestBase)
will still try to restore the original context.

To allow the above, a setRenderContext() method was added to the test
context. So we need to have a mechanism to temporarily set the render
context of the default test context during the execution of these tests.

Fixes all tests in:
* GLXX-CTS.khr_debug.*

Fixes #28

Change-Id: If2c3eea5cb0882c11d2baf8334ed9ee6208b6c65

7 years agoExtended CTS_ARB_sparse_texture2 MS34
Adam Czupryna [Fri, 16 Dec 2016 14:58:18 +0000 (15:58 +0100)]
Extended CTS_ARB_sparse_texture2 MS34

* Added ShaderExtensionTestCase,
* Added SparseTexture2LookupTestCase

Change-Id: I444205daec25d875ac0eea3662ad28482e12695e

7 years agoMerge vulkancts/opengl-cts-es-3.2.2 into vulkancts/opengl-cts-dev
Alexander Galazin [Wed, 18 Jan 2017 07:28:57 +0000 (08:28 +0100)]
Merge vulkancts/opengl-cts-es-3.2.2 into vulkancts/opengl-cts-dev

Change-Id: I014d453d1fbd0f028783765bdc78ff548f5d12ab

7 years agoUpdate zlib dependency to zlib 1.2.11
Alexander Galazin [Mon, 16 Jan 2017 08:15:59 +0000 (09:15 +0100)]
Update zlib dependency to zlib 1.2.11

Fixes Vulkan CTS issue: #579

Change-Id: Ib0cd05616cbb4759d63bcf15ba8e8f6f374e291d
(cherry picked from commit 1be44d17818bd119885ad24bd9665ab3db933834)

7 years agoMerge vulkancts/vulkan-cts-1.0-dev into vulkancts/opengl-cts-dev
Pyry Haulos [Tue, 17 Jan 2017 22:25:03 +0000 (14:25 -0800)]
Merge vulkancts/vulkan-cts-1.0-dev into vulkancts/opengl-cts-dev

Change-Id: Ica9b259ebbd8281891f3fd5c8154a96a2ad4bffe

7 years agoMerge vulkancts/vulkan-cts-1.0-dev into vulkancts/vulkan-cts-next-dev
Pyry Haulos [Tue, 17 Jan 2017 22:25:02 +0000 (14:25 -0800)]
Merge vulkancts/vulkan-cts-1.0-dev into vulkancts/vulkan-cts-next-dev

Change-Id: I393de5ac0bf1f385b62cb3164702fd7bd15b2b8e

7 years agoMerge vulkancts/vulkan-cts-1.0.2-extensions into vulkancts/vulkan-cts-next-dev
Pyry Haulos [Tue, 17 Jan 2017 22:25:02 +0000 (14:25 -0800)]
Merge vulkancts/vulkan-cts-1.0.2-extensions into vulkancts/vulkan-cts-next-dev

Change-Id: I9b6628348b5a8c176374c7946ce7a3425dbc85d1

7 years agoMerge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0-dev
Pyry Haulos [Tue, 17 Jan 2017 22:25:01 +0000 (14:25 -0800)]
Merge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0-dev

Change-Id: I42ef5e23579c3c51667f102ac3379daf02537153

7 years agoMerge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0.2-extensions
Pyry Haulos [Tue, 17 Jan 2017 22:25:00 +0000 (14:25 -0800)]
Merge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0.2-extensions

Change-Id: Ic1ed6a7a99ef999c542677136bbf87f7a3085f84

7 years agoMerge vulkancts/vulkan-cts-1.0.1 into vulkancts/vulkan-cts-1.0.2
Pyry Haulos [Tue, 17 Jan 2017 22:24:59 +0000 (14:24 -0800)]
Merge vulkancts/vulkan-cts-1.0.1 into vulkancts/vulkan-cts-1.0.2

Change-Id: I0ddead63d83e79809d35df7f3108ade58a13d0e6

7 years agoMerge vulkancts/vulkan-cts-1.0.0 into vulkancts/vulkan-cts-1.0.1
Pyry Haulos [Tue, 17 Jan 2017 22:24:57 +0000 (14:24 -0800)]
Merge vulkancts/vulkan-cts-1.0.0 into vulkancts/vulkan-cts-1.0.1

Change-Id: I4742b81f85d9b09efd77b954d432e28fefabf818

7 years agoUpdate zlib dependency to zlib 1.2.11
Alexander Galazin [Mon, 16 Jan 2017 08:15:59 +0000 (09:15 +0100)]
Update zlib dependency to zlib 1.2.11

Fixes Vulkan CTS issue: #579

Change-Id: Ib0cd05616cbb4759d63bcf15ba8e8f6f374e291d

7 years agoUpdate GL CTS README to point to GitHub VK GL CTS wiki
Alexander Galazin [Fri, 13 Jan 2017 21:41:32 +0000 (22:41 +0100)]
Update GL CTS README to point to GitHub VK GL CTS wiki

Change-Id: Ia06ec8801cb840e25dbe6012de34ce38ffd79467
(cherry picked from commit 41833f93fa1a551affefa71a16fc73e7afdf2ef8)

7 years agoUpdate GL CTS README to point to GitHub VK GL CTS wiki
Alexander Galazin [Fri, 13 Jan 2017 21:41:32 +0000 (22:41 +0100)]
Update GL CTS README to point to GitHub VK GL CTS wiki

Change-Id: Ia06ec8801cb840e25dbe6012de34ce38ffd79467

7 years agoMerge vulkancts/vulkan-cts-1.0-dev into vulkancts/opengl-cts-dev
Pyry Haulos [Fri, 13 Jan 2017 20:20:47 +0000 (12:20 -0800)]
Merge vulkancts/vulkan-cts-1.0-dev into vulkancts/opengl-cts-dev

Change-Id: I3b3e5e6367a0b8aa998ddebd0ad238870c778e6b

7 years agoMerge vulkancts/vulkan-cts-1.0-dev into vulkancts/vulkan-cts-next-dev
Pyry Haulos [Fri, 13 Jan 2017 20:20:45 +0000 (12:20 -0800)]
Merge vulkancts/vulkan-cts-1.0-dev into vulkancts/vulkan-cts-next-dev

Change-Id: I570354cf0a0a6772ec7c46a701b0b57c11731cc2

7 years agoMerge vulkancts/vulkan-cts-1.0.2-extensions into vulkancts/vulkan-cts-next-dev
Pyry Haulos [Fri, 13 Jan 2017 20:20:45 +0000 (12:20 -0800)]
Merge vulkancts/vulkan-cts-1.0.2-extensions into vulkancts/vulkan-cts-next-dev

Change-Id: I65d15093d1330d5b93e4dc359d735244c8449b87

7 years agoMerge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0-dev
Pyry Haulos [Fri, 13 Jan 2017 20:20:44 +0000 (12:20 -0800)]
Merge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0-dev

Change-Id: I23e7239a4af6fbb1925c30e8a9b73c7e942d3ffc

7 years agoMerge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0.2-extensions
Pyry Haulos [Fri, 13 Jan 2017 20:20:42 +0000 (12:20 -0800)]
Merge vulkancts/vulkan-cts-1.0.2 into vulkancts/vulkan-cts-1.0.2-extensions

Change-Id: I046575e2c44ec537c1c07581b0100449d9232f61

7 years agoBugfix: Allow UBO sparse allocation larger than maxUniformBufferRange
Maciej Jesionowski [Thu, 12 Jan 2017 12:42:45 +0000 (13:42 +0100)]
Bugfix: Allow UBO sparse allocation larger than maxUniformBufferRange

Modified tests:
- dEQP-VK.sparse_resources.buffer.ubo.*

Fixes #573

Change-Id: I33d2098d5b6b783fa8293c7cb1af7e782b51df77

7 years agoMerge vulkancts/opengl-cts-es-3.2.2 into vulkancts/opengl-cts-dev
Alexander Galazin [Fri, 13 Jan 2017 17:21:09 +0000 (18:21 +0100)]
Merge vulkancts/opengl-cts-es-3.2.2 into vulkancts/opengl-cts-dev

Change-Id: I35a77f7ae74c294d760df6c7a897c0cd7d5f4643

7 years agoAdded CTS_ARB_texture_filter_minmax tests
Filip Demczewski [Thu, 24 Nov 2016 16:51:50 +0000 (17:51 +0100)]
Added CTS_ARB_texture_filter_minmax tests

Change-Id: I30d0ee7ef7e6796a2de85c4affd911d552dd106e

7 years agoExtended CTS_ARB_sparse_texture2 MS33
Adam Czupryna [Wed, 30 Nov 2016 15:54:57 +0000 (16:54 +0100)]
Extended CTS_ARB_sparse_texture2 MS33

* Added SparseTexture2CommitmentTestCase
* Added UncommittedRegionsAccessTestCase
* Added extension support check

Change-Id: I6f5b80631ae1f7bd9897db7544238ae5ff19213b

7 years agoRun GTF EGL tests only in 'window' configs
Alexander Galazin [Wed, 11 Jan 2017 06:51:53 +0000 (07:51 +0100)]
Run GTF EGL tests only in 'window' configs

Fixes OSS CTS #40

Change-Id: I6967bb63fb58863bcf143a27c01e84ccf536ccf8

7 years agoAdded CTS_ARB_shader_viewport_layer_array specification proposal
Filip Demczewski [Thu, 8 Dec 2016 10:08:31 +0000 (11:08 +0100)]
Added CTS_ARB_shader_viewport_layer_array specification proposal

Change-Id: Id391811a9e5d780b2afac5efeceb1c3f67f8d7cb

7 years agoDrawElementsBaseVertexTestBase: call base class init() method
Alexander Galazin [Thu, 15 Dec 2016 17:54:41 +0000 (18:54 +0100)]
DrawElementsBaseVertexTestBase: call base class init() method

Fixes OpenGL OSS-CTS issue 26
Without it, test fail with:
InternalError (Value for parameter 'VERSION' not found in map at tcuStringTemplate.cpp:113)
because the shader m_specializationMap is not initialized.

Original MR https://gitlab.khronos.org/opengl/oss-cts/merge_requests/129
by Nicolai Hähnle

Change-Id: Ifff450f4b91bc21d368bd6bfbd145849ae80765a

7 years agogl4cComputeShaderTests: fix pipeline-compute-chain for changes in tcuMatrix
Nicolai Hähnle [Fri, 23 Dec 2016 11:01:15 +0000 (12:01 +0100)]
gl4cComputeShaderTests: fix pipeline-compute-chain for changes in tcuMatrix

tcuMatrix now stores data in column-major order (i.e. matches the default
setting of GLSL). Previously, it stored data in row-major order, so the
test needs to be updated to reflect this change.

Change-Id: I89f13acbb1dd2858fa4768eca5efa40ee516805e

7 years agogl4cPipelineStatisticsQueryTests: fix expected vertex count
Nicolai Hähnle [Sat, 10 Dec 2016 18:46:11 +0000 (19:46 +0100)]
gl4cPipelineStatisticsQueryTests: fix expected vertex count

Restore the orginal version of
getExpectedVerticesSubmittedQueryResult. It got replaced by logic
that computes the number of primitives instead.

Change-Id: I7fbd8cfe2a2310ab8ec43c7cc8e7605d0060f65f

7 years agoFix memoryTypeBits validation in memory.requirements.buffer
Pyry Haulos [Thu, 12 Jan 2017 23:27:44 +0000 (15:27 -0800)]
Fix memoryTypeBits validation in memory.requirements.buffer

Memory type bits returned for a subset of all possible usage flags must
be a superset of memory type bits returned for all usage flags case, not
the other way around.

Affects: dEQP-VK.memory.requirements.buffer.*

Vulkan CTS issue: 578

Change-Id: Iff34ffbf571fa7b0bd2d5e769e32d82a4dc9229e

7 years agoBugfix: provide enough VkClearValues in ImageSamplingInstance
Maciej Jesionowski [Thu, 12 Jan 2017 11:23:44 +0000 (12:23 +0100)]
Bugfix: provide enough VkClearValues in ImageSamplingInstance

Affected tests:
- dEQP-VK.pipeline.image.*
- dEQP-VK.pipeline.image_view.*

Fixes #575

Change-Id: Ie2fbdf9b926c677c54aca4b4cfd6b107be451c7f

7 years agoDo not require unsupported sparse images in image_format_properties test
Slawomir Cygan [Tue, 10 Jan 2017 15:59:29 +0000 (16:59 +0100)]
Do not require unsupported sparse images in image_format_properties test

Affects tests: dEQP-VK.api.info.image_format_properties*

This change removes the requirement for supporting sparse residency images:
- with compressed format
- with non-color format
- with format of pixel size that is not power ot two (for example: RGB).

 Additionally do not require 1D sparse residency images (not in spec),
 and require 2D/3D residency images basing on the device capabilities.

Spec 28.1. Sparse Resource Features:
"A sparse image created using VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT
supports all non-compressed color formats with power-of-two element
size that non-sparse usage supports.

(...)

sparseResidencyImage2D: Support for creating 2D single-sampled VkImage
objects with VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT.

sparseResidencyImage3D: Support for creating 3D VkImage objects with
 VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT.
"

Fixes bug: gitlab!567

Change-Id: If7d72c4392299e4c449a911140632dcc114fc908

7 years agoFix VkCmdImageBlit usage in blitting tests
Alexander Galazin [Thu, 12 Jan 2017 11:53:30 +0000 (12:53 +0100)]
Fix VkCmdImageBlit usage in blitting tests

Some tests call VkCmdImageBlit with a 2D destination image and a region
with dstOffset[0].z=1, dstOffset[1].z=0.

The spec says that it should be the opposite.

Affects:
dEQP-VK.api.copy_and_blit.blit_image.simple_tests.mirror_xy_nearest
dEQP-VK.api.copy_and_blit.blit_image.simple_tests.mirror_y_nearest

Components: Vulkan

Fixes Vulkancts issue: #576

Change-Id: Iaa05f3b38cd46c39d313bd044b37535c112b77dd

7 years agoUse deAlign64 in api.buffer and sparse_resources
Maciej Jesionowski [Tue, 10 Jan 2017 12:15:45 +0000 (13:15 +0100)]
Use deAlign64 in api.buffer and sparse_resources

Change-Id: I087d99db106555a806c6864e67c9af12fb5c67b2

7 years agoAdd deInt64 alignment functions to delibs
Maciej Jesionowski [Tue, 10 Jan 2017 12:09:14 +0000 (13:09 +0100)]
Add deInt64 alignment functions to delibs

Change-Id: Icf66e7157ae6e972e0d7ef19486fa5b776da1eb0

7 years agoRevert "Generate flat triangles in polygon offset tests."
Alexander Galazin [Wed, 11 Jan 2017 07:49:11 +0000 (08:49 +0100)]
Revert "Generate flat triangles in polygon offset tests."

This reverts commit b95e37d04894664aae9cb96a38063684fb4a070d.

7 years agoGenerate flat triangles in polygon offset tests.
Alexander Galazin [Wed, 11 Jan 2017 07:37:13 +0000 (08:37 +0100)]
Generate flat triangles in polygon offset tests.

The tests setup triangles with a depth slope and then call
glPolygonOffset(factor, units) with variable units and
always 0 slope scaled factor.

According to the GLES 3.2 spec 13.7.2 Depth Offset:
"void PolygonOffset( float factor, float units );
factor scales the maximum depth slope of the polygon, and units scales an
implementation-dependent constant that relates to the usable resolution of the
depth buffer."

If the polygon has a depth slope,
the depth slope factor has to be not equal to zero.
The rationale of the slope scaled factor is to ensure that the offset
(equation 13.11) is greater than max(dz/dx, dz/dy) for all resolutions,
which may not be the case for the constant offset since it doesn't take
the screen resolution into account.

Change-Id: Ic87d641f814e2f977ccccc45944bef7f4e254add

7 years agoMerge gerrit/vulkan-cts-1.0-dev into gerrit/opengl-cts-dev
Pyry Haulos [Tue, 10 Jan 2017 20:21:17 +0000 (12:21 -0800)]
Merge gerrit/vulkan-cts-1.0-dev into gerrit/opengl-cts-dev

Change-Id: I027046f847315da035a19ae1267d18bea84e67b2

7 years agoMerge gerrit/vulkan-cts-1.0-dev into gerrit/vulkan-cts-next-dev
Pyry Haulos [Tue, 10 Jan 2017 20:21:15 +0000 (12:21 -0800)]
Merge gerrit/vulkan-cts-1.0-dev into gerrit/vulkan-cts-next-dev

Change-Id: I01010b00d0f3a98b4d4908bf0d94a824ae96ff97

7 years agoMerge gerrit/vulkan-cts-1.0.2-extensions into gerrit/vulkan-cts-next-dev
Pyry Haulos [Tue, 10 Jan 2017 20:21:15 +0000 (12:21 -0800)]
Merge gerrit/vulkan-cts-1.0.2-extensions into gerrit/vulkan-cts-next-dev

Change-Id: I3fbe67feeb37915d1e41b5f88a40546adbdbffa8

7 years agoMerge gerrit/vulkan-cts-1.0.2 into gerrit/vulkan-cts-1.0-dev
Pyry Haulos [Tue, 10 Jan 2017 20:21:14 +0000 (12:21 -0800)]
Merge gerrit/vulkan-cts-1.0.2 into gerrit/vulkan-cts-1.0-dev

Change-Id: I104cae5b8ad882dbead6e15b6cf6514b8b9f48cd

7 years agoMerge gerrit/vulkan-cts-1.0.2 into gerrit/vulkan-cts-1.0.2-extensions
Pyry Haulos [Tue, 10 Jan 2017 20:21:13 +0000 (12:21 -0800)]
Merge gerrit/vulkan-cts-1.0.2 into gerrit/vulkan-cts-1.0.2-extensions

Change-Id: I03ac764c0248a7df434ff871abded41b1b03823e

7 years agoUpdate mustpass version to 1.0.2 in README.md
Pyry Haulos [Tue, 10 Jan 2017 20:20:15 +0000 (12:20 -0800)]
Update mustpass version to 1.0.2 in README.md

Change-Id: Ia683c10238ede6a712a46d14d936ef0032937e9e

7 years agoMerge gerrit/vulkan-cts-1.0-dev into gerrit/opengl-cts-dev
Pyry Haulos [Tue, 10 Jan 2017 20:18:40 +0000 (12:18 -0800)]
Merge gerrit/vulkan-cts-1.0-dev into gerrit/opengl-cts-dev

Change-Id: I3a85bd404f90b45cfb1305f6125c236518ffa4f4

7 years agoMerge gerrit/vulkan-cts-1.0-dev into gerrit/vulkan-cts-next-dev
Pyry Haulos [Tue, 10 Jan 2017 20:18:37 +0000 (12:18 -0800)]
Merge gerrit/vulkan-cts-1.0-dev into gerrit/vulkan-cts-next-dev

Change-Id: Id438831009be51b1fb0afd60a1ab82d539246ea7

7 years agoMerge gerrit/vulkan-cts-1.0.2-extensions into gerrit/vulkan-cts-next-dev
Pyry Haulos [Tue, 10 Jan 2017 20:18:36 +0000 (12:18 -0800)]
Merge gerrit/vulkan-cts-1.0.2-extensions into gerrit/vulkan-cts-next-dev

Change-Id: I85d5b331d324d7ef4c8127fea1394801aa207bbf

7 years agoMerge gerrit/vulkan-cts-1.0.2 into gerrit/vulkan-cts-1.0-dev
Pyry Haulos [Tue, 10 Jan 2017 20:18:34 +0000 (12:18 -0800)]
Merge gerrit/vulkan-cts-1.0.2 into gerrit/vulkan-cts-1.0-dev

Change-Id: I74387a3ed98feb4162b3d49a411cb220d0f050e9

7 years agoMerge gerrit/vulkan-cts-1.0.2 into gerrit/vulkan-cts-1.0.2-extensions
Pyry Haulos [Tue, 10 Jan 2017 20:18:31 +0000 (12:18 -0800)]
Merge gerrit/vulkan-cts-1.0.2 into gerrit/vulkan-cts-1.0.2-extensions

Change-Id: I9149408b579c01cd5d7c16bdcdf408aae6819501

7 years agoAllow unknown KHX extensions
Pyry Haulos [Sun, 8 Jan 2017 22:42:32 +0000 (14:42 -0800)]
Allow unknown KHX extensions

Affects:

dEQP-VK.api.info.instance.extensions
dEQP-VK.api.info.device.extensions

Change-Id: Iece3f83514f5f6e197fd0c1e1cf628f7cfe68bd2

7 years agoCorrect expected error to INVALID_OPERATION
Weiwan Liu [Fri, 23 Dec 2016 00:25:19 +0000 (16:25 -0800)]
Correct expected error to INVALID_OPERATION

Correct error code per ES 3.2 spec:
"An INVALID_OPERATION error is generated if attachment is
COLOR_ATTACHMENTm where m is greater than or equal to the
value of MAX_COLOR_ATTACHMENTS."

Change-Id: I5ee47fbb5d1f099d62cee9e20fd8ae0b55d766b3

7 years agoRemove pooled objects from alloc_callback_fail group
Maciej Jesionowski [Mon, 9 Jan 2017 11:05:32 +0000 (12:05 +0100)]
Remove pooled objects from alloc_callback_fail group

The pooled objects (VkDescriptorSet and VkCommandBuffer) are properly
handled in the alloc_callback_fail_multiple group. The removed cases
were redundant, and also didn't work correctly with pooled objects.

Removed tests:
- dEQP-VK.api.object_management.alloc_callback_fail.descriptor_set
- dEQP-VK.api.object_management.alloc_callback_fail.command_buffer_primary
- dEQP-VK.api.object_management.alloc_callback_fail.command_buffer_secondary

Change-Id: I212b544096e6e1fd5b98c7985d836e41247107e9

7 years agoSkip anisotropic filtering tests if the feature is not supported.
Alexander Galazin [Mon, 9 Jan 2017 14:17:02 +0000 (15:17 +0100)]
Skip anisotropic filtering tests if the feature is not supported.

dEQP-VK.texture.filtering_anisotropy.* tests assume that an
implementation supports anisotropic filtering and should be skipped in
case VkPhysicalDeviceFeatures::samplerAnisotropy is VK_FALSE.

Fixes #570

Change-Id: I0601fe67a0e81b71670dac7ec8b83b4dc35c576c

7 years agoES{2,3}: Clamp the x, y location of the viewport's bottom-left corner
Anuj Phogat [Fri, 30 Sep 2016 17:46:49 +0000 (10:46 -0700)]
ES{2,3}: Clamp the x, y location of the viewport's bottom-left corner

Affected tests:
dEQP-GLES2.functional.state_query.integers.viewport_getfloat
dEQP-GLES2.functional.state_query.integers.viewport_getinteger
dEQP-GLES3.functional.state_query.integers.viewport_getfloat
dEQP-GLES3.functional.state_query.integers.viewport_getinteger
dEQP-GLES3.functional.state_query.integers.viewport_getinteger64

Above CTS tests are not clamping the x, y location of the viewport's
bottom-left corner as recommended by ARB_viewport_array and
OES_viewport_array.
Tests later compare the clamped x, y values read back from the driver
with reference unclamped  x, y values resulting in to false failures.

From OES_viewport_array:
"The location of the viewport's bottom-left corner, given by (x,y), are
clamped to be within the implementation-dependent viewport bounds range.
The viewport bounds range [min, max] tuple may be determined by calling
GetFloatv with the symbolic constant VIEWPORT_BOUNDS_RANGE_OES"

Change-Id: I380e0d03291d3b4b8cbc698ff80624860b0f2f05
(cherry picked from commit 555ed53736072fc9b50993cbc0550a70902a0bf9)

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
(cherry picked from commit 8744b7d393cbdba8a2c356e9d4e4d625b9468f9a)

7 years agoES{2,3}: Clamp the x, y location of the viewport's bottom-left corner
Anuj Phogat [Fri, 30 Sep 2016 17:46:49 +0000 (10:46 -0700)]
ES{2,3}: Clamp the x, y location of the viewport's bottom-left corner

Affected tests:
dEQP-GLES2.functional.state_query.integers.viewport_getfloat
dEQP-GLES2.functional.state_query.integers.viewport_getinteger
dEQP-GLES3.functional.state_query.integers.viewport_getfloat
dEQP-GLES3.functional.state_query.integers.viewport_getinteger
dEQP-GLES3.functional.state_query.integers.viewport_getinteger64

Above CTS tests are not clamping the x, y location of the viewport's
bottom-left corner as recommended by ARB_viewport_array and
OES_viewport_array.
Tests later compare the clamped x, y values read back from the driver
with reference unclamped  x, y values resulting in to false failures.

From OES_viewport_array:
"The location of the viewport's bottom-left corner, given by (x,y), are
clamped to be within the implementation-dependent viewport bounds range.
The viewport bounds range [min, max] tuple may be determined by calling
GetFloatv with the symbolic constant VIEWPORT_BOUNDS_RANGE_OES"

Change-Id: I380e0d03291d3b4b8cbc698ff80624860b0f2f05

7 years agoDrawElementsBaseVertexTestBase: add missing '}'
Nicolai Hähnle [Thu, 22 Dec 2016 14:54:02 +0000 (15:54 +0100)]
DrawElementsBaseVertexTestBase: add missing '}'

Fixes GL45-CTS.draw_elements_base_vertex_tests.invalid_*

Change-Id: I1d1a3a1e326340631c1b4def18f7fa1fdc0c36a9

7 years agoDrawElementsBaseVertexTestBase: call base class init() method
Nicolai Hähnle [Mon, 12 Dec 2016 09:10:52 +0000 (10:10 +0100)]
DrawElementsBaseVertexTestBase: call base class init() method

Without it, test fail with:

  InternalError (Value for parameter 'VERSION' not found in map at tcuStringTemplate.cpp:113)

because the shader m_specializationMap is not initialized.

Change-Id: I993ae7a5f16be4f00b1c10b3013ae0333ef9777d

7 years agoMerge gerrit/vulkan-cts-1.0-dev into gerrit/opengl-cts-dev
Pyry Haulos [Fri, 6 Jan 2017 20:45:02 +0000 (12:45 -0800)]
Merge gerrit/vulkan-cts-1.0-dev into gerrit/opengl-cts-dev

Change-Id: I326010e9a243d5c94c63d23c48c39e1dcab34320

7 years agoMerge gerrit/vulkan-cts-1.0-dev into gerrit/vulkan-cts-next-dev
Pyry Haulos [Fri, 6 Jan 2017 20:45:00 +0000 (12:45 -0800)]
Merge gerrit/vulkan-cts-1.0-dev into gerrit/vulkan-cts-next-dev

Change-Id: Ie32dbd8413b31f354882b5e114c281af4a9532eb

7 years agoMerge gerrit/vulkan-cts-1.0.2-extensions into gerrit/vulkan-cts-next-dev
Pyry Haulos [Fri, 6 Jan 2017 20:44:59 +0000 (12:44 -0800)]
Merge gerrit/vulkan-cts-1.0.2-extensions into gerrit/vulkan-cts-next-dev

Change-Id: Ie495cb0ecf07ff898e1d15f98361cf1af835f304

7 years agoMerge gerrit/vulkan-cts-1.0.2 into gerrit/vulkan-cts-1.0-dev
Pyry Haulos [Fri, 6 Jan 2017 20:44:58 +0000 (12:44 -0800)]
Merge gerrit/vulkan-cts-1.0.2 into gerrit/vulkan-cts-1.0-dev

Change-Id: I5d98762111c8dba323a81a7179026d009f39934e

7 years agoMerge gerrit/vulkan-cts-1.0.2 into gerrit/vulkan-cts-1.0.2-extensions
Pyry Haulos [Fri, 6 Jan 2017 20:44:57 +0000 (12:44 -0800)]
Merge gerrit/vulkan-cts-1.0.2 into gerrit/vulkan-cts-1.0.2-extensions

Change-Id: I71d19d9c1ad5542f7aa047820b48328e4b0f5c52

7 years agoMerge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0.2
Pyry Haulos [Fri, 6 Jan 2017 20:44:56 +0000 (12:44 -0800)]
Merge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0.2

Change-Id: Ic1b09c684e6535fcaba6e4d7dd407b2fbbe40b6d

7 years agoOptimize swapchain OOM tests
Pyry Haulos [Wed, 4 Jan 2017 22:30:07 +0000 (14:30 -0800)]
Optimize swapchain OOM tests

Swapchain OOM tests were hitting timeouts on some platforms. This commit
optimizes the tests in two ways:

 * VkInstance, VkDevice, and VkSurface are now re-used across all
sub-cases.

 * Loop is re-written to avoid re-creating swapchains for parameters
0..N-1 when testing parameter combination N.

Affects: dEQP-VK.wsi.*.swapchain.simulate_oom.*

Bug: 33555898
Change-Id: Ib5e1a4944e4c400a5d430c5a3d20fe0930c6eed0

7 years agoSkip unsupported attachment formats in granularity tests
Lionel Landwerlin [Fri, 23 Dec 2016 17:11:14 +0000 (17:11 +0000)]
Skip unsupported attachment formats in granularity tests

Change-Id: Iffbd79d0ddb3c212f75895c266b3e3ec7d2a01da

7 years agoFix framebuffer number of layers in granularity tests
Lionel Landwerlin [Fri, 23 Dec 2016 17:37:56 +0000 (17:37 +0000)]
Fix framebuffer number of layers in granularity tests

Change-Id: Idf2f1ee6f6f9ab5996ad5d07a7fed84241c57e9b

7 years agoReset Android window state when it is released
Pyry Haulos [Wed, 4 Jan 2017 21:46:48 +0000 (13:46 -0800)]
Reset Android window state when it is released

This avoids leaking window state between tests in WSI tests.

Affects: dEQP-VK.wsi.android.*

Change-Id: I618485fbbc1bb83c86437bb04fbcbfa65b4c04c2

7 years agoAdd OpSMod and OpSRem tests
Jason Ekstrand [Tue, 6 Dec 2016 14:27:56 +0000 (15:27 +0100)]
Add OpSMod and OpSRem tests

New tests:
- dEQP-VK.spirv_assembly.instruction.compute.opsrem.positive
- dEQP-VK.spirv_assembly.instruction.compute.opsrem.all
- dEQP-VK.spirv_assembly.instruction.compute.opsmod.positive
- dEQP-VK.spirv_assembly.instruction.compute.opsmod.all
- dEQP-VK.spirv_assembly.instruction.graphics.srem.positive_*
- dEQP-VK.spirv_assembly.instruction.graphics.srem.all_*
- dEQP-VK.spirv_assembly.instruction.graphics.smod.positive_*
- dEQP-VK.spirv_assembly.instruction.graphics.smod.all_*

Fixes #520

Change-Id: I16fe1e920960b7537ef097952e48dcdcc9141246

7 years agoAdd getDeviceMemoryCommitment test
Zoltan Janos Szabo [Thu, 17 Nov 2016 11:53:14 +0000 (12:53 +0100)]
Add getDeviceMemoryCommitment test

Fixes #553

Change-Id: Ia029f895e5f13187a2bc0fb11c583ab3119f48f7

7 years agoMerge gerrit/vulkan-cts-1.0-dev into gerrit/vulkan-cts-next-dev
Pyry Haulos [Thu, 5 Jan 2017 18:24:39 +0000 (10:24 -0800)]
Merge gerrit/vulkan-cts-1.0-dev into gerrit/vulkan-cts-next-dev

Change-Id: I7d66f528e5716dc9d06574ac0c4af2b981236855

7 years agoMerge gerrit/vulkan-cts-1.0-dev into gerrit/opengl-cts-dev
Pyry Haulos [Thu, 5 Jan 2017 18:24:10 +0000 (10:24 -0800)]
Merge gerrit/vulkan-cts-1.0-dev into gerrit/opengl-cts-dev

Change-Id: I0e30246d8afce9f4b3704c941c57e9fe88098268

7 years agoMerge aosp/master into gerrit/vulkan-cts-1.0-dev
Pyry Haulos [Thu, 5 Jan 2017 18:04:19 +0000 (10:04 -0800)]
Merge aosp/master into gerrit/vulkan-cts-1.0-dev

Change-Id: I6d61156e336937d8c2f534a410b6f2a92987f037

7 years agoMerge gerrit/vulkan-cts-1.0-dev into gerrit/opengl-cts-dev
Pyry Haulos [Thu, 5 Jan 2017 17:58:20 +0000 (09:58 -0800)]
Merge gerrit/vulkan-cts-1.0-dev into gerrit/opengl-cts-dev

Change-Id: If9a06423b0fb4be658187ee4df49817dcc9b0394

7 years agoMerge gerrit/vulkan-cts-1.0-dev into gerrit/vulkan-cts-next-dev
Pyry Haulos [Thu, 5 Jan 2017 17:58:18 +0000 (09:58 -0800)]
Merge gerrit/vulkan-cts-1.0-dev into gerrit/vulkan-cts-next-dev

Change-Id: Ia7a0ff45e1e45e2878f1a8028fa1c560739d276e

7 years agoMerge gerrit/vulkan-cts-1.0.2-extensions into gerrit/vulkan-cts-next-dev
Pyry Haulos [Thu, 5 Jan 2017 17:58:18 +0000 (09:58 -0800)]
Merge gerrit/vulkan-cts-1.0.2-extensions into gerrit/vulkan-cts-next-dev

Change-Id: I7dab04cd38b9558c3f3f43dd7eb509891bdba71d