platform/upstream/VK-GL-CTS.git
6 years agoAdd more allowed 'dot' alternatives
Alexander Galazin [Tue, 22 Aug 2017 13:59:49 +0000 (15:59 +0200)]
Add more allowed 'dot' alternatives

Expanded dot may be re-associated in multiple ways.
Add all possible alternatives to prevent precision failures.

Components: AOSP

VK-GL-CTS issue: 634
Google issue: 28767510

Affects:
dEQP-GLES3.functional.shaders.builtin_functions.precision.dot.*
dEQP-GLES3.functional.shaders.builtin_functions.precision.reflect.*
dEQP-GLES31.functional.shaders.builtin_functions.precision.dot.*
dEQP-GLES31.functional.shaders.builtin_functions.precision.reflect.*

Change-Id: I2a91add1b92363acab2172179320cd880da779ec

6 years agoRequire EGL_KHR_gl_colorspace for wide_color tests.
Tapani Pälli [Mon, 28 Aug 2017 06:20:53 +0000 (09:20 +0300)]
Require EGL_KHR_gl_colorspace for wide_color tests.

These tests utilize enum EGL_GL_COLORSPACE_KHR which is introduced by
EGL_KHR_gl_colorspace extension, check first for support and skip the
test if extension is not supported.

v2: loosen the check, only check when enum in use (Courtney)

Change-Id: I891a6fdcce49ac6dcd42577076d4cf64a143dd38
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
6 years agoMerge "Check only what's needed and use threshold"
Treehugger Robot [Thu, 24 Aug 2017 22:57:17 +0000 (22:57 +0000)]
Merge "Check only what's needed and use threshold"

6 years agoMerge Vulkan CTS 1.0.2.5 into aosp/master
Mika Isojärvi [Thu, 24 Aug 2017 20:13:19 +0000 (13:13 -0700)]
Merge Vulkan CTS 1.0.2.5 into aosp/master

Bug: 64932237
Change-Id: Ic2758a85f3a8f8cf00985b03a89830ba509f824d

6 years agoCheck only what's needed and use threshold
Courtney Goeltzenleuchter [Fri, 28 Jul 2017 19:51:31 +0000 (13:51 -0600)]
Check only what's needed and use threshold

Check for only the functionality needed for a specific test.
E.g. if testing floating point color, don't need to check
for support of 10:10:10:2 pixel format.
Some devices are not able to hit the exact values calculated.
Not unexpected, update tests to use thresholds.

Note: waiting on results of b/64487716. Seeing failure on
Pixel devices. Need to make sure it's not a test issue.

Test: adb -s 0424415804161004f80d -d shell am start \
    -n com.drawelements.deqp/android.app.NativeActivity \
    -e cmdLine '"deqp --deqp-case=dEQP-EGL.functional.wide_color.* \
    --deqp-log-filename=/sdcard/dEQP-Log.qpa"'

Change-Id: I2adb31eaa3b189179aeceb9e8f6b1ac8587b6027
(cherry picked from commit 041a1b5e82db7a6945aaefd791639de1c8c9e84d)

6 years agoMerge "Avoid thread state races in EGL multithread tests"
Treehugger Robot [Tue, 22 Aug 2017 18:13:36 +0000 (18:13 +0000)]
Merge "Avoid thread state races in EGL multithread tests"

6 years agoMerge "Run Draw*BaseVertex if EXT_draw_elements_base_vertex is present"
Treehugger Robot [Tue, 22 Aug 2017 18:10:07 +0000 (18:10 +0000)]
Merge "Run Draw*BaseVertex if EXT_draw_elements_base_vertex is present"

6 years agoRun Draw*BaseVertex if EXT_draw_elements_base_vertex is present
Alexander Galazin [Wed, 16 Aug 2017 09:36:01 +0000 (11:36 +0200)]
Run Draw*BaseVertex if EXT_draw_elements_base_vertex is present

Draw*BaseVertex methods are enabled if
the EXT_draw_elements_base_vertex extension is present
Follow-up on 1b1ea05b

Components: AOSP

Affects: dEQP-GLES31.functional.draw_base_vertex.*

Change-Id: If8a4860a956c771ec5ea3341e2227f437b12a286

6 years agoFix texture mip level size in framebuffer fetch tests
Mika Isojrvi [Thu, 17 Aug 2017 00:08:48 +0000 (00:08 +0000)]
Fix texture mip level size in framebuffer fetch tests
am: be0d165a5d

Change-Id: I7fb9c075ee79e411ea295999e9edd7f38a5e5bc9

6 years agoFix texture mip level size in framebuffer fetch tests
Mika Isojärvi [Wed, 16 Aug 2017 20:40:22 +0000 (13:40 -0700)]
Fix texture mip level size in framebuffer fetch tests

Bug: 64280744
Test: Ran tests with multiple Google devices
Change-Id: I369a3c9b16270655332d5a608207f0da2633e0fe

6 years agoMerge "Use safe glFramebufferTexture* function"
james.glanville [Wed, 16 Aug 2017 19:04:43 +0000 (19:04 +0000)]
Merge "Use safe glFramebufferTexture* function"
am: ec5ccbe144

Change-Id: I156ecc2a6ed17e3e23ef17ebbe026be27c1670c3

6 years agoMerge "Do not use degenerate frames in EGL tests"
Michael Chock [Wed, 16 Aug 2017 19:04:22 +0000 (19:04 +0000)]
Merge "Do not use degenerate frames in EGL tests"
am: f5971fe17f

Change-Id: I9807e27047a0d0280e06bc826cab3e6cb88b5ab6

6 years agoMerge "Use safe glFramebufferTexture* function"
Treehugger Robot [Wed, 16 Aug 2017 18:59:45 +0000 (18:59 +0000)]
Merge "Use safe glFramebufferTexture* function"

6 years agoMerge "Do not use degenerate frames in EGL tests"
Treehugger Robot [Wed, 16 Aug 2017 18:59:42 +0000 (18:59 +0000)]
Merge "Do not use degenerate frames in EGL tests"

6 years agoMerge "Report tests using Draw*BaseVertex as NotSupported"
Alexander Galazin [Wed, 16 Aug 2017 18:47:50 +0000 (18:47 +0000)]
Merge "Report tests using Draw*BaseVertex as NotSupported"
am: f96636fdfa

Change-Id: Iccb20250f9b98f983fc831911a1f9b4d4a98fbfb

6 years agoMerge "Report tests using Draw*BaseVertex as NotSupported"
Treehugger Robot [Wed, 16 Aug 2017 18:36:54 +0000 (18:36 +0000)]
Merge "Report tests using Draw*BaseVertex as NotSupported"

6 years agoMerge "Fix error double accounting in fuzzyCompare()"
Alexander Galazin [Wed, 16 Aug 2017 18:20:18 +0000 (18:20 +0000)]
Merge "Fix error double accounting in fuzzyCompare()"
am: 0cf17c4bf8

Change-Id: Ife3e4f1bd13c6f4cb939950635880ce32d2b1df3

6 years agoMerge "Fix error double accounting in fuzzyCompare()"
Treehugger Robot [Wed, 16 Aug 2017 18:06:52 +0000 (18:06 +0000)]
Merge "Fix error double accounting in fuzzyCompare()"

6 years agoAvoid thread state races in EGL multithread tests
Michael Chock [Mon, 14 Aug 2017 15:36:11 +0000 (08:36 -0700)]
Avoid thread state races in EGL multithread tests

Previously, threads objects inside dEQP-EGL.functional.multithread.*
tests would conflate thread execution status with test results. The
former would only be set inside the thread, but the latter could be set
by other threads (e.g., a test thread might set its status to RUNNING
while another test might attempt to set the status of NOT_SUPPORTED).
These race conditions could lead to incorrect results.

Fix this by moving error and not-supported states out of the thread
execution state, and instead storing them as single-purpose flags inside
the test case object, avoiding the possibility of conflicting writes.

Change-Id: I2b117aa98c1c2b69b0d134610d6fd37656083e54

6 years agoDo not use degenerate frames in EGL tests
Michael Chock [Mon, 14 Aug 2017 18:55:14 +0000 (11:55 -0700)]
Do not use degenerate frames in EGL tests

The dEQP-EGL.functional.buffer_age.* and
dEQP-EGL.functional.partial_update.* tests use randomly-generated frames
for rendering. The test allows the generation of frames with a width or
height of 0, but the tcu::PixelBufferAccess interface does not permit
0-sized subregions (see assertions inside getSubregion overloads in
tcuTextureUtil.cpp).

Skip the rendering of degenerate frames in the reference renderer, as
they are unsupported but would not affect the rendering if they were.

Change-Id: I3977c3c293715db633dde74132e56b5d9303ab28

6 years agoUse safe glFramebufferTexture* function
james.glanville [Wed, 16 Aug 2017 10:50:19 +0000 (11:50 +0100)]
Use safe glFramebufferTexture* function

glFramebufferTexture() is only supported when GL_EXT_geometry_shader is
present. Use glFramebufferTextureLayer() instead so that testing is
possible on unextended ES3.1 contexts.

Components: AOSP

Affects:
dEQP-GLES31.functional.shaders.framebuffer_fetch.basic.framebuffer_texture_level

6 years agoReport tests using Draw*BaseVertex as NotSupported
Alexander Galazin [Wed, 16 Aug 2017 09:36:01 +0000 (11:36 +0200)]
Report tests using Draw*BaseVertex as NotSupported

Draw*BaseVertex methods were added in GLES 3.2.
Report tests using these methods as NotSupported if
GLES 3.1 context is returned.

Components: AOSP

Affects: dEQP-GLES31.functional.draw_base_vertex.*

Change-Id: I87c918d5f66a0a5b547f8e625c662203a7f85048

6 years agoCheck for tessellation/geometry extensions being exposed
Alexander Galazin [Wed, 16 Aug 2017 00:32:11 +0000 (00:32 +0000)]
Check for tessellation/geometry extensions being exposed
am: 573154bb7b

Change-Id: I86d05362cf94c693d4000969d2c177c692f07686

6 years agoCheck for tessellation/geometry extensions being exposed
Alexander Galazin [Fri, 11 Aug 2017 09:03:50 +0000 (11:03 +0200)]
Check for tessellation/geometry extensions being exposed

Some sample_variables tests use tessellation/geometry shaders.
Need to check that the relevant extensions are exposed.

Components: AOSP

Affects:
dEQP-GLES31.functional.debug.negative_coverage.*.oes_sample_variables.access_built_in_types_inside_other_shaders

Change-Id: Iff74939d474082938955e5b7ebfc41ea3b4a6ec5

6 years agoSuppress non-critical warnings in external/deqp.
Chih-Hung Hsieh [Thu, 10 Aug 2017 16:22:23 +0000 (16:22 +0000)]
Suppress non-critical warnings in external/deqp.
am: b7ae0d8484

Change-Id: I203833d39406f0530796d10e6d7a4d8f9beb2dbb

6 years agoFix error double accounting in fuzzyCompare()
Alexander Galazin [Tue, 8 Aug 2017 11:15:40 +0000 (13:15 +0200)]
Fix error double accounting in fuzzyCompare()

fuzzyCompare() has a loop to go through all the pixels and generate error sum.
It skips some pixels using random number generator between 0-8.
Random number generator sometime generate 0 and it ends up
calculating error sum twice for the same pixel.
If this pixel has error, then this add up error sum twice.

Components: Framework

Change-Id: I08e06e29faedb99cfd8fa479e97a437c06008848

6 years agoSuppress non-critical warnings in external/deqp.
Chih-Hung Hsieh [Wed, 9 Aug 2017 23:23:07 +0000 (16:23 -0700)]
Suppress non-critical warnings in external/deqp.

* We should enable those warnings after fixing the upstream source code.

Bug: 64487164
Test: build with WITH_TIDY=1
Change-Id: Ie4961d23b8f57e8d3a3ada0e64df82ed18dd366f

6 years agoMerge "Release EGL resources in CTS worker threads"
Mika Isojarvi [Fri, 4 Aug 2017 23:10:09 +0000 (23:10 +0000)]
Merge "Release EGL resources in CTS worker threads"
am: fde96926aa

Change-Id: I8502a522e44c310dfb96710c7b301ebe798668ec

6 years agoMerge "Release EGL resources in CTS worker threads"
Mika Isojarvi [Fri, 4 Aug 2017 22:55:11 +0000 (22:55 +0000)]
Merge "Release EGL resources in CTS worker threads"

6 years agoMerge "Fix extension support checks in negative api tests" into nougat-cts-dev am...
Graeme Leese [Fri, 4 Aug 2017 22:21:06 +0000 (22:21 +0000)]
Merge "Fix extension support checks in negative api tests" into nougat-cts-dev am: 4f1051ad32 am: 5bd0fb31a1
am: ea24f81118

Change-Id: I02de92c1f3a63550bc24575d73e67dce8c6d6923

6 years agoMerge "Fix extension support checks in negative api tests" into nougat-cts-dev am...
Graeme Leese [Fri, 4 Aug 2017 22:09:03 +0000 (22:09 +0000)]
Merge "Fix extension support checks in negative api tests" into nougat-cts-dev am: 4f1051ad32
am: 5bd0fb31a1

Change-Id: I2ab773e341fe8a0819963ca9351894ee740591cf

6 years agoMerge "Fix extension support checks in negative api tests" into nougat-cts-dev
Graeme Leese [Fri, 4 Aug 2017 22:03:02 +0000 (22:03 +0000)]
Merge "Fix extension support checks in negative api tests" into nougat-cts-dev
am: 4f1051ad32

Change-Id: I4f54481292ffaaf5e1cf56a05ef24f7dfa4983f3

6 years agoMerge "Fix extension support checks in negative api tests" into nougat-cts-dev
Treehugger Robot [Fri, 4 Aug 2017 21:56:36 +0000 (21:56 +0000)]
Merge "Fix extension support checks in negative api tests" into nougat-cts-dev

6 years agoCheck for EGLimage support in EGLimage test
Michael Chock [Fri, 4 Aug 2017 19:38:53 +0000 (19:38 +0000)]
Check for EGLimage support in EGLimage test
am: 1886241d23

Change-Id: Ia4d21d273030b87dd9aa6b5e3eae5323bfe41dab

6 years agoRelease EGL resources in CTS worker threads
Michael Chock [Wed, 26 Jul 2017 17:07:16 +0000 (10:07 -0700)]
Release EGL resources in CTS worker threads

For worker threads in multithreaded EGL tests, call eglReleaseThread
before thread termination.

Affects:

dEQP-EGL.functional.color_clears.multi_thread.*
dEQP-EGL.functional.multithread.*
dEQP-EGL.functional.render.multi_thread.*
dEQP-EGL.functional.thread_cleanup.*
dEQP-EGL.performance.gles2_shared_render.*

Change-Id: I1e47fae1b9a3d1f148a80215c1c2baa0b684c57e

6 years agoCheck for EGLimage support in EGLimage test
Michael Chock [Tue, 25 Jul 2017 20:16:38 +0000 (13:16 -0700)]
Check for EGLimage support in EGLimage test

Verify support for EGL 1.5+, EGL_KHR_image, or EGL_KHR_image_base before
attempting to call eglCreateImage[KHR] in test
dEQP-EGL.functional.image.api.invalid_create_image.

Change-Id: Icde0f5c568a00da7b7aaa07bc2fb58b7d62df165

6 years agoAllow VK_KHR_relaxed_block_layout extension
Daniel Koch [Wed, 26 Jul 2017 17:38:21 +0000 (13:38 -0400)]
Allow VK_KHR_relaxed_block_layout extension

VK-GL-CTS Issue: 596

Affects:
dEQP-VK.api.info.device.extensions

Change-Id: I25395cbc76e2a4a176c74e9d46f16f3e105c4669
Component: Vulkan

6 years agoAdd VK_KHR_relaxed_block_layout
Arkadiusz Sarwa [Wed, 15 Mar 2017 15:02:07 +0000 (16:02 +0100)]
Add VK_KHR_relaxed_block_layout

New tests:

dEQP-VK.ssbo.layout.multi_basic_types.*.relaxed_block*
dEQP-VK.ssbo.layout.random.relaxed.*

VK-GL-CTS issue: 117
Components: Vulkan

Change-Id: Ieda2aa291dcbff250b81e0da06c39781800f4af7
(cherry picked from commit 2a11db7c2e23afd4bef2f9a0eab84356d912ff3c)

6 years agoAdd GlslBuildOptions::FLAG_ALLOW_RELAXED_OFFSETS
Arkadiusz Sarwa [Tue, 9 May 2017 14:45:32 +0000 (16:45 +0200)]
Add GlslBuildOptions::FLAG_ALLOW_RELAXED_OFFSETS

Enabling the flag allows GLSL to use layout(offset = N) qualifiers that
follow VK_KHR_relaxed_block_layout rules instead of GLSL std140/std430
rules.

Components: Vulkan

Change-Id: I4f168b04ad0916b740891b603ddde2de0f4bcf50
(cherry picked from commit 4b82e12d3a7bf0947887e0b9d586d0ab63bd4888)

6 years agoSelect correct memory heap index for memory import
Tony Zlatinski [Wed, 19 Jul 2017 21:21:53 +0000 (16:21 -0500)]
Select correct memory heap index for memory import

When importing memory, the application (CTS) should follow
the spec rules about memory imports. I.e. The application must use the
same memory heap index for the import that has been used for the
exported memory. In addition, the application can't
import a buffer or image to a heap that does not support CPU mapping and
expect the memory to be CPU mappable/accessible.

This change modifies the export memory routines, now, returning the
index of the heap memory used for the export. Then the import routines are
modified to use those indexes for the memory import operations.

Components: Vulkan

Affects:
    dEQP-VK.api.external.memory.*
    dEQP-VK.synchronization.cross_instance.*

VK-GL-CTS issue: 585

Change-Id: I48ab85b7fd2b67655163f055fb03e8f2a3a42fd6

6 years agoMerge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2
Alexander Galazin [Fri, 21 Jul 2017 17:51:48 +0000 (19:51 +0200)]
Merge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2

Change-Id: Ifac39caba5598cbb75d5fb25d271ad0b709140a6

6 years agoMerge vk-gl-cts/vulkan-cts-1.0.0 into vk-gl-cts/vulkan-cts-1.0.1
Alexander Galazin [Fri, 21 Jul 2017 17:44:17 +0000 (19:44 +0200)]
Merge vk-gl-cts/vulkan-cts-1.0.0 into vk-gl-cts/vulkan-cts-1.0.1

Change-Id: If1266ef43a81d4d015c3f656315ea629acbbd55e

6 years agoMerge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2
Alexander Galazin [Fri, 21 Jul 2017 16:55:45 +0000 (18:55 +0200)]
Merge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2

Change-Id: I65f618365df474653f68d311647f601f91a38e4b

6 years agoFix layout transition in blitting tests
Igor Ostrowski [Tue, 4 Jul 2017 16:01:23 +0000 (18:01 +0200)]
Fix layout transition in blitting tests

Affects:
dEQP-VK.api.copy_and_blit.*.blit_image.*

Components: Vulkan
VK-GL-CTS issue: 571

Change-Id: I780374a8fbff336a7789bd6a745e635ac1202b62

6 years agoAdd metadata bindings in sparse tests
Igor Ostrowski [Wed, 12 Jul 2017 13:15:14 +0000 (15:15 +0200)]
Add metadata bindings in sparse tests

All metadata must be bound prior to device use of the sparse image

Affects:
dEQP-VK.sparse_resources.image_sparse_residency.*
dEQP-VK.sparse_resources.mipmap_sparse_residency.*
dEQP-VK.sparse_resources.shader_intrinsics.*

dEQP-VK.glsl.texture_functions.*sparse*
dEQP-VK.glsl.texture_gather.*sparse*

Components: Vulkan
VK-GL-CTS issue: 572

Change-Id: I4bbf2b74ed7fc0cea000084769cbed0dbe4a802e

6 years agoMerge "Add triangle edge guardband for Tex2D lookup diff"
Kalle Raita [Thu, 20 Jul 2017 19:42:12 +0000 (19:42 +0000)]
Merge "Add triangle edge guardband for Tex2D lookup diff"
am: da231f19ab

Change-Id: I5162ef3b9e6d763e55b7e6a9049ae80523cafdb3

6 years agoMerge "Add triangle edge guardband for Tex2D lookup diff"
Kalle Raita [Thu, 20 Jul 2017 19:30:15 +0000 (19:30 +0000)]
Merge "Add triangle edge guardband for Tex2D lookup diff"

6 years agoFix atomic ssbo xor test am: f0fa05e898 am: 14cd264501 am: d4c01761d3
Mika Isojrvi [Wed, 19 Jul 2017 18:13:49 +0000 (18:13 +0000)]
Fix atomic ssbo xor test am: f0fa05e898 am: 14cd264501 am: d4c01761d3
am: 674ba44413

Change-Id: I182f8ee0b409eaa2000f3d18aa9c7d10b076b578

6 years agoFix atomic ssbo xor test am: f0fa05e898 am: 14cd264501
Mika Isojrvi [Wed, 19 Jul 2017 18:03:03 +0000 (18:03 +0000)]
Fix atomic ssbo xor test am: f0fa05e898 am: 14cd264501
am: d4c01761d3

Change-Id: I32a66d488ccd7f1544f23b299eaf4d0642cebc4a

6 years agoFix atomic ssbo xor test am: f0fa05e898
Mika Isojrvi [Wed, 19 Jul 2017 18:00:27 +0000 (18:00 +0000)]
Fix atomic ssbo xor test am: f0fa05e898
am: 14cd264501

Change-Id: Ib554d7464534203cbcde53f0ebd6931082900a82

6 years agoFix atomic ssbo xor test
Mika Isojrvi [Wed, 19 Jul 2017 17:57:28 +0000 (17:57 +0000)]
Fix atomic ssbo xor test
am: f0fa05e898

Change-Id: Ibc16a0ff1a6b1dbe764d4beafa5d9b63d9c090e9

6 years agoAdd triangle edge guardband for Tex2D lookup diff
Kalle Raita [Tue, 18 Jul 2017 21:52:15 +0000 (14:52 -0700)]
Add triangle edge guardband for Tex2D lookup diff

Previously 3D and cube textures allowed pixels along the seam of
triangles to use data from either triangle. This change copies that
allowance to the 2D texture computeTextureLookupDiff. The projection
values chosen for the mipmap.2d.projected group make the data
discontinous over the edge, making it sensitive to tie-breaker
resolution. This change resolves the issue.

Affects: framework

Test: Executed mipmap.2d.projected group with failing result images
Bug: 63335787
Change-Id: Ibaed590fb5e1bc9eb837c9027ddadcea2081f629

6 years agoEGL: Add wide-color tests
Courtney Goeltzenleuchter [Tue, 18 Jul 2017 20:25:01 +0000 (20:25 +0000)]
EGL: Add wide-color tests
am: 6a26fb1fd0

Change-Id: Ib496be50b20bce758c441f08a34b0e10998b2e98

6 years agoFix atomic ssbo xor test
Mika Isojärvi [Thu, 14 Apr 2016 17:28:16 +0000 (10:28 -0700)]
Fix atomic ssbo xor test

Allow any values in high order bits in xor tests when using uint types.

Bug: 28144118
Change-Id: I0670aa12642882a329cb923487198fdf045b912b

6 years agoEGL: Add wide-color tests
Courtney Goeltzenleuchter [Mon, 19 Jun 2017 16:35:01 +0000 (10:35 -0600)]
EGL: Add wide-color tests

Verify necessary extensions and functionality
is present to support wide-color. Specifically, pixel formats
FP16 and 10:10:10:2 and Display-P3 color space.

Test: adb -d shell \
      am start -n com.drawelements.deqp/android.app.NativeActivity \
      -e cmdLine '"deqp --deqp-case=dEQP-EGL.functional.wide_color.* \
      --deqp-log-filename=/sdcard/dEQP-Log.qpa"'

TODO:
- Do we need test for EGL_EXT_gl_colorspace_scrgb_linear?
  That should be no-op for driver.

Change-Id: I537a04b1680e33e46215c4bb583f6987d20f0b4a

6 years agoMerge "Merge Vulkan CTS 1.0.2.4 into aosp/master"
Mika Isojarvi [Mon, 17 Jul 2017 20:19:45 +0000 (20:19 +0000)]
Merge "Merge Vulkan CTS 1.0.2.4 into aosp/master"
am: 0f5658c72b

Change-Id: Id028fbdc5b596d55e044fb80ad34ecc95d0563a4

6 years agoMerge "Merge Vulkan CTS 1.0.2.4 into aosp/master"
Mika Isojarvi [Mon, 17 Jul 2017 20:13:57 +0000 (20:13 +0000)]
Merge "Merge Vulkan CTS 1.0.2.4 into aosp/master"

6 years agoFix incorrect scale in pipeline_barrier tests
JarredDavies [Fri, 14 Jul 2017 14:55:46 +0000 (15:55 +0100)]
Fix incorrect scale in pipeline_barrier tests

The ImageBlitFromImage verfication code incorrectly scales the refrence image it creates.
The test should add 0.5 to the x and y coords before scaling them.

Affects:
dEQP-VK.memory.pipeline_barrier.*

Components: Vulkan

VK-GL-CTS issue: 577

Change-Id: I28d0b4deec0f1837c21cdc2dc68a9169ca8ae96b

6 years agocopies_and_blitting: fix ambiguous signed normalized 1.0 value
Slawomir Cygan [Thu, 6 Jul 2017 17:24:18 +0000 (19:24 +0200)]
copies_and_blitting: fix ambiguous signed normalized 1.0 value

Below tests copy floats to signed normalized 8-bit values.
In that process it happens that 1.0 float value is copied to 8_snorm
elements as: {0x00, 0x00, 0x80, 0x3f}

According to spec, on SNORM values:

"Note that while zero is exactly expressible in this representation,
one value (-128 in the example) is outside the representable range,
and must be clamped before use."

The problem occurs when 0x80 == 128 value is copied to buffer:
as it falls outside of <-1,1> range, it may be clamped to 0x81 (both values
represent -1.0 SNORM value).

The change here processes all result and expected data buffers to remove
all ambiguites by converting to float and back to signed normalized format.

Affects:
dEQP-VK.api.copy_and_blit.*.image_to_image.all_formats.color.r32_sfloat.a8b8g8r8_snorm_pack32.*
dEQP-VK.api.copy_and_blit.*.image_to_image.all_formats.color.r32_sfloat.r8g8b8a8_snorm.*

Components: Vulkan

VK-GL-CTS issue: 563

Change-Id: I175665f39811cf6a80862967ad0a9bb8e13527e9

6 years agoRelax threshold in cube map filtering tests
Yanjun Zhang [Fri, 7 Jul 2017 20:45:59 +0000 (13:45 -0700)]
Relax threshold in cube map filtering tests

Use the same colorThreshold calculation as GLES CTS so Vulkan CTS
has the same behavior as GLES CTS.

Components: Vulkan

Affects:
dEQP-VK.pipeline.sampler.view_type.cube.format.r5g6b5_unorm_pack16.*

VK-GL-CTS issue: 561

Change-Id: I9bd632bb242f653b1f2d8bb50ee9867da926e95b

6 years agocross_instance sync: run without VK_KHR_get_memory_requirements2
Slawomir Cygan [Fri, 7 Jul 2017 14:41:30 +0000 (16:41 +0200)]
cross_instance sync: run without VK_KHR_get_memory_requirements2

This extension is used in the test, to check if resource needs dedicated
allocations (to be used created by dependent VK_KHR_dedicated_allocation
extension).

If the extension is not supported assume there is no need for dedicated
allocations.

Affects: dEQP-VK.synchronization.cross_instance.*

VK-GL-CTS issue: 548
Components: Vulkan

Change-Id: Icb4f5a34b98da213d0cb665bcc4e6b048d7b8a3c

6 years agoRefactor synchronization test code to avoid compiler warning
gkbldval [Fri, 14 Jul 2017 16:49:26 +0000 (18:49 +0200)]
Refactor synchronization test code to avoid compiler warning

vkt::synchronization::s_resources is unused in recently
added file, causing -Wunused warning (treated as error).

Affects: dEQP-VK.synchronization.*

Components: Vulkan

VK-GL-CTS issue: 578

Change-Id: Ifd8ce0812673e6b2da7c28bacb4384b3c80f65d1

6 years agoFix gcc 5.4 warnings
Alexander Galazin [Wed, 5 Jul 2017 15:09:38 +0000 (17:09 +0200)]
Fix gcc 5.4 warnings

gcc 5.4 (default in Ubuntu 16.04) reports conversion to int
warnings/errors for bitwise or and assign operator.

GCC bug: 40752

Components: Framework, Vulkan

Change-Id: Ia857c44cf54d5571d857e1fada0e2aaa8f4b950d
(cherry picked from commit 0bd8828618d95d2a83bc7475179a9227bfd22f5f)

6 years agoAdd option to skip fetch external sources
Alexander Galazin [Fri, 14 Jul 2017 07:48:05 +0000 (09:48 +0200)]
Add option to skip fetch external sources

Added option to check_build_sanity.py to skip running
fetch_sources.py. Allows to run multiple concurrent invocations
of check_build_sanity.py using the same source folder.

Components: Framework

Change-Id: I6289920860fb20287c405cefc0213c27f326857b

6 years agoMerge Vulkan CTS 1.0.2.4 into aosp/master
Mika Isojärvi [Fri, 14 Jul 2017 22:20:31 +0000 (15:20 -0700)]
Merge Vulkan CTS 1.0.2.4 into aosp/master

Bug: 62712168
Change-Id: Ib5dcdc7645193825171cb93c5a3b8a0820cbc5a1

6 years agoMerge "Report Android extension pack tests as not supported"
Mika Isojarvi [Fri, 14 Jul 2017 22:19:32 +0000 (22:19 +0000)]
Merge "Report Android extension pack tests as not supported"
am: 03c395c60f

Change-Id: Ic6936c264bacfc1868aa4cd98fb941459315d141

6 years agoMerge "Report Android extension pack tests as not supported"
Mika Isojarvi [Fri, 14 Jul 2017 22:11:54 +0000 (22:11 +0000)]
Merge "Report Android extension pack tests as not supported"

6 years agoUpdate GL wrapper to newest API.
Mika Isojrvi [Fri, 14 Jul 2017 18:08:57 +0000 (18:08 +0000)]
Update GL wrapper to newest API.
am: 7782ec5bab

Change-Id: I2fc3226b845464a631fba0088b37b2b52740ae58

6 years agoFetch gl.xml, egl.xml from Github repos
Alexander Galazin [Fri, 14 Jul 2017 18:08:53 +0000 (18:08 +0000)]
Fetch gl.xml, egl.xml from Github repos
am: ae3759c7c9

Change-Id: I5f2986afdfe687525e5b21284b5358e915d9c3f1

6 years agoUpdate GL wrapper to newest API.
Mika Isojärvi [Thu, 13 Jul 2017 17:55:43 +0000 (10:55 -0700)]
Update GL wrapper to newest API.

Components: Framework
Affects: headers generation
Test: Run some of the functional deqp GLES tests on couple of Pixel
      and Nexus devices
Bug: 63669033

Change-Id: Id5e8924a1cec9bc72156efa51625d566ed2681ca

6 years agoFetch gl.xml, egl.xml from Github repos
Alexander Galazin [Fri, 24 Feb 2017 20:47:42 +0000 (21:47 +0100)]
Fetch gl.xml, egl.xml from Github repos

SVN repository containing gl.xml and egl.xml is no longer updated.
The new locations for these files are OpenGL-Registry and
EGL-Registry repositories on Github.
Adjust fetching scripts to use the new locations.

Components: Framework
Affects: headers generation

Change-Id: Ic091a46c636d446b6a4751bd3b797bcd19f90014

6 years agoReport Android extension pack tests as not supported
Alexander Galazin [Wed, 12 Jul 2017 12:38:01 +0000 (14:38 +0200)]
Report Android extension pack tests as not supported

Android extension pack tests can't run on GLES31-only GPUs.
Report such tests as NotSupported.

Components: AOSP

Change-Id: I88ab61e5d0b263428c41a644c6417e24e2f7f234

6 years agoMask compared bits in atomic operation tests. am: b2ed9fbe1a am: 4d1d6446da am: b78f9...
Mika Isojrvi [Wed, 12 Jul 2017 23:04:02 +0000 (23:04 +0000)]
Mask compared bits in atomic operation tests. am: b2ed9fbe1a am: 4d1d6446da am: b78f9b0e57
am: 6e213b6fdc

Change-Id: Ibdef51e98254c59b3050d59f74417d98c226114e

6 years agoMask compared bits in atomic operation tests. am: b2ed9fbe1a am: 4d1d6446da
Mika Isojrvi [Wed, 12 Jul 2017 22:55:28 +0000 (22:55 +0000)]
Mask compared bits in atomic operation tests. am: b2ed9fbe1a am: 4d1d6446da
am: b78f9b0e57

Change-Id: I8c3f63b90541d59965f4af1e60cb8654ce734faa

6 years agoMask compared bits in atomic operation tests. am: b2ed9fbe1a
Mika Isojrvi [Wed, 12 Jul 2017 22:53:28 +0000 (22:53 +0000)]
Mask compared bits in atomic operation tests. am: b2ed9fbe1a
am: 4d1d6446da

Change-Id: I9931765924b1102c011bd1d75522f9b4f7089dd2

6 years agoMask compared bits in atomic operation tests.
Mika Isojrvi [Wed, 12 Jul 2017 22:51:27 +0000 (22:51 +0000)]
Mask compared bits in atomic operation tests.
am: b2ed9fbe1a

Change-Id: I2f7b4cfbf2d926966af7c9956db670080771c164

6 years agoAdd missing files to Android.mk
Mika Isojrvi [Wed, 12 Jul 2017 17:14:19 +0000 (17:14 +0000)]
Add missing files to Android.mk
am: 58f3ba4184

Change-Id: I21e21b4c0c6e4f8aa59bfc1e76abb26969a66b99

6 years agoAdd RENDERBUFFER_VALID bit to R8, RG8 definition
Alexander Galazin [Wed, 12 Jul 2017 17:14:17 +0000 (17:14 +0000)]
Add RENDERBUFFER_VALID bit to R8, RG8 definition
am: 1d7c8df82e

Change-Id: Icac62d124fbf4343bd4df66b996df29e141bf904

6 years agoCheck that threads started in multithreading tests
Mark Adams [Wed, 12 Jul 2017 17:14:14 +0000 (17:14 +0000)]
Check that threads started in multithreading tests
am: 9937c63c41

Change-Id: I91124362afc8e160a92390a455b04b235feedc20

6 years agoReduce scope of mustpass exclusions due to 22760309
Pyry Haulos [Wed, 12 Jul 2017 17:14:11 +0000 (17:14 +0000)]
Reduce scope of mustpass exclusions due to 22760309
am: 5d86672aa0

Change-Id: I302a5121b2f47b0e007d20de659d6a3a5be69a13

6 years agoAdd new large constant array indexing tests
John Richardson [Wed, 12 Jul 2017 17:14:08 +0000 (17:14 +0000)]
Add new large constant array indexing tests
am: fc35227a44

Change-Id: I5f0f7cd3c728ad654ffd1c50fd35e18311dc2f2a

6 years agoReset GL_FRAMEBUFFER_SRGB state for ES tests
james.glanville [Wed, 12 Jul 2017 17:14:05 +0000 (17:14 +0000)]
Reset GL_FRAMEBUFFER_SRGB state for ES tests
am: 695727058b

Change-Id: Ibabcb431d04ede9185b526c1b7e8d3acb8ed529b

6 years agoApply sRGB conversion to reference in sRGB framebuffer fetch test
james.glanville [Wed, 12 Jul 2017 17:14:01 +0000 (17:14 +0000)]
Apply sRGB conversion to reference in sRGB framebuffer fetch test
am: c76765be1f

Change-Id: I23af2ab9cbec09fafb8aac9e1c6b692a97e86b8e

6 years agoFix for integer formats in framebuffer extension tests
John Richardson [Wed, 12 Jul 2017 17:13:59 +0000 (17:13 +0000)]
Fix for integer formats in framebuffer extension tests
am: 3bb47b5c57

Change-Id: I697253bc3bc555f2fc6e710fa47bc8b13c7b1fd5

6 years agoAdd new framebuffer fetch extension tests
John Richardson [Wed, 12 Jul 2017 17:13:56 +0000 (17:13 +0000)]
Add new framebuffer fetch extension tests
am: 2a609fb223

Change-Id: If72421b67593c260ba77d8e4703b0b9733de8057

6 years agoCode clean up in swizzle math operations script
John Richardson [Wed, 12 Jul 2017 17:13:53 +0000 (17:13 +0000)]
Code clean up in swizzle math operations script
am: fc24d7d28c

Change-Id: I53d01de80482c8b26db228cb748d8f9a5ac11fc8

6 years agoAdd new swizzle math operation tests
John Richardson [Wed, 12 Jul 2017 17:13:50 +0000 (17:13 +0000)]
Add new swizzle math operation tests
am: 821035bbc9

Change-Id: I5a0906a89e19e244ed43daf9232d2ddb35c266be

6 years agoFix compute.exceed_atomic_counters_limit
Pyry Haulos [Wed, 12 Jul 2017 17:13:47 +0000 (17:13 +0000)]
Fix compute.exceed_atomic_counters_limit
am: 5b837a5b21

Change-Id: I1ceea6a7811449291305f2ebe1cc5e694b5c85c0

6 years agoEnsure vertex shader presence if a geometry shader exists
Alexander Galazin [Wed, 12 Jul 2017 17:13:45 +0000 (17:13 +0000)]
Ensure vertex shader presence if a geometry shader exists
am: 5dd0c1077c

Change-Id: I36edc9fcc57dc0014d7268cd233d38cafa71819c

6 years agoAdd negative OES_sample_variables tests
Michael Hadley [Wed, 12 Jul 2017 17:13:43 +0000 (17:13 +0000)]
Add negative OES_sample_variables tests
am: d30cb29294

Change-Id: Ia45069e6615bc288c0012baa898a9988e4a47fe4

6 years agoAdd new compute negative coverage tests
John Richardson [Wed, 12 Jul 2017 17:13:40 +0000 (17:13 +0000)]
Add new compute negative coverage tests
am: db4a886f3f

Change-Id: I21936949454726f533cbb00c50bf7676cdfc3934

6 years agoAdd new EGL enum negative case to robustness tests
John Richardson [Wed, 12 Jul 2017 17:13:38 +0000 (17:13 +0000)]
Add new EGL enum negative case to robustness tests
am: c77b3cf9f3

Change-Id: If855842a36b3ff75983385b7d41fb18ad8027c07

6 years agoAdd negative sRGB texture/sampler API tests
Michael Hadley [Wed, 12 Jul 2017 17:13:36 +0000 (17:13 +0000)]
Add negative sRGB texture/sampler API tests
am: a237c0c9ac

Change-Id: Ibbca047e6bc921aa9b4c010c74c0cd3f7b1983c3

6 years agoFix DrawRangeElementsBaseVertex tests with negative basevertex
Alexander Galazin [Wed, 12 Jul 2017 17:13:33 +0000 (17:13 +0000)]
Fix DrawRangeElementsBaseVertex tests with negative basevertex
am: bf0b29365e

Change-Id: Ibb0b8fc9cb897a93c64a3ce4fe68fd32a10c9974

6 years agoAdd new draw elements base vertex tests
John Richardson [Wed, 12 Jul 2017 17:13:29 +0000 (17:13 +0000)]
Add new draw elements base vertex tests
am: 3c865084eb

Change-Id: I4d86b9e26e8e7bed25fbc28322e5f26af863b2ca

6 years agoFix typo in framebuffer_srgb_unsupported_enum
Pyry Haulos [Wed, 12 Jul 2017 17:13:26 +0000 (17:13 +0000)]
Fix typo in framebuffer_srgb_unsupported_enum
am: b46d559e07

Change-Id: Idd1432ebb3645fb99ffaab3a30b97e79a84a7697

6 years agoAdd sRGB write decode negative case
John Richardson [Wed, 12 Jul 2017 17:13:22 +0000 (17:13 +0000)]
Add sRGB write decode negative case
am: 6644e7bfef

Change-Id: I891ebd32dba50da03cded87bd8590b0ef3da86e4

6 years agoAdd sRGB write decode tests
Michael Hadley [Wed, 12 Jul 2017 17:13:18 +0000 (17:13 +0000)]
Add sRGB write decode tests
am: 50d8f31f52

Change-Id: I6bdff6bf5586edf15d05fad9a0a8c39fc54b5dce

6 years agoAdd missing files to Android.mk
Mika Isojärvi [Fri, 7 Jul 2017 22:46:05 +0000 (15:46 -0700)]
Add missing files to Android.mk

Change-Id: I843a5b2967b130f3c7399865e1d0e56af840c1ae

6 years agoAdd RENDERBUFFER_VALID bit to R8, RG8 definition
Alexander Galazin [Wed, 28 Jun 2017 07:31:31 +0000 (09:31 +0200)]
Add RENDERBUFFER_VALID bit to R8, RG8 definition

FBO completness tests missed that R8/RG8 are valid internal formats
for glRenderbufferStorage* calls starting from GLES3. This caused
the tests to expect error on some implementations.

VK-GL-CTS issue: 532

Components: AOSP

Affects:
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.color0.r8
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.color0.rg8

Change-Id: I394ac0e75f83f0a5ca03634629293f109fc0cbb7