platform/upstream/VK-GL-CTS.git
7 years agoMerge "Fix multiple resource leaks in new srgb_texture_decode tests"
Treehugger Robot [Tue, 21 Feb 2017 18:52:36 +0000 (18:52 +0000)]
Merge "Fix multiple resource leaks in new srgb_texture_decode tests"

7 years agoMerge "Reduce read pixel calls in copy image tests"
Kalle Raita [Tue, 21 Feb 2017 18:05:15 +0000 (18:05 +0000)]
Merge "Reduce read pixel calls in copy image tests"
am: dbec7154ee

Change-Id: Ibd29b783a757e1e990a2df311930d8b2e2891e17

7 years agoMerge "Restructure copy image test iterations"
Kalle Raita [Tue, 21 Feb 2017 18:05:05 +0000 (18:05 +0000)]
Merge "Restructure copy image test iterations"
am: 7ac38a6fa1

Change-Id: Iccf30a576faeff73861dc8fb35d0a1ba2bff7722

7 years agoMerge "Reduce read pixel calls in copy image tests"
Kalle Raita [Tue, 21 Feb 2017 17:43:45 +0000 (17:43 +0000)]
Merge "Reduce read pixel calls in copy image tests"

7 years agoMerge "Restructure copy image test iterations"
Kalle Raita [Tue, 21 Feb 2017 17:43:25 +0000 (17:43 +0000)]
Merge "Restructure copy image test iterations"

7 years agoFix multiple resource leaks in new srgb_texture_decode tests
Mark Adams [Fri, 17 Feb 2017 19:14:18 +0000 (14:14 -0500)]
Fix multiple resource leaks in new srgb_texture_decode tests

There were multiple issues here, ranging from never freeing resources,
to overwriting resources, to only freeing them at class destruction
instead of deinit time. This was resulting in hitting OOM on platforms
without tons of memory.

Bug: 35457323
Change-Id: I492177bb9e71bdbc7efc9d3a7c8a34bef35c709e

7 years agoMerge changes Icb29d2da,Ida906e21 am: fc868645e2
Pyry Haulos [Fri, 17 Feb 2017 20:27:58 +0000 (20:27 +0000)]
Merge changes Icb29d2da,Ida906e21 am: fc868645e2
am: 1cf9161f6f

Change-Id: I53a2d1d2533a5007914ac1df02a8b0f726ee043d

7 years agoMerge changes Icb29d2da,Ida906e21
Pyry Haulos [Fri, 17 Feb 2017 20:26:29 +0000 (20:26 +0000)]
Merge changes Icb29d2da,Ida906e21
am: fc868645e2

Change-Id: I38ff3fe87631327ac251819797d965d81f064151

7 years agoMerge changes Icb29d2da,Ida906e21
Pyry Haulos [Fri, 17 Feb 2017 20:21:40 +0000 (20:21 +0000)]
Merge changes Icb29d2da,Ida906e21

* changes:
  Add a non-separable TCS-but-no-TES subcase.
  Make program separable in TCS-but-no-TES draw time check test.

7 years agoTest descriptor_update_template, push_descriptor
Petros Bantolas [Fri, 4 Nov 2016 15:12:52 +0000 (15:12 +0000)]
Test descriptor_update_template, push_descriptor

Extended the existing binding_model tests with 3 new variants,
'with_template', 'with_push_template' and 'with_push'.

The least invasive method to support push descriptor updates without
template was to persist the DescriptorSetUpdateBuilder object in the
test instance classes, so that it can be referenced when building the
command buffer.

Change-Id: I731fa41c5ff99ab1d390d77d7aabb4424e091e35
(cherry picked from commit 7f5ba3914c1d9033dd4f896ef6fcaa22f5c5e038)

7 years agoAdd sRGB skip decode test am: b4d41f1ef0 am: f6cf6363b2
Michael Hadley [Tue, 14 Feb 2017 23:33:26 +0000 (23:33 +0000)]
Add sRGB skip decode test am: b4d41f1ef0 am: f6cf6363b2
am: 345202e258

Change-Id: I20812cac7a2129669d8f84323bdfec1a705b85f8

7 years agoAdd sRGB skip decode test am: b4d41f1ef0
Michael Hadley [Tue, 14 Feb 2017 23:21:38 +0000 (23:21 +0000)]
Add sRGB skip decode test am: b4d41f1ef0
am: f6cf6363b2

Change-Id: I3e5f03995cf89fca1d1f7b86ccf8a7bf3c9aca4b

7 years agoAdd sRGB skip decode test
Michael Hadley [Tue, 14 Feb 2017 23:19:36 +0000 (23:19 +0000)]
Add sRGB skip decode test
am: b4d41f1ef0

Change-Id: Iedee2d7eaf8bbe3f78412569e464e8e6377e1735

7 years agoAdd sRGB skip decode test
Michael Hadley [Wed, 1 Feb 2017 12:48:08 +0000 (12:48 +0000)]
Add sRGB skip decode test

New Tests:
- deqp-case=dEQP-GLES31.functional.srgb_texture_decode.*

Change-Id: I0257e63b15ee0334efad985411d8070ddecdd51a

7 years agoReduce read pixel calls in copy image tests
Kalle Raita [Thu, 19 Jan 2017 22:15:58 +0000 (14:15 -0800)]
Reduce read pixel calls in copy image tests

Reduce glReadPixels calls in the copy image tests by rendering multiple
texture sub-images for each read back. Significant improvement for
certain platforms, no impact on others.

Bug: 33965234
Test: Run tests on Pixel C and Pixel XL, Check that old N9 results still
have same failures. Spot checks with 240x200 target surface.
Change-Id: I133c56b7855a664f164f1eb0b1307259462e098f

7 years agoRestructure copy image test iterations
Kalle Raita [Tue, 24 Jan 2017 19:47:17 +0000 (11:47 -0800)]
Restructure copy image test iterations

Packing test iterations so that work per buffer swap is maximized
without running the risk of hitting per-iteration timeout. Yields
execution time drops of roughly 50% on at least 2 GPU architectures.

Bug: 33965234
Test: Copy image tests on multiple devices and L MR1 N9 for detection capability.
Change-Id: I7de5231da0d8a1d2bd22ec3741f1481e2ebd5475

7 years agoAdd a non-separable TCS-but-no-TES subcase.
Kenneth Graunke [Sat, 11 Feb 2017 06:45:39 +0000 (22:45 -0800)]
Add a non-separable TCS-but-no-TES subcase.

   "Linking can fail for [...] any of the following reasons:

* program contains an object to form a tessellation control
  shader [...] and [...] the program is not separable and
  contains no object to form a tessellation evaluation shader"

Add a test to ensure the implementation does raise a link error.

The new subcase is part of:
dEQP-GLES31.functional.debug.negative_coverage.*.tessellation.single_tessellation_stage

Change-Id: Icb29d2da50b2c327bfd2196af9be56bb7d8644f9

7 years agoMake program separable in TCS-but-no-TES draw time check test.
Kenneth Graunke [Sat, 11 Feb 2017 05:30:50 +0000 (21:30 -0800)]
Make program separable in TCS-but-no-TES draw time check test.

Section 7.3 of the OpenGL ES 3.2 specification says:

   "Linking can fail for [...] any of the following reasons:

    * program contains an object to form a tessellation control
      shader [...] and [...] the program is not separable and
      contains no object to form a tessellation evaluation shader"

Since the test is trying to check for a draw time error, it should use
a separable program - otherwise we may hit a link error.

Fixes a bug in:
dEQP-GLES31.functional.debug.negative_coverage.*.tessellation.single_tessellation_stage

Change-Id: Ida906e21c3e3534fd2a8c7bac0334083881bdb19

7 years agoUpdate Android CTS Vulkan mustpass
Pyry Haulos [Mon, 13 Feb 2017 18:42:12 +0000 (10:42 -0800)]
Update Android CTS Vulkan mustpass

Following commits modify Vulkan CTS 1.0.2 mustpass:

 * fbaba83dbee101b3096ce33f21ae398efee3fa67
 * c09596ed4b8d17f057f77a42475d59c1ac126797

This change simply updates Android version of mustpass to match Khronos
Vulkan CTS 1.0.2 mustpass.

Change-Id: I79e2696ec4c457d11b59e03cf2a73977ab98d8d5
Components: AOSP

7 years agoUpdate Android CTS Vulkan mustpass to match 1.0.2
Pyry Haulos [Tue, 31 Jan 2017 00:02:32 +0000 (16:02 -0800)]
Update Android CTS Vulkan mustpass to match 1.0.2

This CL updates Android CTS mustpass for Vulkan to match Khronos Vulkan
CTS 1.0.2.0.

Change-Id: Ia2f82b5f6675c67940679eb98f59510f264d62bf
(cherry picked from commit 15f342274521c1be1032e993dbfd4a46b878f337)

7 years agoMerge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2
Pyry Haulos [Mon, 13 Feb 2017 18:34:37 +0000 (10:34 -0800)]
Merge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2

Change-Id: Ida077bae420c265f4a92d78d68b0f1c9b8d1c85c

7 years agoFix a few bugs in a EGL_KHR_no_config_context test. am: 2a2a2ab8c7 am: e06124d7f5
Kenneth Graunke [Mon, 13 Feb 2017 18:15:29 +0000 (18:15 +0000)]
Fix a few bugs in a EGL_KHR_no_config_context test. am: 2a2a2ab8c7 am: e06124d7f5
am: 08bf23d700

Change-Id: I90c34e8139f3266671a1cdfefd60cdaea99e555d

7 years agoFix a few bugs in a EGL_KHR_no_config_context test. am: 2a2a2ab8c7
Kenneth Graunke [Mon, 13 Feb 2017 18:10:29 +0000 (18:10 +0000)]
Fix a few bugs in a EGL_KHR_no_config_context test. am: 2a2a2ab8c7
am: e06124d7f5

Change-Id: I9f1617abda83e592051a66a5c64154f71914a1a1

7 years agoFix a few bugs in a EGL_KHR_no_config_context test.
Kenneth Graunke [Mon, 13 Feb 2017 18:06:29 +0000 (18:06 +0000)]
Fix a few bugs in a EGL_KHR_no_config_context test.
am: 2a2a2ab8c7

Change-Id: I58cf0d779a24d3bab1490e6f3556b06273861f1e

7 years agoWrite gl_PointSize value when it is undefined
Iago Toral Quiroga [Fri, 10 Feb 2017 10:35:52 +0000 (11:35 +0100)]
Write gl_PointSize value when it is undefined

gl_PointSize is undefined unless expicitly written to. The only
exception to this rule is the case when
shaderTessellationAndGeometryPointSize is disabled, in which case it
defaults to 1.0 for these stages.

Since we don't have access to the physical device features at shader
compile time, implement two variants of the tessellation evaluation
shader when point mode is enabled, one that writes gl_PointSize and
one that doesn't and decide the one we need at run time based on
whether the feature is enabled or not.

Components: Vulkan
Fixes VK-GL-CTS issue: 159

Affects:
dEQP-VK.tessellation.primitive_discard.*point_mode

Change-Id: Idadbc70a704f00ed601ff65afeb2a3edfbeb3f19

7 years agoFix a few bugs in a EGL_KHR_no_config_context test.
Kenneth Graunke [Thu, 2 Feb 2017 18:40:02 +0000 (10:40 -0800)]
Fix a few bugs in a EGL_KHR_no_config_context test.

The dEQP-EGL.functional.create_context.no_config test had the eglBindAPI
check backwards - so it was skipping APIs assuming they failed when they
actually succeeded.

Secondly, it failed to actually set the test result to "pass" if all
cases passed, which led to assertion failures:

    Assertion `testResult != QP_TEST_RESULT_LAST' failed.

Change-Id: I7a20467012fd6c174f79679bbf640917c327574c

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: ebc8257...
Mika Isojrvi [Thu, 9 Feb 2017 23:58:22 +0000 (23:58 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: ebc8257bba am: 31a4d9b3b6 am: 19045bffb6 am: 53fbafc635
am: 15762b0fa5

Change-Id: Ib1f8d0c4b9e48ed2600d9890fc1012840bb2de0c

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e71...
Mika Isojrvi [Thu, 9 Feb 2017 23:58:04 +0000 (23:58 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e716e7 am: bdff405d5a am: 92584aee17
am: 0c2ea240da

Change-Id: I26211b019efb68a7d8101b018468ca4cc213784f

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e71...
Mika Isojrvi [Thu, 9 Feb 2017 23:57:49 +0000 (23:57 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e716e7 am: 06811e1c44 am: fbe1e80216
am: ff2167f6cc

Change-Id: Iffefbb6dfb9a477d02adc8d582daed56807014cf

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: ebc8257...
Mika Isojrvi [Thu, 9 Feb 2017 23:29:59 +0000 (23:29 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: ebc8257bba am: 31a4d9b3b6 am: 19045bffb6 am: 53fbafc635
am: fbf76f4e30

Change-Id: I4973f2c3f93fe6983b28ff5b58b62a54f9a4fefd

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e71...
Mika Isojrvi [Thu, 9 Feb 2017 23:29:48 +0000 (23:29 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e716e7 am: bdff405d5a am: 92584aee17
am: a9ab882914

Change-Id: I6476482bc02dcfac67d2fad3e12fa2669e7f2c0b

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: ebc8257...
Mika Isojrvi [Thu, 9 Feb 2017 23:23:45 +0000 (23:23 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: ebc8257bba am: 31a4d9b3b6 am: 19045bffb6
am: 53fbafc635

Change-Id: Ibe66d27a17342de63b63fe8e2d77ede8de413866

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e71...
Mika Isojrvi [Thu, 9 Feb 2017 23:23:35 +0000 (23:23 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e716e7 am: bdff405d5a
am: 92584aee17

Change-Id: I5aa588ef3ee79f68a08f50a3a699be571c14d03d

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: ebc8257...
Mika Isojrvi [Thu, 9 Feb 2017 23:18:55 +0000 (23:18 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: ebc8257bba am: 31a4d9b3b6 am: 19045bffb6
am: 53fbafc635

Change-Id: I73923046f4ce79cbb1f806ff5aa07a30b1311068

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e71...
Mika Isojrvi [Thu, 9 Feb 2017 23:18:42 +0000 (23:18 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e716e7 am: bdff405d5a
am: 92584aee17

Change-Id: Id393184c9118d63c29bde2ca15229c50235f171e

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e71...
Mika Isojrvi [Thu, 9 Feb 2017 23:14:57 +0000 (23:14 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e716e7 am: 06811e1c44
am: fbe1e80216

Change-Id: I4071389bb9f256f39463c4db4e780dd88e6f7813

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: ebc8257...
Mika Isojrvi [Thu, 9 Feb 2017 23:12:19 +0000 (23:12 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: ebc8257bba am: 31a4d9b3b6
am: 19045bffb6

Change-Id: Ic6c8704365207012e20a8aa6e06535f3043581e1

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e716e7
Mika Isojrvi [Thu, 9 Feb 2017 23:12:06 +0000 (23:12 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e716e7
am: bdff405d5a

Change-Id: Ic937fa24f51ca1ab5325f14e6ac11de51bbe60e5

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e716e7
Mika Isojrvi [Thu, 9 Feb 2017 23:01:57 +0000 (23:01 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: eef2e716e7
am: 06811e1c44

Change-Id: I9ff59204a3f9bacc887c5b5b609ea20439074ec9

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: ebc8257bba
Mika Isojrvi [Thu, 9 Feb 2017 22:57:53 +0000 (22:57 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634 am: ebc8257bba
am: 31a4d9b3b6

Change-Id: Ic7752c780d15bb505ae7b1da440ef5ebd57935dd

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634
Mika Isojrvi [Thu, 9 Feb 2017 22:52:38 +0000 (22:52 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634
am: eef2e716e7

Change-Id: I620a89283d84b4499fd475328b421a88b6a7fd9b

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634
Mika Isojrvi [Thu, 9 Feb 2017 22:50:00 +0000 (22:50 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634
am: ebc8257bba

Change-Id: I2a126ebe68698ba492a417060892345233d930de

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests
Mika Isojrvi [Thu, 9 Feb 2017 22:48:01 +0000 (22:48 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests
am: 6bc3c7a634

Change-Id: Iecf872eac117cf28385d2b3c7e94a9801fd83b5e

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634
Mika Isojrvi [Thu, 9 Feb 2017 22:44:03 +0000 (22:44 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests am: 6bc3c7a634
am: eef2e716e7

Change-Id: Icadf536794c067056e66f6a2041fbb937952f35a

7 years agoLimit changes by xor to upper 8 bits in mixed atomic tests
Mika Isojrvi [Thu, 9 Feb 2017 22:41:59 +0000 (22:41 +0000)]
Limit changes by xor to upper 8 bits in mixed atomic tests
am: 6bc3c7a634

Change-Id: I354ee074ad57d53c2b4b0a84d8bc02a02912f19d

7 years agoMerge "Use deFloatIsNaN, not isnan." am: 4e49222745 am: dd33e61339
Dan Albert [Thu, 9 Feb 2017 21:38:31 +0000 (21:38 +0000)]
Merge "Use deFloatIsNaN, not isnan." am: 4e49222745 am: dd33e61339
am: 558bba7fca

Change-Id: Iddbd61d74fa3223c92f12482453af3907af44cf2

7 years agoMerge "Use deFloatIsNaN, not isnan." am: 4e49222745
Dan Albert [Thu, 9 Feb 2017 21:34:54 +0000 (21:34 +0000)]
Merge "Use deFloatIsNaN, not isnan." am: 4e49222745
am: dd33e61339

Change-Id: I64b6a582348735a4c2cf05fc0009f43176049600

7 years agoMerge "Use deFloatIsNaN, not isnan."
Dan Albert [Thu, 9 Feb 2017 21:32:24 +0000 (21:32 +0000)]
Merge "Use deFloatIsNaN, not isnan."
am: 4e49222745

Change-Id: Ic40964ffc3019a3bc4b1e4f80e4a5a73a105905f

7 years agoMerge "Use deFloatIsNaN, not isnan."
Treehugger Robot [Thu, 9 Feb 2017 21:28:03 +0000 (21:28 +0000)]
Merge "Use deFloatIsNaN, not isnan."

7 years agoUse deFloatIsNaN, not isnan.
Dan Albert [Wed, 8 Feb 2017 19:37:30 +0000 (11:37 -0800)]
Use deFloatIsNaN, not isnan.

Discovered because this file includes cmath rather than math.h, so
some header cleanup made isnan go away (it should have been
std::isnan).

Test: mma
Bug: http://b/34724220
Change-Id: Idb6b26a90307f510ad1a118b694a34e32ce7507c

7 years agodEQP-VK.info.*image_format_properties2* VkImageUsageFlags fix
Marcin Kańtoch [Mon, 6 Feb 2017 09:25:56 +0000 (10:25 +0100)]
dEQP-VK.info.*image_format_properties2* VkImageUsageFlags fix

The usage flags loop iterator starts currently with 0, which is not
a valid image usage value. It is reported as an error by Validation
Layers.

The patch contains also a simple fix for iterating over valid sample
count flag bits.

Modified tests:
dEQP-VK.info.image_format_properties2*
dEQP-VK.info.sparse_image_format_properties2*

Components: Vulkan
VK-GL-CTS issue: 133

Change-Id: I0edbdbc389fa3bd9a71ca4d3b7777ede38a7b353

7 years agoAndroid: Test that mandatory extensions are supported
Pyry Haulos [Fri, 3 Feb 2017 21:25:48 +0000 (13:25 -0800)]
Android: Test that mandatory extensions are supported

Change-Id: Id0e44299f1d8441bf1e7ecc91d82d3b06400e7e6

7 years agoAndroid: Test that no Vulkan layers are enumerated
Pyry Haulos [Tue, 17 Jan 2017 23:49:02 +0000 (15:49 -0800)]
Android: Test that no Vulkan layers are enumerated

Change-Id: I43dacf306b468485fc160f175160555b9cf1c86d

7 years agoAndroid: Check KHX, GOOGLE, and ANDROID extensions
Pyry Haulos [Wed, 11 Jan 2017 23:02:19 +0000 (15:02 -0800)]
Android: Check KHX, GOOGLE, and ANDROID extensions

Change-Id: I6ee24e584666e1f2542adf35943a2973c9392ad9

7 years agoMerge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2
Pyry Haulos [Thu, 9 Feb 2017 17:54:38 +0000 (09:54 -0800)]
Merge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2

Change-Id: I32aa09e131335c13262518708fd5970191aad77b

7 years agoFix memory management, image layout issues in uploadImageSparse()
Dominik Witczak [Thu, 17 Nov 2016 12:10:19 +0000 (13:10 +0100)]
Fix memory management, image layout issues in uploadImageSparse()

Fixes an issue where ShaderRenderCaseInstance::uploadSparseImage()
would first configure sparse image bindings and then deallocate
the memory objects, prior to actually sampling the image.

Fixes an issue where the sparse image, after having been filled with
contents, would first be transitioned to SHADER_READ_ONLY_OPTIMAL
layout, and then used in a DS which was expecting it to be in
GENERLA layout.

Finally, the patch addresses a problem, where the function would not
correctly recognize the VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT,
as reported by the running driver.

The change affects dEQP-VK.glsl.*sparse* tests

VK-GL-CTS issue: 156

Change-Id: Ie5717841fe0ef9c0672b5075380ff96bba9855b9
(cherry picked from commit 70fc0800efe725f4f91f4d03b09aa0e567dbb09c)

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.
"

Component: Vulkan
VK-GL-CTS Issue: 131

(cherry picked from commit 5534b44a15b530ece4b310e1dd935fb9b0cefeb6)

Change-Id: Ia2481fbcd12a32a6470af26df213a2f930c2e6db

7 years agoMerge "Fix out of bounds accesses in TexImage*DParamsCase." am: 60902d4e1b am: 8fd3b63b26
Mika Isojarvi [Wed, 8 Feb 2017 20:15:18 +0000 (20:15 +0000)]
Merge "Fix out of bounds accesses in TexImage*DParamsCase." am: 60902d4e1b am: 8fd3b63b26
am: 99299ab23b

Change-Id: I0952c4c078255ac28d01e26a034a8918c11df1a1

7 years agoMerge "Fix out of bounds accesses in TexImage*DParamsCase." am: 60902d4e1b
Mika Isojarvi [Wed, 8 Feb 2017 19:28:19 +0000 (19:28 +0000)]
Merge "Fix out of bounds accesses in TexImage*DParamsCase." am: 60902d4e1b
am: 8fd3b63b26

Change-Id: I1933ef41f06eb34ab50cf7b7dbc197e3daf2d6cd

7 years agoMerge "Fix out of bounds accesses in TexImage*DParamsCase."
Mika Isojarvi [Wed, 8 Feb 2017 19:25:21 +0000 (19:25 +0000)]
Merge "Fix out of bounds accesses in TexImage*DParamsCase."
am: 60902d4e1b

Change-Id: I655ab1118e27a1ff5c2eecd726655a23c628d30e

7 years agoMerge "Fix out of bounds accesses in TexImage*DParamsCase."
Mika Isojarvi [Wed, 8 Feb 2017 19:21:10 +0000 (19:21 +0000)]
Merge "Fix out of bounds accesses in TexImage*DParamsCase."

7 years agoFix Android builds compiler flags am: e2af5c745d am: 7755688536
Mika Isojrvi [Wed, 8 Feb 2017 18:34:03 +0000 (18:34 +0000)]
Fix Android builds compiler flags am: e2af5c745d am: 7755688536
am: c5a0adfad3

Change-Id: Id9c6c155f6b0b186004780742d3b9fcdb4b1df20

7 years agoFix Android builds compiler flags am: e2af5c745d
Mika Isojrvi [Wed, 8 Feb 2017 18:26:24 +0000 (18:26 +0000)]
Fix Android builds compiler flags am: e2af5c745d
am: 7755688536

Change-Id: Ie79d59b5366eec9681e852e6e4f9cd69eddbaba0

7 years agoFix Android builds compiler flags
Mika Isojrvi [Wed, 8 Feb 2017 18:13:48 +0000 (18:13 +0000)]
Fix Android builds compiler flags
am: e2af5c745d

Change-Id: Ic8ca64ec962c6fc4d78d0d628a740ce69c8a0e29

7 years agoFix out of bounds accesses in TexImage*DParamsCase.
Mika Isojärvi [Tue, 7 Feb 2017 20:52:54 +0000 (12:52 -0800)]
Fix out of bounds accesses in TexImage*DParamsCase.

Bug: 28764822
Test: Ran the tests on couple of devices and checked the results.
Change-Id: I3f743bf75d73ce7de7ff2b0633551c0cc7606ca0

7 years agoFix Android builds compiler flags
Mika Isojärvi [Mon, 6 Feb 2017 22:48:37 +0000 (14:48 -0800)]
Fix Android builds compiler flags

- Move -fwrapv to common flags
- Add -Wno-delete-non-virtual-dtor

Bug: 34676963
Test: Build deqp with the AOSP ARM64 target
Change-Id: I21e4c70ef5f2ebe7d306d5a4dcbb52933c4dff6d

7 years agoFix dEQP-VK.api.info.get_physical_device_properties2.properties
Iago Toral Quiroga [Wed, 1 Feb 2017 09:38:52 +0000 (10:38 +0100)]
Fix dEQP-VK.api.info.get_physical_device_properties2.properties

The test uses memcmp to compare structs that may include padding
bytes. Although the test initializes all bytes prior to calling any
Vulkan APIs, there is no guarantee that drivers won't write to the
padding bytes, for example if they write the properties to a local
variable and then memcpy into the result pointer, which is a valid
implementation.

This patch fixes the problem by reusing the offset table that we
already use in another test to obtain the offsets and sizes for all
struct fields and exclude any padding bytes during comparisons.

Affects:
dEQP-VK.api.info.get_physical_device_properties2.properties

VK-GL-CTS issue: 63
Components: Vulkan

Change-Id: I4417a95d41241523acd13adc739e739da9b0c2ed

7 years agoMerge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2
Pyry Haulos [Mon, 6 Feb 2017 21:01:07 +0000 (13:01 -0800)]
Merge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2

Change-Id: Ie39f778967a81af072e60194987d6e3978afb45e

7 years agoFix XCB window dimensions setter
Igor Ostrowski [Mon, 30 Jan 2017 13:08:45 +0000 (14:08 +0100)]
Fix XCB window dimensions setter

Make sure that dimension setter catched appropriate property notify event.

Components: Framework

VK-GL-CTS issue: 134

Change-Id: I4630175dffea57a54375fe6900df7dd3aa5823d4

7 years agoMerge "Check NDK version in the app build script" am: 197032faf3 am: cf0f927df4
Kalle Raita [Mon, 6 Feb 2017 20:28:55 +0000 (20:28 +0000)]
Merge "Check NDK version in the app build script" am: 197032faf3 am: cf0f927df4
am: 57ca78aa24

Change-Id: I76faef896866241d4e9dd1fca8aafba668f568aa

7 years agoMerge "Check NDK version in the app build script" am: 197032faf3
Kalle Raita [Mon, 6 Feb 2017 20:26:55 +0000 (20:26 +0000)]
Merge "Check NDK version in the app build script" am: 197032faf3
am: cf0f927df4

Change-Id: Ie9c979ff77c5edaea7d01fb510ef5ab140afeaa3

7 years agoMerge "Check NDK version in the app build script"
Kalle Raita [Mon, 6 Feb 2017 20:24:26 +0000 (20:24 +0000)]
Merge "Check NDK version in the app build script"
am: 197032faf3

Change-Id: I886a1b1bd45006d00035258a2d1325652a9313f7

7 years agoMerge "Check NDK version in the app build script"
Treehugger Robot [Mon, 6 Feb 2017 20:18:40 +0000 (20:18 +0000)]
Merge "Check NDK version in the app build script"

7 years agoCheck NDK version in the app build script
Kalle Raita [Wed, 1 Feb 2017 19:25:05 +0000 (11:25 -0800)]
Check NDK version in the app build script

Prevents accidentally starting build with wrong version and prints
instructions for retrieving correct NDK version.

Test: manual for current build, using r12 (wrong version), and override
Change-Id: I4a021e71261d17897bb4285ce996a758db7e5419

7 years agoAndroid: Test that mandatory extensions are supported am: 2ef3d2cadd am: 00f38de808
Pyry Haulos [Fri, 3 Feb 2017 23:35:57 +0000 (23:35 +0000)]
Android: Test that mandatory extensions are supported am: 2ef3d2cadd am: 00f38de808
am: 8d31028c39

Change-Id: If32f48cfd15d518ad5c5cb4fdf2fa78f650158c4

7 years agoAndroid: Test that mandatory extensions are supported am: 2ef3d2cadd
Pyry Haulos [Fri, 3 Feb 2017 23:33:28 +0000 (23:33 +0000)]
Android: Test that mandatory extensions are supported am: 2ef3d2cadd
am: 00f38de808

Change-Id: Ice338f46873eac5a3d6d8dfaff946e9cdceb0266

7 years agoAndroid: Test that mandatory extensions are supported
Pyry Haulos [Fri, 3 Feb 2017 23:30:57 +0000 (23:30 +0000)]
Android: Test that mandatory extensions are supported
am: 2ef3d2cadd

Change-Id: Ieba8a9ae224215d5e68fb934fede4d1e5904ee0d

7 years agoAndroid: Test that no Vulkan layers are enumerated am: 4f0cdcd709 am: a32b452f31
Pyry Haulos [Fri, 3 Feb 2017 23:08:26 +0000 (23:08 +0000)]
Android: Test that no Vulkan layers are enumerated am: 4f0cdcd709 am: a32b452f31
am: 0e2633c228

Change-Id: I2c4a4ee4f984548716809bedff838fd025c42a97

7 years agoAndroid: Test that no Vulkan layers are enumerated am: 4f0cdcd709
Pyry Haulos [Fri, 3 Feb 2017 23:05:55 +0000 (23:05 +0000)]
Android: Test that no Vulkan layers are enumerated am: 4f0cdcd709
am: a32b452f31

Change-Id: Ic118b0433d784dffbaa8f8f446a360a15df6d38e

7 years agoAndroid: Test that no Vulkan layers are enumerated
Pyry Haulos [Fri, 3 Feb 2017 23:03:25 +0000 (23:03 +0000)]
Android: Test that no Vulkan layers are enumerated
am: 4f0cdcd709

Change-Id: I59fb804cd944ae24bc78864fb7229709eca3476e

7 years agoAndroid: Check KHX, GOOGLE, and ANDROID extensions am: 5d9562a8c6 am: efd1deb8d7
Pyry Haulos [Fri, 3 Feb 2017 22:58:25 +0000 (22:58 +0000)]
Android: Check KHX, GOOGLE, and ANDROID extensions am: 5d9562a8c6 am: efd1deb8d7
am: e6d5552bb8

Change-Id: I5d7b4c0948ee9e69be0d6e67d8c402cf1317bbdc

7 years agoAndroid: Check KHX, GOOGLE, and ANDROID extensions am: 5d9562a8c6
Pyry Haulos [Fri, 3 Feb 2017 22:55:54 +0000 (22:55 +0000)]
Android: Check KHX, GOOGLE, and ANDROID extensions am: 5d9562a8c6
am: efd1deb8d7

Change-Id: Iee9d734b3bb524bfeba2069e6a4e82055a7da4ac

7 years agoAndroid: Check KHX, GOOGLE, and ANDROID extensions
Pyry Haulos [Fri, 3 Feb 2017 22:53:24 +0000 (22:53 +0000)]
Android: Check KHX, GOOGLE, and ANDROID extensions
am: 5d9562a8c6

Change-Id: I3149f91b93dad8801cc0e4fa05e9c19aaf2d4984

7 years agoFix issues in Vulkan PointCoord test
Pyry Haulos [Wed, 1 Feb 2017 23:24:52 +0000 (15:24 -0800)]
Fix issues in Vulkan PointCoord test

 * Fixed PointCoord calculation to follow spec.

 * Made random point size generation code more robust. Existing code
resulted in rnd.getInt() being called with invalid range.

Changed: dEQP-VK.glsl.builtin_var.simple.pointcoord
Components: Vulkan
VK-GL-CTS issue: 68

Change-Id: I34f0c2c2ec5c8d759f22e81a1683c21572887c58

7 years agoFix uint precision issue in pipeline barrier tests
Mika Isojärvi [Wed, 18 Jan 2017 21:41:39 +0000 (13:41 -0800)]
Fix uint precision issue in pipeline barrier tests

Add missing highp qualifier for int types in fragment shaders.

Affected tests
dEQP-VK.memory.pipeline_barrier.host_write_uniform_buffer.*
dEQP-VK.memory.pipeline_barrier.host_write_uniform_texel_buffer.*
dEQP-VK.memory.pipeline_barrier.host_write_storage_buffer.*
dEQP-VK.memory.pipeline_barrier.host_write_storage_texel_buffer.*
dEQP-VK.memory.pipeline_barrier.transfer_dst_uniform_buffer.*
dEQP-VK.memory.pipeline_barrier.transfer_dst_uniform_texel_buffer.*
dEQP-VK.memory.pipeline_barrier.transfer_dst_storage_buffer.*
dEQP-VK.memory.pipeline_barrier.transfer_dst_storage_texel_buffer.*
dEQP-VK.memory.pipeline_barrier.all.*
dEQP-VK.memory.pipeline_barrier.all_device.*

VK-GL-CTS issue: 67

Change-Id: I9c78a1c19a06554dd86bf7dbb3c7bc3a96cb72dc

7 years agoUpdate SPIR-V tools to ab03b87
Pyry Haulos [Wed, 1 Feb 2017 22:46:11 +0000 (14:46 -0800)]
Update SPIR-V tools to ab03b87

This fixes SPIR-V tools build when git is configured to check out
windows-style line endings.

Generated SPIR-V binaries are not affected by this change.

VK-GL-CTS issue: 73

Change-Id: Ic1639a50a059211ad315a8b07f2279b50ed9a133

7 years agoAndroid: Test that mandatory extensions are supported
Pyry Haulos [Fri, 3 Feb 2017 21:25:48 +0000 (13:25 -0800)]
Android: Test that mandatory extensions are supported

Change-Id: Id0e44299f1d8441bf1e7ecc91d82d3b06400e7e6

7 years agoAndroid: Test that no Vulkan layers are enumerated
Pyry Haulos [Tue, 17 Jan 2017 23:49:02 +0000 (15:49 -0800)]
Android: Test that no Vulkan layers are enumerated

Change-Id: I43dacf306b468485fc160f175160555b9cf1c86d

7 years agoAndroid: Check KHX, GOOGLE, and ANDROID extensions
Pyry Haulos [Wed, 11 Jan 2017 23:02:19 +0000 (15:02 -0800)]
Android: Check KHX, GOOGLE, and ANDROID extensions

Change-Id: I6ee24e584666e1f2542adf35943a2973c9392ad9

7 years agoMerge "Update Android CTS Vulkan mustpass to match 1.0.2" am: 8de4af67bb am: b3191e5847
Pyry Haulos [Tue, 31 Jan 2017 01:53:07 +0000 (01:53 +0000)]
Merge "Update Android CTS Vulkan mustpass to match 1.0.2" am: 8de4af67bb am: b3191e5847
am: eab06747e6

Change-Id: I5215c23f56416f961425db6ac09cee45a0bdddae

7 years agoMerge "Update Android CTS Vulkan mustpass to match 1.0.2" am: 8de4af67bb
Pyry Haulos [Tue, 31 Jan 2017 01:51:07 +0000 (01:51 +0000)]
Merge "Update Android CTS Vulkan mustpass to match 1.0.2" am: 8de4af67bb
am: b3191e5847

Change-Id: Ia6d3877821be9d31771445efe2ad382645dda568

7 years agoMerge "Update Android CTS Vulkan mustpass to match 1.0.2"
Pyry Haulos [Tue, 31 Jan 2017 01:48:37 +0000 (01:48 +0000)]
Merge "Update Android CTS Vulkan mustpass to match 1.0.2"
am: 8de4af67bb

Change-Id: I2accdd355e2d34d9d808ffb9b93afec01d0d345d

7 years agoMerge "Update Android CTS Vulkan mustpass to match 1.0.2"
Treehugger Robot [Tue, 31 Jan 2017 01:45:31 +0000 (01:45 +0000)]
Merge "Update Android CTS Vulkan mustpass to match 1.0.2"

7 years agoAdded gl_BoundingBox built-in type access tests am: ed63f60eb4 am: 2160941ec7
Michael Hadley [Tue, 31 Jan 2017 00:33:07 +0000 (00:33 +0000)]
Added gl_BoundingBox built-in type access tests am: ed63f60eb4 am: 2160941ec7
am: b784ed3d7b

Change-Id: I0be84ee47830fd4264db5865d5851792ebdf290b

7 years agoAdd SSBO block tests am: 04ba289d6e am: ce0a6e4b7b
Michael Hadley [Tue, 31 Jan 2017 00:33:02 +0000 (00:33 +0000)]
Add SSBO block tests am: 04ba289d6e am: ce0a6e4b7b
am: 375a437841

Change-Id: I71203b5172bbd9d03b295ceba1d607ab9fa66675

7 years agoAdded gl_BoundingBox built-in type access tests am: ed63f60eb4
Michael Hadley [Tue, 31 Jan 2017 00:31:04 +0000 (00:31 +0000)]
Added gl_BoundingBox built-in type access tests am: ed63f60eb4
am: 2160941ec7

Change-Id: I8b40a4290decf450cacbd43ea00db90f6f64f2bb

7 years agoAdd SSBO block tests am: 04ba289d6e
Michael Hadley [Tue, 31 Jan 2017 00:31:01 +0000 (00:31 +0000)]
Add SSBO block tests am: 04ba289d6e
am: ce0a6e4b7b

Change-Id: I3a786919bca07ae6f5a4be0c5f5dd992ec3256a7

7 years agoAdded gl_BoundingBox built-in type access tests
Michael Hadley [Tue, 31 Jan 2017 00:28:34 +0000 (00:28 +0000)]
Added gl_BoundingBox built-in type access tests
am: ed63f60eb4

Change-Id: I1d0700b52ee7dfbd51f7e7165df01696d6b299cf

7 years agoAdd SSBO block tests
Michael Hadley [Tue, 31 Jan 2017 00:28:32 +0000 (00:28 +0000)]
Add SSBO block tests
am: 04ba289d6e

Change-Id: I33095ab7cebe48f0941370bf9d0b6c576a90c464

7 years agoUpdate Android CTS Vulkan mustpass to match 1.0.2
Pyry Haulos [Tue, 31 Jan 2017 00:02:32 +0000 (16:02 -0800)]
Update Android CTS Vulkan mustpass to match 1.0.2

This CL updates Android CTS mustpass for Vulkan to match Khronos Vulkan
CTS 1.0.2.0.

Change-Id: Ia2f82b5f6675c67940679eb98f59510f264d62bf