platform/upstream/VK-GL-CTS.git
7 years agoCheck for shader type support in negative precise tests am: 4a3a2d79a0
Pyry Haulos [Wed, 19 Oct 2016 16:02:24 +0000 (16:02 +0000)]
Check for shader type support in negative precise tests am: 4a3a2d79a0
am: 09137b73d2

Change-Id: I34475374f56be462dfa985fff48def9218e6fbde

7 years agoMerge "Check for shader type support in negative shader directive tests" into nougat...
Tina Zhou [Wed, 19 Oct 2016 16:02:12 +0000 (16:02 +0000)]
Merge "Check for shader type support in negative shader directive tests" into nougat-cts-dev am: a3513e86ff
am: 6fa068040b

Change-Id: Id74ce212fe8042067f6a41276d323ca80833eb48

7 years agoCheck for shader type support in negative shader directive tests am: cf6e6ab134
Pyry Haulos [Wed, 19 Oct 2016 16:01:58 +0000 (16:01 +0000)]
Check for shader type support in negative shader directive tests am: cf6e6ab134
am: 3dd07d23f6

Change-Id: I24d9cebf2adc996993a0f04ff3ea608df444edbe

7 years agoCheck for shader type support in negative precise tests
Pyry Haulos [Wed, 19 Oct 2016 15:54:13 +0000 (15:54 +0000)]
Check for shader type support in negative precise tests
am: 4a3a2d79a0

Change-Id: If11ec3c8cffdf5c152da4ebe8ea434aa67a61671

7 years agoMerge "Check for shader type support in negative shader directive tests" into nougat...
Tina Zhou [Wed, 19 Oct 2016 15:53:59 +0000 (15:53 +0000)]
Merge "Check for shader type support in negative shader directive tests" into nougat-cts-dev
am: a3513e86ff

Change-Id: I2c16e596fd38fb2a2b0455df8dab147fe69a8d99

7 years agoCheck for shader type support in negative shader directive tests
Pyry Haulos [Wed, 19 Oct 2016 15:53:58 +0000 (15:53 +0000)]
Check for shader type support in negative shader directive tests
am: cf6e6ab134

Change-Id: I575d8bebe3e3fdda7cb97b87325715bf940aeef3

7 years agoMerge "Check for shader type support in negative shader directive tests" into nougat...
Tina Zhou [Wed, 19 Oct 2016 15:50:37 +0000 (15:50 +0000)]
Merge "Check for shader type support in negative shader directive tests" into nougat-cts-dev

7 years agoFix -Wc++11-narrowing warnings
Colin Cross [Tue, 18 Oct 2016 01:02:33 +0000 (01:02 +0000)]
Fix -Wc++11-narrowing warnings
am: 41460f757d

Change-Id: I6f54850cacf413eb194c07ace9bf76a9dab536cc

7 years agoFix -Wc++11-narrowing warnings
Colin Cross [Mon, 17 Oct 2016 22:49:30 +0000 (15:49 -0700)]
Fix -Wc++11-narrowing warnings

The platform default -std=gnu++14 is going to be applied to NDK modules,
cast DE_OFFSET_OF to deUint32 instead of int to prevent a new -Werror
failure.

Test: mma -j
Change-Id: Ief5620089bc069006664d39d68090ea8310344ac

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master
Pyry Haulos [Fri, 14 Oct 2016 23:00:28 +0000 (23:00 +0000)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master
am: 5f69b27051

Change-Id: Ic9ac375163fd1de9a1a1a7e7549894a4faa200a2

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master
Pyry Haulos [Fri, 14 Oct 2016 20:48:05 +0000 (13:48 -0700)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master

Change-Id: I782798e35e4537d7cc0dbbc7a2f46f6adebc682d

7 years agoMerge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev
Pyry Haulos [Fri, 14 Oct 2016 20:47:48 +0000 (13:47 -0700)]
Merge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev

Change-Id: I9def7f39ac7f4d4312b1c0469f718e17b6a3d673

7 years agoRelax precision in OpTextureQueryLod tests
Pyry Haulos [Tue, 11 Oct 2016 20:09:28 +0000 (13:09 -0700)]
Relax precision in OpTextureQueryLod tests

This change allows for the full LOD implementation range allowed by the
specification.

Affects dEQP-VK.glsl.texture_functions.query.texturequerylod.*

Fixes #510

Change-Id: Iacb73ea840052983a9ab8402460e4e0a9e911b07

7 years agocopy_and_blit.blit_image: fix threshold computation
Lionel Landwerlin [Wed, 12 Oct 2016 18:03:31 +0000 (19:03 +0100)]
copy_and_blit.blit_image: fix threshold computation

Threshold should not be ceiled, affecting all blit tests with
floating point format as destination :

dEQP-VK.api.copy_and_blit.blit_image.all_formats.*sfloat*

Also use the source texture to get the source format.

Fixes #516

Change-Id: I4c49007070306d597e36f7b79ee969ef5081d19e

7 years agoFix OpVariable position in OpInBoundsAccessChain tests.
Gabor Abraham [Thu, 8 Sep 2016 15:15:35 +0000 (17:15 +0200)]
Fix OpVariable position in OpInBoundsAccessChain tests.

Fixes #489

Change-Id: I4ee027fd82f5a5f5d54dd3abd4d9b50250eb3e31
(cherry picked from commit 5f7c4c5e0bdd9090a6ae5cab8bdf73d726bb2c41)

7 years agoMerge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev
Pyry Haulos [Fri, 14 Oct 2016 20:16:49 +0000 (13:16 -0700)]
Merge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev

Change-Id: I29c4d7be30a0e5c0dae2218922e5c7b90de18d16

7 years agoUpdate glslang (use SampledImage with OpImageQueryLod)
Maciej Jesionowski [Wed, 12 Oct 2016 15:36:59 +0000 (17:36 +0200)]
Update glslang (use SampledImage with OpImageQueryLod)

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

Fixes #514

Change-Id: Iea4c3f6007dc34a618e2171358a6ecc1cf57424d

7 years agoMerge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev
Pyry Haulos [Fri, 14 Oct 2016 20:15:18 +0000 (13:15 -0700)]
Merge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev

Change-Id: I2772754cee9cc11e196225d9f5ebe402f6124f75

7 years agoUse tex lookup verifier in ImageSamplingInstance
Pyry Haulos [Thu, 22 Sep 2016 01:26:31 +0000 (18:26 -0700)]
Use tex lookup verifier in ImageSamplingInstance

Simple image comparison is ill-equipped to handle all possible precision
and behavior differences (cube map corner filtering for example). This
change replaces old image comparison method with use of texture lookup
verification utilities.

Instead of rendering a reference image, texture coordinates generated by
the reference rasterizer are captured. The captured coordinates are then
used to verify the result color values retured by the implementation
using the texture lookup verification code.

This affects:
 * dEQP-VK.pipeline.image.*
 * dEQP-VK.pipeline.sampler.*
 * dEQP-VK.pipeline.image_view.*

Fixes #297
Fixes #340

Change-Id: I856000bd4d4aa7ab6c1e69af09f3655b63018b93

7 years agoCOUNT_1_BIT is required min for sampledImageIntegerSampleCounts
Alexander Galazin [Thu, 13 Oct 2016 11:10:35 +0000 (13:10 +0200)]
COUNT_1_BIT is required min for sampledImageIntegerSampleCounts

dEQP-VK.glsl.texture_functions.query.texturesamples.isampler*ms*
should work for VK_SAMPLE_COUNT_1_BIT sample count as these
tests check both MS and integer formats.

Fixes #517

Change-Id: I2f3362b630921f4c1111d84ab0ba291caeb80e9a

7 years agoBugfix: use SPARSE_BINDING flag in sparse_resources test
Maciej Jesionowski [Fri, 7 Oct 2016 10:15:03 +0000 (12:15 +0200)]
Bugfix: use SPARSE_BINDING flag in sparse_resources test

Affected tests:
- dEQP-VK.sparse_resources.buffer_sparse_residency.*

Fixes #508

Change-Id: I8aabcc66501e49138ff51925a07b47d13b4a5664

7 years agodEQP-VK.sparse_resources.shader_intrinsics: OpCompositeExtract needs value id
Slawomir Cygan [Thu, 6 Oct 2016 14:45:31 +0000 (16:45 +0200)]
dEQP-VK.sparse_resources.shader_intrinsics: OpCompositeExtract needs value id

This fixes SPIR-V code used by dEQP-VK.sparse_resources.shader_intrinsics.

This adds missing OpLoad on vaying variable pointer, as pointers cannot be
passed directly to OpCompositeExtract.

Change-Id: I801aae7d49213771ffe17a0ed7fa096ab80b0b37

7 years agoMerge "dEQP-VK.sparse_resources.shader_intrinsics*gather: fix possible of-by-one...
Pyry Haulos [Fri, 14 Oct 2016 19:54:50 +0000 (15:54 -0400)]
Merge "dEQP-VK.sparse_resources.shader_intrinsics*gather: fix possible of-by-one errors" into vulkan-cts-1.0.1

7 years agodEQP-VK.sparse_resources.shader_intrinsics*gather: fix possible of-by-one errors
Slawomir Cygan [Thu, 6 Oct 2016 15:31:47 +0000 (17:31 +0200)]
dEQP-VK.sparse_resources.shader_intrinsics*gather: fix possible of-by-one errors

The test seems to perform GATHER sampling from center of pixels

On un-even image sizes this may cause failures, as texcoord (being float32)
may not exactly represent pixel center, what can cause different 2x2 rectangle to
be gathered.

The fix is to bias texcoord by half a texel, so sampling is always performed
from centre of 2x2 rectangle.

Fixes following tests (for me):
dEQP-VK.sparse_resources.shader_intrinsics.2d_sparse_gather.r32i.503_137_1
dEQP-VK.sparse_resources.shader_intrinsics.2d_sparse_gather.r32i.11_37_1
dEQP-VK.sparse_resources.shader_intrinsics.2d_sparse_gather.r16i.503_137_1
dEQP-VK.sparse_resources.shader_intrinsics.2d_sparse_gather.r16i.11_37_1
dEQP-VK.sparse_resources.shader_intrinsics.2d_sparse_gather.r8i.503_137_1
dEQP-VK.sparse_resources.shader_intrinsics.2d_sparse_gather.r8i.11_37_1
dEQP-VK.sparse_resources.shader_intrinsics.2d_sparse_gather.rgba32ui.503_137_1
dEQP-VK.sparse_resources.shader_intrinsics.2d_sparse_gather.rgba32ui.11_37_1
dEQP-VK.sparse_resources.shader_intrinsics.2d_sparse_gather.rgba16ui.503_137_1
dEQP-VK.sparse_resources.shader_intrinsics.2d_sparse_gather.rgba16ui.11_37_1
dEQP-VK.sparse_resources.shader_intrinsics.2d_sparse_gather.rgba8ui.503_137_1
dEQP-VK.sparse_resources.shader_intrinsics.2d_sparse_gather.rgba8ui.11_37_1
dEQP-VK.sparse_resources.shader_intrinsics.2d_array_sparse_gather.r32i.503_137_3
dEQP-VK.sparse_resources.shader_intrinsics.2d_array_sparse_gather.r32i.11_37_3
dEQP-VK.sparse_resources.shader_intrinsics.2d_array_sparse_gather.r16i.503_137_3
dEQP-VK.sparse_resources.shader_intrinsics.2d_array_sparse_gather.r16i.11_37_3
dEQP-VK.sparse_resources.shader_intrinsics.2d_array_sparse_gather.r8i.503_137_3
dEQP-VK.sparse_resources.shader_intrinsics.2d_array_sparse_gather.r8i.11_37_3
dEQP-VK.sparse_resources.shader_intrinsics.2d_array_sparse_gather.rgba32ui.503_137_3
dEQP-VK.sparse_resources.shader_intrinsics.2d_array_sparse_gather.rgba32ui.11_37_3
dEQP-VK.sparse_resources.shader_intrinsics.2d_array_sparse_gather.rgba16ui.503_137_3
dEQP-VK.sparse_resources.shader_intrinsics.2d_array_sparse_gather.rgba16ui.11_37_3
dEQP-VK.sparse_resources.shader_intrinsics.2d_array_sparse_gather.rgba8ui.503_137_3
dEQP-VK.sparse_resources.shader_intrinsics.2d_array_sparse_gather.rgba8ui.11_37_3

Affects: dEQP-VK.sparse_resources.shader_intrinsics.*gather*

Change-Id: I218d68033e3c83d5270c54731eac3a72c6899173

7 years agoMerge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev
Pyry Haulos [Fri, 14 Oct 2016 19:37:12 +0000 (12:37 -0700)]
Merge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev

Change-Id: I0681cde0cd048ed8c7973c70458d82e568e2fa26

7 years agoMerge gerrit/vulkan-cts-1.0.0 into gerrit/vulkan-cts-1.0.1
Pyry Haulos [Fri, 14 Oct 2016 19:37:10 +0000 (12:37 -0700)]
Merge gerrit/vulkan-cts-1.0.0 into gerrit/vulkan-cts-1.0.1

Change-Id: I623cc43f95bd5d7c967ebbf397bc9fa214585d73

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

7 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

7 years agoGet rid of DEQP_SUPPORT_GLES2, _GLES3, _EGL, _OPENGL
Pyry Haulos [Wed, 12 Oct 2016 20:22:41 +0000 (13:22 -0700)]
Get rid of DEQP_SUPPORT_GLES2, _GLES3, _EGL, _OPENGL

Common code for those APIs don't need platform headers or implementation
libraries to be present build- nor run-time. It then makes sense to
always enable all relevant code paths on build time and have them
gracefully fail on run-time instead if driver libraries can not be found.

Change-Id: I31f417f368206b9ee0d7cadcc0cf5e227bda125f

7 years agoAdd new files to Android.mk
Pyry Haulos [Thu, 13 Oct 2016 20:13:36 +0000 (13:13 -0700)]
Add new files to Android.mk

Change-Id: I506d0cf9ceb61b27917a89185358ffc304abf3b5

7 years agoAdd test: waitForFences with an empty queueSubmit
Maciej Jesionowski [Tue, 27 Sep 2016 13:26:20 +0000 (15:26 +0200)]
Add test: waitForFences with an empty queueSubmit

If submitCount is zero but fence is not VK_NULL_HANDLE, the fence will
still be submitted to the queue and will become signaled when all work
previously submitted to the queue has completed.

New test:
- dEQP-VK.synchronization.basic.fence.empty_submit

Fixes #501

Change-Id: Id5c8acf9ad719b64109c85f54c48b4117217452b

7 years agoAdd mirroring/flipping image tests to vkCmdBlitImage
Zoltan Janos Szabo [Fri, 23 Sep 2016 11:50:43 +0000 (13:50 +0200)]
Add mirroring/flipping image tests to vkCmdBlitImage

Fixes #491

Change-Id: Ia511a82ef61d84e643978797d24e3f0f499fd616

7 years agoAdd instanced draw tests
Kristof Kosztyo [Wed, 14 Sep 2016 13:23:42 +0000 (15:23 +0200)]
Add instanced draw tests

Change-Id: I8f8a2e1b7cfef7f4ab3b12e47715a85b99e06536

7 years agoAdd basic draw tests.
Gabor Abraham [Thu, 8 Sep 2016 14:48:18 +0000 (16:48 +0200)]
Add basic draw tests.

Change-Id: I25aa8a5d42a0171a337f80032cf68a6c956e13b1

7 years agoMerge "Only Windows has strnlen_s." am: 6d40724402 am: a0e2e2b4be
Elliott Hughes [Thu, 13 Oct 2016 15:05:22 +0000 (15:05 +0000)]
Merge "Only Windows has strnlen_s." am: 6d40724402 am: a0e2e2b4be
am: 294fcf964c

Change-Id: I817ed8b22f487854bf5a7142f1a5401e196747be

7 years agoMerge "Only Windows has strnlen_s." am: 6d40724402
Elliott Hughes [Thu, 13 Oct 2016 14:58:32 +0000 (14:58 +0000)]
Merge "Only Windows has strnlen_s." am: 6d40724402
am: a0e2e2b4be

Change-Id: I8c26c69375bd52179067702a870b0af55251b4b4

7 years agoMerge "Only Windows has strnlen_s."
Elliott Hughes [Thu, 13 Oct 2016 14:50:51 +0000 (14:50 +0000)]
Merge "Only Windows has strnlen_s."
am: 6d40724402

Change-Id: I953508dad2cb355dd6357d705a9f1aeb2bfd96ca

7 years agoMerge "Only Windows has strnlen_s."
Elliott Hughes [Thu, 13 Oct 2016 14:38:19 +0000 (14:38 +0000)]
Merge "Only Windows has strnlen_s."

7 years agoCherry-pick image_format_properties changes from upstream am: 43227ff1db am: 2ede225b...
Pyry Haulos [Wed, 12 Oct 2016 17:53:21 +0000 (17:53 +0000)]
Cherry-pick image_format_properties changes from upstream am: 43227ff1db am: 2ede225b00 am: 12ead731f2 am: e14b1813e4
am: 2c374ee3a2

Change-Id: I136bdfb40a7e30b170dcedf96d56a3083f2cb66b

7 years agoCherry-pick image_format_properties changes from upstream am: 43227ff1db am: 2ede225b...
Pyry Haulos [Wed, 12 Oct 2016 17:46:17 +0000 (17:46 +0000)]
Cherry-pick image_format_properties changes from upstream am: 43227ff1db am: 2ede225b00 am: 12ead731f2
am: e14b1813e4

Change-Id: I732640c334d399d0a6b02dfb63761fb76d98e9b9

7 years agoCherry-pick image_format_properties changes from upstream am: 43227ff1db am: 40996a98...
Pyry Haulos [Wed, 12 Oct 2016 17:39:01 +0000 (17:39 +0000)]
Cherry-pick image_format_properties changes from upstream am: 43227ff1db am: 40996a98a2 am: 3edf5fa179
am: 2e3f075e22

Change-Id: Ieaf267ef663df26179db399cf6bb822116812777

7 years agoCherry-pick image_format_properties changes from upstream am: 43227ff1db am: 2ede225b00
Pyry Haulos [Wed, 12 Oct 2016 17:38:49 +0000 (17:38 +0000)]
Cherry-pick image_format_properties changes from upstream am: 43227ff1db am: 2ede225b00
am: 6b6e193ea7

Change-Id: Ibc3c97fb94127d21ccd20fc060d06b5c21cb5320

7 years agoCherry-pick image_format_properties changes from upstream am: 43227ff1db am: 2ede225b00
Pyry Haulos [Wed, 12 Oct 2016 17:38:47 +0000 (17:38 +0000)]
Cherry-pick image_format_properties changes from upstream am: 43227ff1db am: 2ede225b00
am: 12ead731f2

Change-Id: I2f27c7ccae2459bd61ae73bd3a803f77ba4bd598

7 years agoCherry-pick image_format_properties changes from upstream am: 43227ff1db am: 40996a98a2
Pyry Haulos [Wed, 12 Oct 2016 17:32:02 +0000 (17:32 +0000)]
Cherry-pick image_format_properties changes from upstream am: 43227ff1db am: 40996a98a2
am: 3edf5fa179

Change-Id: I6cafeb0cfdada6f2f80801504e595d76c2ed47c3

7 years agoCherry-pick image_format_properties changes from upstream am: 43227ff1db
Pyry Haulos [Wed, 12 Oct 2016 17:31:50 +0000 (17:31 +0000)]
Cherry-pick image_format_properties changes from upstream am: 43227ff1db
am: 2ede225b00

Change-Id: Ibadbd4546c771c2d64e0816e345e3ca8001506b4

7 years agoCherry-pick image_format_properties changes from upstream am: 43227ff1db
Pyry Haulos [Wed, 12 Oct 2016 17:31:47 +0000 (17:31 +0000)]
Cherry-pick image_format_properties changes from upstream am: 43227ff1db
am: 2ede225b00

Change-Id: I8373112a6c00da3c0edae493981e9e033d27d47d

7 years agoCherry-pick image_format_properties changes from upstream am: 43227ff1db
Pyry Haulos [Wed, 12 Oct 2016 17:25:18 +0000 (17:25 +0000)]
Cherry-pick image_format_properties changes from upstream am: 43227ff1db
am: 40996a98a2

Change-Id: I311d71a1a9f86429e5bac8ca4859dfadc90ee9ab

7 years agoCherry-pick image_format_properties changes from upstream
Pyry Haulos [Wed, 12 Oct 2016 17:25:16 +0000 (17:25 +0000)]
Cherry-pick image_format_properties changes from upstream
am: 43227ff1db

Change-Id: Iba326543c4e2217759996d5ec5ff5184174f1d67

7 years agoCherry-pick image_format_properties changes from upstream
Pyry Haulos [Wed, 12 Oct 2016 17:20:48 +0000 (17:20 +0000)]
Cherry-pick image_format_properties changes from upstream
am: 43227ff1db

Change-Id: I47de98067aa69898c83ae57d5771e7c39e8e12e8

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master am: 984f29db76 am: 26c200ccb2
Pyry Haulos [Wed, 12 Oct 2016 17:05:45 +0000 (17:05 +0000)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master am: 984f29db76 am: 26c200ccb2
am: 853e372b40

Change-Id: Id469d7386ef33b8f2f81deb7ec8c08b45bcd4a11

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master am: 984f29db76
Pyry Haulos [Wed, 12 Oct 2016 16:59:31 +0000 (16:59 +0000)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master am: 984f29db76
am: 26c200ccb2

Change-Id: Icdd55ae8164fbdd2584babffb08798f6ede73e9c

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master
Pyry Haulos [Wed, 12 Oct 2016 16:51:44 +0000 (16:51 +0000)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master
am: 984f29db76

Change-Id: Ie7f39ded1f80aa9f178853c504c6126e3a30d326

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master
Pyry Haulos [Wed, 12 Oct 2016 15:03:38 +0000 (08:03 -0700)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master

Change-Id: I6a529bc832d12c7ada1a1ccb3c818f73d35136b6

7 years agoMerge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev
Pyry Haulos [Wed, 12 Oct 2016 15:03:00 +0000 (08:03 -0700)]
Merge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev

Change-Id: I02c07f6c898401da080f6398386953538da5a6bb

7 years agoMerge "Fix required sample counts per spec issue 478" into vulkan-cts-1.0.1
Pyry Haulos [Wed, 12 Oct 2016 15:02:42 +0000 (11:02 -0400)]
Merge "Fix required sample counts per spec issue 478" into vulkan-cts-1.0.1

7 years agoRevert "DO NOT MERGE Check only valid usages in image format query tests" am: 2a98f95c03
Pyry Haulos [Tue, 11 Oct 2016 20:37:33 +0000 (20:37 +0000)]
Revert "DO NOT MERGE Check only valid usages in image format query tests" am: 2a98f95c03
am: 6897aa1d74  -s ours

Change-Id: I81aa3628c7aa651ae00371f5478c1b7f48e7baaf

7 years agoRevert "DO NOT MERGE Check only valid usages in image format query tests"
Pyry Haulos [Tue, 11 Oct 2016 20:25:59 +0000 (20:25 +0000)]
Revert "DO NOT MERGE Check only valid usages in image format query tests"
am: 2a98f95c03

Change-Id: I0115c5bdb8688fded170bac11e1962b61adcdff3

7 years agoCherry-pick image_format_properties changes from upstream
Pyry Haulos [Tue, 11 Oct 2016 17:24:27 +0000 (10:24 -0700)]
Cherry-pick image_format_properties changes from upstream

Bug: 31732496

Contains 4 commits:

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

(cherry picked from commit 83f90be9118a121b47f5e16f04029e205c68f994)

2: Fix VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT handling in query tests

83f90be9 added a check that was intended to make tests treat combination
of TRANSIENT_ATTACHMENT_BIT with non-RT usages invalid. However, that
change was buggy and lead the tests to treat _all_ usages of
TRANSIENT_ATTACHMENT_BIT invalid and thus skip testing them.

(cherry picked from commit 570326e5c8d85fe16fa6ce36de73c8f9bcba4d3e)

3: Do not require TRANSIENT usage support without other RT usages

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

See CTS issue #507 and spec issue #540

(cherry picked from commit 377ad0ad5962351d14badb1857b55dc8e8e49218)

4: Fix required sample counts per spec issue 478

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

See CTS issue #507 and spec issue #478

(cherry picked from commit 02c61e30f50cb04505f421b1ebe07c4a42864acf)

Change-Id: I4c714f887c1554994f90ec361ed44876465cd5a3

7 years agoDo not require TRANSIENT usage support without other RT usages
Pyry Haulos [Mon, 10 Oct 2016 21:42:53 +0000 (14:42 -0700)]
Do not require TRANSIENT usage support without other RT usages

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

See CTS issue #507 and spec issue #540

Change-Id: Ia3a741c1943eea034a27b9479a0a8b4cc0caa09c

7 years agoRevert "DO NOT MERGE Check only valid usages in image format query tests"
Pyry Haulos [Tue, 11 Oct 2016 15:57:23 +0000 (15:57 +0000)]
Revert "DO NOT MERGE Check only valid usages in image format query tests"

Bug: 31732496

This reverts commit c41d4d842779226853f8338e45aa3336b92e2699.

Change-Id: Ie27f075e0f0abb9e5172e2b0420b87d0d08750ad

7 years agoFix required sample counts per spec issue 478
Pyry Haulos [Tue, 11 Oct 2016 15:33:15 +0000 (08:33 -0700)]
Fix required sample counts per spec issue 478

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

See CTS issue #507 and spec issue #478

Change-Id: Id08e798f1c598fe5861234778318acdc3098a3df

7 years agoUpdate glslang
Maciej Jesionowski [Thu, 6 Oct 2016 14:25:52 +0000 (16:25 +0200)]
Update glslang

Change-Id: I45632ec45e142b1967f60d0155ffff11d0352222

7 years agoOnly Windows has strnlen_s.
Elliott Hughes [Sat, 8 Oct 2016 18:13:40 +0000 (11:13 -0700)]
Only Windows has strnlen_s.

The right way to ask for and check for strnlen_s on non-Windows would be:

  As with all bounds-checked functions, strnlen_s is only guaranteed to be
  available if __STDC_LIB_EXT1__ is defined by the implementation and if
  the user defines __STDC_WANT_LIB_EXT1__ to the integer constant 1 before
  including string.h.
    http://en.cppreference.com/w/c/string/byte/strlen

...but only Windows has any of this stuff. Android, Linux, and Mac OS all
don't. They do all have the POSIX 2008 strnlen(3), which is the same function
with a different name, but an earlier change deliberately replaced a call to
strnlen(3) with the current hand-written unoptimized implementation.

Bug: http://b/32019064
Test: builds
Change-Id: I4b5516b6438fe8ef3425c54d2bcddbdbb09b1814

7 years agoDO NOT MERGE Check only valid usages in image format query tests am: c41d4d8427
Mika Isojrvi [Fri, 7 Oct 2016 18:22:35 +0000 (18:22 +0000)]
DO NOT MERGE Check only valid usages in image format query tests am: c41d4d8427
am: 10bd378424  -s ours

Change-Id: Ia5b2fb59049e612ee43389ed1c9e63fed0fbb037

7 years agoDO NOT MERGE Check only valid usages in image format query tests
Mika Isojrvi [Fri, 7 Oct 2016 17:57:00 +0000 (17:57 +0000)]
DO NOT MERGE Check only valid usages in image format query tests
am: c41d4d8427

Change-Id: I774e43677b052e2cfbe8e9cf39ded587ed4588ed

7 years agoDO NOT MERGE Check only valid usages in image format query tests
Mika Isojärvi [Fri, 7 Oct 2016 00:26:22 +0000 (17:26 -0700)]
DO NOT MERGE Check only valid usages in image format query tests

Skip image usage flags that contain VK__IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT
and some incompatible bits or only VK__IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT.

Bug: 31732496
Change-Id: I24a688005aaa2c1546842148492831e66b76c5e6

7 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

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master am: 2f2ce0f048 am: ea762c3174
Pyry Haulos [Thu, 29 Sep 2016 23:19:11 +0000 (23:19 +0000)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master am: 2f2ce0f048 am: ea762c3174
am: 54fec9051e

Change-Id: Ib4c53e718fc14ec812b62dfca699dc7a1889ba80

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master am: 2f2ce0f048
Pyry Haulos [Thu, 29 Sep 2016 23:13:50 +0000 (23:13 +0000)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master am: 2f2ce0f048
am: ea762c3174

Change-Id: I9c5cdf8bbb7264de9999bee88c600ec09ab2a45f

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master
Pyry Haulos [Thu, 29 Sep 2016 23:10:48 +0000 (23:10 +0000)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master
am: 2f2ce0f048

Change-Id: I11d4986391731720f65922dd2ae4223812055999

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master
Pyry Haulos [Thu, 29 Sep 2016 21:13:52 +0000 (14:13 -0700)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master

Change-Id: I0a9fb821325ade846a4fd77e6bc54ed315892f42

7 years agoStart a new mustpass for 1.0.2 and archive 1.0.1
Pyry Haulos [Wed, 28 Sep 2016 21:27:28 +0000 (14:27 -0700)]
Start a new mustpass for 1.0.2 and archive 1.0.1

Change-Id: I7519c1d5862885be08dd203c620037f9593c66b9

7 years agoAdd VK_INCOMPLETE result code tests
Maciej Jesionowski [Mon, 19 Sep 2016 09:15:31 +0000 (11:15 +0200)]
Add VK_INCOMPLETE result code tests

New tests:
- dEQP-VK.wsi.*.swapchain.get_images.incomplete

Modified tests:
- dEQP-VK.api.info.instance.physical_devices
- dEQP-VK.api.info.instance.layers
- dEQP-VK.api.info.instance.extensions
- dEQP-VK.api.info.device.layers
- dEQP-VK.api.info.device.extensions
- dEQP-VK.wsi.*.surface.query_formats
- dEQP-VK.wsi.*.surface.query_present_modes

Fixes #495

Change-Id: I1b493acf2df3039705e3d404c2cdcbb084495f33

7 years agoTest copying data between buffers and images
Szilard Ledan [Wed, 24 Aug 2016 16:04:02 +0000 (18:04 +0200)]
Test copying data between buffers and images

Add new tests to vkCmdCopyBufferToImage

Add two new tests for testing vkCmdCopyImageToBuffer.
Fix one existing test.  The test's description and it's
behaviour didn't match.

Change-Id: I5a2da940c1b6e285954ae39f8bb77d6138053bdd

7 years agoAdd VK_NULL_HANDLE destroy/free tests
Maciej Jesionowski [Fri, 16 Sep 2016 11:07:28 +0000 (13:07 +0200)]
Add VK_NULL_HANDLE destroy/free tests

New tests:
- dEQP-VK.api.null_handle.*
- dEQP-VK.wsi.*.surface.destroy_null_handle
- dEQP-VK.wsi.*.swapchain.destroy.null_handle

Fixes #493

Change-Id: I44541b4d1b44ed8da2ba23e5ae9ba1106ee2c015

7 years agoMerge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev
Pyry Haulos [Thu, 29 Sep 2016 19:25:08 +0000 (12:25 -0700)]
Merge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev

Change-Id: Ia7127ed7764c5276a32388ab2bba024d54dfea5b

7 years agoMerge gerrit/vulkan-cts-1.0.0 into gerrit/vulkan-cts-1.0.1
Pyry Haulos [Thu, 29 Sep 2016 19:25:06 +0000 (12:25 -0700)]
Merge gerrit/vulkan-cts-1.0.0 into gerrit/vulkan-cts-1.0.1

Change-Id: I23cda772fc12dc44429c6a8b69cb2896b442c285

7 years agoRemove use of alloc recorder from descriptor_pool.repeated_reset
Pyry Haulos [Tue, 27 Sep 2016 23:01:53 +0000 (16:01 -0700)]
Remove use of alloc recorder from descriptor_pool.repeated_reset

Recording all allocations can take considerable amount of memory and it
appears that the tests just log the total memory usage and don't
otherwise need or check it.

Fixes #472

Change-Id: Ic8804b6781329a03e42fc481c0d430151b60ca88

7 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

7 years agoblit_image: compute validation threshold based on I/O formats
Lionel Landwerlin [Tue, 9 Aug 2016 12:13:27 +0000 (13:13 +0100)]
blit_image: compute validation threshold based on I/O formats

Whereas dEQP-GLES3.functional.fbo.blit.conversion.rgb565_to_rgba32f is
passing on my Haswell machine,
dEQP-VK.api.copy_and_blit.blit_image.all_formats.r5g6b5_unorm_pack16_r32g32b32a32_sfloat_linear
is failing. It seems the criteria is different between the 2 tests. This
change puts the vulkan tests a bit closer to the GLES3 ones.

Change-Id: I4e4879270baaf707e71de030b916ea49ee0f65ba

7 years agoFix VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT handling in query tests
Pyry Haulos [Mon, 26 Sep 2016 16:04:55 +0000 (09:04 -0700)]
Fix VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT handling in query tests

83f90be9 added a check that was intended to make tests treat combination
of TRANSIENT_ATTACHMENT_BIT with non-RT usages invalid. However, that
change was buggy and lead the tests to treat _all_ usages of
TRANSIENT_ATTACHMENT_BIT invalid and thus skip testing them.

Change-Id: I512fbea6046a5c1a87e2ea957eebe38ac713ac87

7 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

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master am: c85249943b am: c5b63ae362
Pyry Haulos [Tue, 27 Sep 2016 20:27:16 +0000 (20:27 +0000)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master am: c85249943b am: c5b63ae362
am: 49c86a205b

Change-Id: I40f86bef2b2399867b455ee21c84a9774939f5fc

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master am: c85249943b
Pyry Haulos [Tue, 27 Sep 2016 20:24:48 +0000 (20:24 +0000)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master am: c85249943b
am: c5b63ae362

Change-Id: I35c77f19f961feabb67e13ff3e6b38e2f5c7700b

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master
Pyry Haulos [Tue, 27 Sep 2016 20:21:48 +0000 (20:21 +0000)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master
am: c85249943b

Change-Id: Iab6a4cbb50ac863a4600fd636a886368b6e7a1a8

7 years agoAdd license to a few utility scripts am: f85b5c9705 am: b30ed56bec
Pyry Haulos [Tue, 27 Sep 2016 18:47:47 +0000 (18:47 +0000)]
Add license to a few utility scripts am: f85b5c9705 am: b30ed56bec
am: 824fd20932

Change-Id: I0125b32b32094056d2bf34437a8e9e554fa9544e

7 years agoAdd license to a few utility scripts am: f85b5c9705
Pyry Haulos [Tue, 27 Sep 2016 18:45:17 +0000 (18:45 +0000)]
Add license to a few utility scripts am: f85b5c9705
am: b30ed56bec

Change-Id: I620b0a0f8f638115007d7c02daa4498e3f0192b5

7 years agoAdd license to a few utility scripts
Pyry Haulos [Tue, 27 Sep 2016 18:42:17 +0000 (18:42 +0000)]
Add license to a few utility scripts
am: f85b5c9705

Change-Id: Ibf2d2171f2bf8e3ca005526c259c3cda083cc55b

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/master
Pyry Haulos [Tue, 27 Sep 2016 18:37:22 +0000 (11:37 -0700)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/master

Change-Id: Ic57898b48c27812332fd03f000f80af9555a878f

7 years agoMerge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev
Pyry Haulos [Tue, 27 Sep 2016 18:37:11 +0000 (11:37 -0700)]
Merge gerrit/vulkan-cts-1.0.1 into gerrit/vulkan-cts-1.0-dev

Change-Id: I27021effa17e025cef4a85fb015b905b82bf1667

7 years agoAdd license to a few utility scripts
Pyry Haulos [Mon, 26 Sep 2016 21:26:04 +0000 (14:26 -0700)]
Add license to a few utility scripts

Change-Id: I2233a68e2480fe07a6800c16d4a83e387b4c328a

7 years agoMerge "Get rid of indirection when adding module directories in build" am: fb175316d0...
Pyry Haulos [Tue, 27 Sep 2016 15:58:05 +0000 (15:58 +0000)]
Merge "Get rid of indirection when adding module directories in build" am: fb175316d0 am: 25272a76cb
am: 54b623bd05

Change-Id: I8f5a625267cf394a9371e8b135665f9d1e748ba5

7 years agoMerge "Get rid of indirection when adding module directories in build" am: fb175316d0
Pyry Haulos [Tue, 27 Sep 2016 15:55:06 +0000 (15:55 +0000)]
Merge "Get rid of indirection when adding module directories in build" am: fb175316d0
am: 25272a76cb

Change-Id: I7360365bd640dc1b420b940cd644e69997090eba

7 years agoMerge "Get rid of indirection when adding module directories in build"
Pyry Haulos [Tue, 27 Sep 2016 15:52:36 +0000 (15:52 +0000)]
Merge "Get rid of indirection when adding module directories in build"
am: fb175316d0

Change-Id: I7a165eb112c32a9e30069b81204b6e22f526b57a

7 years agoMerge "Get rid of indirection when adding module directories in build"
Pyry Haulos [Tue, 27 Sep 2016 15:47:29 +0000 (15:47 +0000)]
Merge "Get rid of indirection when adding module directories in build"

7 years agoMerge "Remove few obsolete target files" am: 082248137d am: 6798ebf3c7
Pyry Haulos [Tue, 27 Sep 2016 00:44:39 +0000 (00:44 +0000)]
Merge "Remove few obsolete target files" am: 082248137d am: 6798ebf3c7
am: 9db4f9ce9a

Change-Id: If24f503d771e92efa39f83106e2926d032be7535

7 years agoMerge "Remove few obsolete target files" am: 082248137d
Pyry Haulos [Tue, 27 Sep 2016 00:42:39 +0000 (00:42 +0000)]
Merge "Remove few obsolete target files" am: 082248137d
am: 6798ebf3c7

Change-Id: I63c14e9564af14f66306a8c6f54cec12a5caf212

7 years agoMerge "Remove few obsolete target files"
Pyry Haulos [Tue, 27 Sep 2016 00:39:40 +0000 (00:39 +0000)]
Merge "Remove few obsolete target files"
am: 082248137d

Change-Id: Id376d6dec598435c43aa6cfbc0c68e04ec6854ec

7 years agoMerge "Add license header to main CMake files" am: e2b5873fd8 am: a6f3496c76
Pyry Haulos [Tue, 27 Sep 2016 00:37:09 +0000 (00:37 +0000)]
Merge "Add license header to main CMake files" am: e2b5873fd8 am: a6f3496c76
am: 5f34112b30

Change-Id: Ia3e9adba24468cd5feff6bf02718ac021801a985

7 years agoMerge "Be more civil in comments" am: 775f724bcc am: c678e93e1c
Pyry Haulos [Tue, 27 Sep 2016 00:34:51 +0000 (00:34 +0000)]
Merge "Be more civil in comments" am: 775f724bcc am: c678e93e1c
am: a1669de8bd

Change-Id: I908c0f27358ad101ef39e61675854d172a7c6f75