platform/upstream/VK-GL-CTS.git
6 years ago[automerger skipped] Merge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulka...
android-build-prod (mdb) [Tue, 1 May 2018 17:37:01 +0000 (10:37 -0700)]
[automerger skipped] Merge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into HEAD" into oreo-mr1-cts-dev am: ea8d8c6e51  -s ours
am: b9ddb8a5e6  -s ours

Change-Id: I7476bbb201a31459c388ea363a17c1bdbb6b8fea

6 years ago[automerger skipped] Merge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulka...
android-build-prod (mdb) [Tue, 1 May 2018 17:27:58 +0000 (10:27 -0700)]
[automerger skipped] Merge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into HEAD" into oreo-mr1-cts-dev
am: ea8d8c6e51  -s ours

Change-Id: Iafc1890dde07fdf56154e1742ce2d59648bc02af

6 years agoMerge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into...
android-build-prod (mdb) [Tue, 1 May 2018 17:23:07 +0000 (17:23 +0000)]
Merge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into HEAD" into oreo-mr1-cts-dev

6 years agoAllow the window to be recreated in the middle of a test am: 30ef1bf331 am: 38611cff1...
Lloyd Pique [Mon, 30 Apr 2018 19:54:43 +0000 (12:54 -0700)]
Allow the window to be recreated in the middle of a test am: 30ef1bf331 am: 38611cff1b am: 6eca3b9153
am: 9800dc3074

Change-Id: I7e2fff3665bd75ac5c470aa2ca7fd69b6a6acd14

6 years agoAllow the window to be recreated in the middle of a test am: 30ef1bf331 am: 38611cff1b
Lloyd Pique [Mon, 30 Apr 2018 19:34:53 +0000 (12:34 -0700)]
Allow the window to be recreated in the middle of a test am: 30ef1bf331 am: 38611cff1b
am: 6eca3b9153

Change-Id: I9347f789b79bf1bbcb128aab72ff4e62a662537a

6 years agoAllow the window to be recreated in the middle of a test am: 30ef1bf331
Lloyd Pique [Mon, 30 Apr 2018 19:30:50 +0000 (12:30 -0700)]
Allow the window to be recreated in the middle of a test am: 30ef1bf331
am: 38611cff1b

Change-Id: Ib6b7ff02fe67679472877a9cc5dff04f7d01a17a

6 years agoAllow the window to be recreated in the middle of a test
Lloyd Pique [Mon, 30 Apr 2018 19:26:18 +0000 (12:26 -0700)]
Allow the window to be recreated in the middle of a test
am: 30ef1bf331

Change-Id: Ic2683d5ad4515c3d65339b5027e76b1574374548

6 years ago[automerger skipped] Merge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulka...
android-build-prod (mdb) [Mon, 30 Apr 2018 17:47:59 +0000 (10:47 -0700)]
[automerger skipped] Merge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into HEAD" into oreo-cts-dev am: 354706417a  -s ours am: c78fc14ea5  -s ours
am: 1d8110d340  -s ours

Change-Id: Ia6700fe5419e974a5ecde0aa777c8287453dddd8

6 years ago[automerger skipped] Merge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulka...
android-build-prod (mdb) [Mon, 30 Apr 2018 17:36:57 +0000 (10:36 -0700)]
[automerger skipped] Merge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into HEAD" into oreo-cts-dev am: 354706417a  -s ours
am: c78fc14ea5  -s ours

Change-Id: Iedf43f729df806befedad07e7f8ae5d7b4bddd92

6 years ago[automerger skipped] Merge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulka...
android-build-prod (mdb) [Mon, 30 Apr 2018 17:32:26 +0000 (10:32 -0700)]
[automerger skipped] Merge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into HEAD" into oreo-cts-dev
am: 354706417a  -s ours

Change-Id: I37e6dad1ab2d2eb9bee4a529f16c77981afbb54b

6 years agoMerge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into...
android-build-prod (mdb) [Mon, 30 Apr 2018 17:30:06 +0000 (17:30 +0000)]
Merge "DO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into HEAD" into oreo-cts-dev

6 years agoDO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into HEAD
Chris Forbes [Tue, 27 Feb 2018 00:31:59 +0000 (16:31 -0800)]
DO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into HEAD

Change-Id: Id624bed0598e117aff161ee6ed92a135095e33d7
Bug: b/73945443

6 years agoAllow the window to be recreated in the middle of a test
Lloyd Pique [Wed, 25 Apr 2018 02:08:39 +0000 (19:08 -0700)]
Allow the window to be recreated in the middle of a test

On ARC++ devices, some of the dEQP CTS tests were occasionally failing on
devices running in tablet mode, due to the timing of a WM relayout that
happens shortly after the orientation change is realized.

We traced it back to the dEQP test harness always expecting to see a
call from the system to onNativeWindowResized() after a call to
oNNativeWindowCreated(). It happened that the relayout on ARC++ devices
was not causing a size change, so this message was never received.

The result was that the test paused itself, and never completed. The
watchdog thread that the test harness creates ended up killing and
failing the test.

This patch adjusts the logic so that the activity only waits to process
the window creation for the very first call to onNativeWindowResized(),
as when the activity is first created that call is indeed made (but note
not really guaranteed). A subsequent call to onNativeWindowCreated()
will unpause the test (setting the READY state), as well as finish
processing the window creation.

Bug: 74371892
Test: dEQP-GLES3.functional.prerequisite#clear_color
Change-Id: I3c429aea272cbfee3f150a32c12233c9f38a7936

6 years agoDO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into HEAD
Chris Forbes [Tue, 27 Feb 2018 00:31:59 +0000 (16:31 -0800)]
DO NOT MERGE: Merge remote-tracking branch 'khronos/vulkan-cts-1.0.2' into HEAD

Change-Id: Id624bed0598e117aff161ee6ed92a135095e33d7
Bug: b/73945443

6 years agoRelax the precision requirements for derivate built-ins
Jeff Leger [Tue, 17 Apr 2018 21:18:34 +0000 (14:18 -0700)]
Relax the precision requirements for derivate built-ins
am: 1dfe5d68bd

Change-Id: I5e86161e52afb6c23651fb857396868e284604da

6 years agoRelax the precision requirements for derivate built-ins
Jeff Leger [Thu, 1 Feb 2018 01:31:13 +0000 (20:31 -0500)]
Relax the precision requirements for derivate built-ins

Allow for relaxed precision thredholds for derivatives,
with a quality warning.

Affects: dEQP-GLES3.functional.shaders.derivate.*

Components: AOSP

Khronos vk-gl-cts issue: 977

Change-Id: I1d69ad71b79a30a36daf2bf75b2f50d309bc5496

6 years agoUse de::min instead of std::min
Mikael Tuomisalo [Mon, 9 Apr 2018 18:50:26 +0000 (11:50 -0700)]
Use de::min instead of std::min
am: 1d08d3f4fe

Change-Id: I2fe6933d6123432679d00448599a74c9e6e4d134

6 years agoUse de::min instead of std::min
Mikael Tuomisalo [Mon, 5 Mar 2018 18:33:33 +0000 (20:33 +0200)]
Use de::min instead of std::min

std::min was used without including algorithm, which breaks build on
at least VS2017

Components: OpenGL ES
VK-GL-CTS issue: 1054

Affects:
dEQP-GLES2.functional.texture.size.*
dEQP-GLES3.functional.texture.size.*

Change-Id: Id3edb237931d6957095cf6b8fcb38359422decd3
(cherry picked from commit 177b82dfaff4531c10ddce2acf5cc43a15169670)

6 years agoMerge "Require GL_EXT_sRGB_write_control for GL_FRAMEBUFFER_SRGB enable/disable"...
Kenneth Graunke [Wed, 28 Mar 2018 00:50:04 +0000 (00:50 +0000)]
Merge "Require GL_EXT_sRGB_write_control for GL_FRAMEBUFFER_SRGB enable/disable" into oreo-mr1-cts-dev am: c6b5415220
am: 2d7f7e8b46

Change-Id: Icf309bb59c75e9ec3c9fdaa5710481082402917f

6 years agoMerge "Require GL_EXT_sRGB_write_control for GL_FRAMEBUFFER_SRGB enable/disable"...
Kenneth Graunke [Wed, 28 Mar 2018 00:35:29 +0000 (00:35 +0000)]
Merge "Require GL_EXT_sRGB_write_control for GL_FRAMEBUFFER_SRGB enable/disable" into oreo-mr1-cts-dev
am: c6b5415220

Change-Id: I36d5a70037b66e27342c76a050fadc7607906531

6 years agoMerge "Require GL_EXT_sRGB_write_control for GL_FRAMEBUFFER_SRGB enable/disable"...
Treehugger Robot [Wed, 28 Mar 2018 00:32:19 +0000 (00:32 +0000)]
Merge "Require GL_EXT_sRGB_write_control for GL_FRAMEBUFFER_SRGB enable/disable" into oreo-mr1-cts-dev

6 years agoFixes to EGL.functional.hdr_metadata.* tests
Tapani Plli [Tue, 27 Mar 2018 17:20:05 +0000 (17:20 +0000)]
Fixes to EGL.functional.hdr_metadata.* tests
am: 07048b63e9

Change-Id: Iec79ae25e057e9b810b4eb05be615a7e0330707e

6 years agoFixes to EGL.functional.hdr_metadata.* tests
Tapani Pälli [Mon, 26 Mar 2018 12:10:16 +0000 (15:10 +0300)]
Fixes to EGL.functional.hdr_metadata.* tests

- Adjust given values to fit uint16_t (range used in smpte2086
  and cta861.3 specs).

- Allow EGL_BAD_PARAMETER error happen when setting parameters,
  per spec this means values passed are not supported by the
  implementation. Output attribute and given values in this
  case for debugging purposes.

v2: skip unsupported but check supported attributes (Courtney)

Change-Id: I1f386b414c95e65d3532bf10719dc7671e826489
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
6 years agoHandle gcc 7 warnings am: 3677383919 am: 2d4c86a43b
Caio Marcelo de Oliveira Filho [Fri, 23 Mar 2018 00:28:46 +0000 (00:28 +0000)]
Handle gcc 7 warnings am: 3677383919 am: 2d4c86a43b
am: 203f226313

Change-Id: I2453f20db0f05c8b351bfa72f3d926ee8d42fc88

6 years agoHandle gcc 7 warnings am: 3677383919
Caio Marcelo de Oliveira Filho [Fri, 23 Mar 2018 00:16:06 +0000 (00:16 +0000)]
Handle gcc 7 warnings am: 3677383919
am: 2d4c86a43b

Change-Id: I661bc617fbc55db9c013a63dc337c431b263bd10

6 years agoHandle gcc 7 warnings
Caio Marcelo de Oliveira Filho [Fri, 23 Mar 2018 00:10:32 +0000 (00:10 +0000)]
Handle gcc 7 warnings
am: 3677383919

Change-Id: I058154400ec6755a9eaf873a6421942fcad4cd11

6 years agoHandle gcc 7 warnings
Caio Marcelo de Oliveira Filho [Thu, 22 Feb 2018 01:54:57 +0000 (17:54 -0800)]
Handle gcc 7 warnings

- "-Wimplicit-fallthrough" warns on case conditions that
  fallthrough. GCC does have a way to accept conditions that have a
  comment about falling through inside the cases, but the codebase has
  other cases where a single comment explains the fallthrough for the
  whole switch. This warning is being ignored. It was not possible to
  use "-Wno-error=WARNING" because older GCCs fail -- but they do
  accept "-Wno-WARNING" where WARNING is unknown (since at least gcc
  4.6.4).

- "-Wint-in-bool-context" warns (among other things) about result of
  multiplication being used in boolean context. Code was changed to
  use de::max() instead.

- "-Wmaybe-uninitialized" warned about some attributes of a struct not
  being initialized depending on the case. Code was changed to
  initialize the struct in question.

Components: Framework, Vulkan

Bug: b/74405145

Change-Id: Iabb26f01e047353c6e2a704ab27b673e85b185be
(cherry picked from commit f1ee9253e64f7434cdba7c8ac048c0e9baccc133)

6 years agoRequire GL_EXT_sRGB_write_control for GL_FRAMEBUFFER_SRGB enable/disable
Kenneth Graunke [Sat, 9 Sep 2017 06:26:15 +0000 (23:26 -0700)]
Require GL_EXT_sRGB_write_control for GL_FRAMEBUFFER_SRGB enable/disable

This test required GL_EXT_sRGB_write_control or ES 3.2.  But glEnable
and glDisable of GL_FRAMEBUFFER_SRGB requires the extension - ES 3.2
doesn't provide that functionality.  ES 3.2 implementations without the
extension would fail.  Now they report NotSupported.

Affects:
dEQP-GLES31.functional.fbo.srgb_write_control.framebuffer_srgb_enabled

Components: AOSP

Bug: b/75898891

Change-Id: I9d6b3fba892288354620ecbbc51ef7a351507e43
(cherry picked from commit f5bc215a968512ba967ce68cc3640c45bc776f2c)

6 years agoMerge "Fix ShaderUniformIntegerFunctionTest to not have bool precision"
Raymond Chiu [Tue, 13 Mar 2018 01:10:39 +0000 (01:10 +0000)]
Merge "Fix ShaderUniformIntegerFunctionTest to not have bool precision"
am: 68f5c1af8c

Change-Id: I6468d6e253acd878a7ae8c90d2d8be84fbc4aaa3

6 years agoMerge "Fix ShaderUniformIntegerFunctionTest to not have bool precision"
Raymond Chiu [Tue, 13 Mar 2018 00:49:05 +0000 (00:49 +0000)]
Merge "Fix ShaderUniformIntegerFunctionTest to not have bool precision"

6 years agoFix ShaderUniformIntegerFunctionTest to not have bool precision
Raymond Chiu [Mon, 12 Mar 2018 17:49:10 +0000 (10:49 -0700)]
Fix ShaderUniformIntegerFunctionTest to not have bool precision

Bug: 71875560
Components: AOSP
Affects: dEQP-GLES31.functional.shaders.builtin_functions.uniform.*
Change-Id: I25325aa74090ec253da33ba2677ac281e3a6e01c

6 years agoeglGetFrameTimestamps: Don't require reads done to be monotonic. am: e8634c9254 am...
Brian Anderson [Mon, 12 Mar 2018 18:17:52 +0000 (18:17 +0000)]
eglGetFrameTimestamps: Don't require reads done to be monotonic. am: e8634c9254 am: 24f69aed49
am: d9680efd9e

Change-Id: I932280da6deeb261acc688ca04f7da080eb17fd2

6 years agoeglGetFrameTimestamps: Don't require reads done to be monotonic. am: e8634c9254
Brian Anderson [Mon, 12 Mar 2018 17:59:09 +0000 (17:59 +0000)]
eglGetFrameTimestamps: Don't require reads done to be monotonic. am: e8634c9254
am: 24f69aed49

Change-Id: I793d5340447fc5fea2e7e6dfcdc11a4b174812bb

6 years agoeglGetFrameTimestamps: Don't require reads done to be monotonic.
Brian Anderson [Mon, 12 Mar 2018 17:54:36 +0000 (17:54 +0000)]
eglGetFrameTimestamps: Don't require reads done to be monotonic.
am: e8634c9254

Change-Id: I68606ee22f516db51b60db205cd7ebb28cc563f6

6 years agoAdd tests for findLSB/findMSB applied to a uniform value.
Raymond Chiu [Sat, 10 Mar 2018 00:26:36 +0000 (00:26 +0000)]
Add tests for findLSB/findMSB applied to a uniform value.
am: 0d07e85094

Change-Id: I12e59b3b2319ee5b76846fe5599fff00f5aabcad

6 years agoeglGetFrameTimestamps: Don't require reads done to be monotonic.
Brian Anderson [Fri, 9 Mar 2018 18:25:08 +0000 (10:25 -0800)]
eglGetFrameTimestamps: Don't require reads done to be monotonic.

Reads done is usually monotonic, but only under the assumption
that every buffer of the surface is being consumed by the same
unit. It is possible for a surface to switch between being an
overlay and being composited by the GPU. It's also possible a
driver will maintain a shadow copy of a frame that will further
affect when reads from a buffer might finish.

Remove the overly strict check.

Bug: 7033485174184639
Test: --deqp-case=dEQP-EGL*get_frame_timestamps*
Change-Id: I8e242a9fd649720b4d8059797c71163329b7b92c

6 years agoAdd tests for findLSB/findMSB applied to a uniform value.
Raymond Chiu [Tue, 13 Feb 2018 23:13:47 +0000 (15:13 -0800)]
Add tests for findLSB/findMSB applied to a uniform value.

Ensure that findLSB/findMSB work correctly when:

Argument is a uniform value, of various precisions
Result is written out directly
Result is compared to a fixed value

Components: AOSP
Bug: 71875560
New Tests: dEQP-GLES31.functional.shaders.builtin_functions.uniform.*

Merged-In: I0dc83b291d1ecaed5e451b76e4b41827116218c6
Change-Id: Iafd784deaf22dd86b6bfc955af967e4482d9e95c

6 years agoFix egl config filtering of config_id
Rosen Zhelev [Sat, 3 Mar 2018 02:57:15 +0000 (02:57 +0000)]
Fix egl config filtering of config_id
am: 4bed9578e1

Change-Id: Icb3058fd28dace4166f7113c7e291c74879ebc63

6 years agoFix egl config filtering of config_id
Rosen Zhelev [Thu, 22 Feb 2018 15:14:05 +0000 (15:14 +0000)]
Fix egl config filtering of config_id

The reference config filter function is changed to correctly implement
the EGL spec for eglChooseConfig() by ignoring all other attributes
when EGL_CONFIG_ID is specified.

Affects:
dEQP-EGL.functional.choose_config.simple.selection_only.config_id
dEQP-EGL.functional.choose_config.simple.selection_and_sort.config_id

Change-Id: Id29758954ce476e6d187fba228d5156295165b02
Components: AOSP

6 years agoRename Interval::warning's parameters to avoid shadowing
Chris Forbes [Tue, 27 Feb 2018 17:26:11 +0000 (17:26 +0000)]
Rename Interval::warning's parameters to avoid shadowing
am: da1ea2c8b9

Change-Id: I494a9484a65e0c9809ecf99bf94ce008826ec3be

6 years agoRename Interval::warning's parameters to avoid shadowing
Chris Forbes [Tue, 27 Feb 2018 15:54:49 +0000 (07:54 -0800)]
Rename Interval::warning's parameters to avoid shadowing

GCC 4.9 warns about this, causing build failures with -Werror

Change-Id: Ic3579de84f4b3f1f231240910dbd15dafe90c6bc
Components: Framework

6 years agoDO NOT MERGE: Fix dEQP-VK.api.copy_and_blit.image_to_image_depth value range. am...
Bas Nieuwenhuizen [Fri, 23 Feb 2018 22:32:13 +0000 (22:32 +0000)]
DO NOT MERGE: Fix dEQP-VK.api.copy_and_blit.image_to_image_depth value range. am: f03effb5a0  -s ours am: 7c8b312fbe  -s ours am: 5be6880be9  -s ours
am: d180d1ea04  -s ours

Change-Id: I89858c2efa73b2c1af4c68448b15f47b56d35d1a

6 years agoDO NOT MERGE: Fix dEQP-VK.api.copy_and_blit.image_to_image_depth value range. am...
Bas Nieuwenhuizen [Fri, 23 Feb 2018 22:15:37 +0000 (22:15 +0000)]
DO NOT MERGE: Fix dEQP-VK.api.copy_and_blit.image_to_image_depth value range. am: f03effb5a0  -s ours am: 7c8b312fbe  -s ours
am: 5be6880be9  -s ours

Change-Id: I89fdca56007f43c479e6129183fb2f8c76b5193b

6 years agoDO NOT MERGE: Fix dEQP-VK.api.copy_and_blit.image_to_image_depth value range. am...
Bas Nieuwenhuizen [Fri, 23 Feb 2018 22:09:07 +0000 (22:09 +0000)]
DO NOT MERGE: Fix dEQP-VK.api.copy_and_blit.image_to_image_depth value range. am: f03effb5a0  -s ours
am: 7c8b312fbe  -s ours

Change-Id: I7302bfbf8d9c38c8a01e604253a9cca1bba8b76c

6 years agoDO NOT MERGE: Fix dEQP-VK.api.copy_and_blit.image_to_image_depth value range.
Bas Nieuwenhuizen [Fri, 23 Feb 2018 22:03:07 +0000 (22:03 +0000)]
DO NOT MERGE: Fix dEQP-VK.api.copy_and_blit.image_to_image_depth value range.
am: f03effb5a0  -s ours

Change-Id: I26792ef93ead582aabb8bd5beb386588846c7489

6 years agoFix low memory in dedicated_alloc buffer tests
Tom Cooper [Mon, 12 Feb 2018 16:20:58 +0000 (16:20 +0000)]
Fix low memory in dedicated_alloc buffer tests

Observe platform memory limits to avoid low memory conditions.

Components: Vulkan

VK-GL-CTS issue: 1008

Affects: dEQP-VK.api.buffer.dedicated_alloc.create_buffer_*

Change-Id: Ib184b648126e8cb6e1acff533447a86be9a1a612

6 years agoMerge "Fix missing precision qualifiers in multiview tests"
james.glanville [Fri, 16 Feb 2018 19:29:14 +0000 (19:29 +0000)]
Merge "Fix missing precision qualifiers in multiview tests"
am: c0e7d568be

Change-Id: Iec4e0625443edddf82311a01d50007e7f752d183

6 years agoMerge "Fix missing precision qualifiers in multiview tests"
Treehugger Robot [Fri, 16 Feb 2018 19:18:40 +0000 (19:18 +0000)]
Merge "Fix missing precision qualifiers in multiview tests"

6 years agoTemporarily exclude unspecified-precision tests
Chris Forbes [Thu, 15 Feb 2018 21:34:56 +0000 (21:34 +0000)]
Temporarily exclude unspecified-precision tests
am: 3c670b2ee2

Change-Id: Ifaa3aba65607a5598a47e01033db0cac5b22eef0

6 years agoTemporarily exclude unspecified-precision tests
Chris Forbes [Thu, 15 Feb 2018 18:14:12 +0000 (10:14 -0800)]
Temporarily exclude unspecified-precision tests

Change-Id: I3849dcef5718c73e0aac4a92b355ed4012a81240
Components: AOSP
Bug: b/73070970

6 years agoFix missing precision qualifiers in multiview tests
james.glanville [Thu, 15 Feb 2018 15:50:04 +0000 (15:50 +0000)]
Fix missing precision qualifiers in multiview tests

Multiview final fragment shader was missing some precision qualifiers,
causing compilation failures.

Affects:

dEQP-GLES3.functional.fbo.multiview.*

Change-Id: I25c268260b6676eb666666ca8e675e5fa7ec7303

6 years agoDO NOT MERGE: Fix dEQP-VK.api.copy_and_blit.image_to_image_depth value range.
Bas Nieuwenhuizen [Thu, 15 Feb 2018 10:33:22 +0000 (11:33 +0100)]
DO NOT MERGE: Fix dEQP-VK.api.copy_and_blit.image_to_image_depth value range.

Per spec:

"Because depth or stencil aspect buffer to image copies may require format conversions on some
implementations, they are not supported on queues that do not support graphics. When copying to
a depth aspect, the data in buffer memory must be in the the range [0,1] or undefined results occur."

Initializing it to integer values falls afoul of this rule
quickly. As the image is 256 by 256, x/255.0 should always fall in the range [0,1].

Not entirely sure this would initialize combined depth stencil correctly,
but this version of CTS does not have a test using those formats with
this code.

This has been fixed upstream for a while with

"9909b9f3 Fix combined depth/stencil clear colors."

but this is not a straight backport as these tests saw some significant rework between
this CTS version and the fix.

Bug: b/73449389

Change-Id: Iaf0ce14ed4338d437f1b20033be5d0f8c0cbd699

6 years agoMerge "Merge remote-tracking branch 'origin/vulkan-cts-1.0.2' into HEAD" into oreo...
Chris Forbes [Tue, 13 Feb 2018 22:31:28 +0000 (22:31 +0000)]
Merge "Merge remote-tracking branch 'origin/vulkan-cts-1.0.2' into HEAD" into oreo-cts-dev am: 6d6ebc1b4b am: cc01ada806
am: 0b5bb4a854

Change-Id: Ibe258b819ad027ff3bc3c25de2a9d94ac7d94e6b

6 years agoMerge "Merge remote-tracking branch 'origin/vulkan-cts-1.0.2' into HEAD" into oreo...
Chris Forbes [Tue, 13 Feb 2018 21:27:05 +0000 (21:27 +0000)]
Merge "Merge remote-tracking branch 'origin/vulkan-cts-1.0.2' into HEAD" into oreo-cts-dev am: 6d6ebc1b4b
am: cc01ada806

Change-Id: I6827e2294199817a66666ed5db941491f5462f2a

6 years agoMerge "Merge remote-tracking branch 'origin/vulkan-cts-1.0.2' into HEAD" into oreo...
Chris Forbes [Tue, 13 Feb 2018 21:20:03 +0000 (21:20 +0000)]
Merge "Merge remote-tracking branch 'origin/vulkan-cts-1.0.2' into HEAD" into oreo-cts-dev
am: 6d6ebc1b4b

Change-Id: I71f98787bf29843efbe66343187c3a67c7ca39f9

6 years agoMerge "Merge remote-tracking branch 'origin/vulkan-cts-1.0.2' into HEAD" into oreo...
Treehugger Robot [Tue, 13 Feb 2018 21:08:38 +0000 (21:08 +0000)]
Merge "Merge remote-tracking branch 'origin/vulkan-cts-1.0.2' into HEAD" into oreo-cts-dev

6 years agoDO NOT MERGE: Sparse resources fixes am: ae793c389b -s ours am: ce25f76fbb -s ours...
Kantoch [Fri, 9 Feb 2018 19:17:14 +0000 (19:17 +0000)]
DO NOT MERGE: Sparse resources fixes am: ae793c389b  -s ours am: ce25f76fbb  -s ours am: fe93d4f83c  -s ours
am: f510e7901d  -s ours

Change-Id: Iaefdeb17daf7504a8d67aef36c76f69b85a128ad

6 years agoDO NOT MERGE: Sparse resources fixes am: ae793c389b -s ours am: ce25f76fbb -s ours
Kantoch [Fri, 9 Feb 2018 19:05:40 +0000 (19:05 +0000)]
DO NOT MERGE: Sparse resources fixes am: ae793c389b  -s ours am: ce25f76fbb  -s ours
am: fe93d4f83c  -s ours

Change-Id: I14929e52bc985f4d152628b48b4a6a76577738a7

6 years agoDO NOT MERGE: Sparse resources fixes am: ae793c389b -s ours
Kantoch [Fri, 9 Feb 2018 19:00:10 +0000 (19:00 +0000)]
DO NOT MERGE: Sparse resources fixes am: ae793c389b  -s ours
am: ce25f76fbb  -s ours

Change-Id: I8fa668d939b6c45df4590f823b029536895b4574

6 years agoDO NOT MERGE: Sparse resources fixes
Kantoch [Fri, 9 Feb 2018 18:54:40 +0000 (18:54 +0000)]
DO NOT MERGE: Sparse resources fixes
am: ae793c389b  -s ours

Change-Id: Ib87ed9843313e5ba76ccae32161ed5719615fa55

6 years agoYCbCr: go through the correct location ranges when sampling
Lionel Landwerlin [Fri, 9 Feb 2018 15:20:25 +0000 (15:20 +0000)]
YCbCr: go through the correct location ranges when sampling

Affects: dEQP-VK.ycbcr.conversion.*
Components: Vulkan
VK-GL-CTS issue: 1005

Change-Id: Ifac1026e82e1bb48195fc7ab5429951a15324042

6 years agoMerge "Separate HDR metadata into two tests"
Courtney Goeltzenleuchter [Thu, 8 Feb 2018 02:24:00 +0000 (02:24 +0000)]
Merge "Separate HDR metadata into two tests"
am: a34072a77a

Change-Id: I2015e92f4cf974f703f98139a185865dae67a2f4

6 years agoMerge "Separate HDR metadata into two tests"
Courtney Goeltzenleuchter [Wed, 7 Feb 2018 23:54:23 +0000 (23:54 +0000)]
Merge "Separate HDR metadata into two tests"

6 years agoDO NOT MERGE: Sparse resources fixes
Kantoch [Tue, 19 Jul 2016 11:37:33 +0000 (13:37 +0200)]
DO NOT MERGE: Sparse resources fixes

1. Do not allow to request more queues than available
2. Allow to reuse queue if it supports more than one type of operations

(cherry picked from VK-GL-CTS commit 5f2cf2f7139c2f603a02fe3c284921dd9152dee3)

Bug: b/72734354

Change-Id: Ia063df59c2220a082ea5a73a0fc968cfb97fda2c

6 years agoHandle unsupported no_config contexts am: b60ae978ad am: 307c716b4e
Mark Adams [Wed, 7 Feb 2018 17:49:12 +0000 (17:49 +0000)]
Handle unsupported no_config contexts am: b60ae978ad am: 307c716b4e
am: d217b05e1c

Change-Id: I7eb2f9039984dfcf4a0d6e5370e40669eb051c85

6 years agoHandle unsupported no_config contexts am: b60ae978ad
Mark Adams [Wed, 7 Feb 2018 17:36:09 +0000 (17:36 +0000)]
Handle unsupported no_config contexts am: b60ae978ad
am: 307c716b4e

Change-Id: I2f90861c7c32f75a1611cc13f0e892195daee747

6 years agoHandle unsupported no_config contexts
Mark Adams [Wed, 7 Feb 2018 17:31:36 +0000 (17:31 +0000)]
Handle unsupported no_config contexts
am: b60ae978ad

Change-Id: Idf51783fac99d14fa5ed28dbffd0db36b80e998b

6 years agoSeparate HDR metadata into two tests
Courtney Goeltzenleuchter [Wed, 7 Feb 2018 00:57:42 +0000 (16:57 -0800)]
Separate HDR metadata into two tests

Separated the HDR metadata test into two tests that
each test a single HDR metadata extension (SMPTE 2086 and CTA 861.3).
Also rename test group to be more specific to tests being added.

Change-Id: Icb98a5f47796c2c21faf0020221e9f5bb2969f9d

6 years agoMerge remote-tracking branch 'origin/vulkan-cts-1.0.2' into HEAD
Chris Forbes [Tue, 6 Feb 2018 01:12:53 +0000 (17:12 -0800)]
Merge remote-tracking branch 'origin/vulkan-cts-1.0.2' into HEAD

Bug: b/72972234

Change-Id: I537a4f3207c1f88d68a51a23f21a5fed0975b037

6 years agoMerge "Fix issues in the multiview tests"
Chris Forbes [Mon, 5 Feb 2018 20:28:41 +0000 (20:28 +0000)]
Merge "Fix issues in the multiview tests"
am: 887ba74d8b

Change-Id: I2bf3f5e8739bba60f4212e5664dedb193b8c1051

6 years agoMerge "Fix issues in the multiview tests"
Chris Forbes [Mon, 5 Feb 2018 20:21:03 +0000 (20:21 +0000)]
Merge "Fix issues in the multiview tests"

6 years agoDon't try to pass metadata attribs to eglCreate*Surface
Chris Forbes [Mon, 5 Feb 2018 18:34:16 +0000 (18:34 +0000)]
Don't try to pass metadata attribs to eglCreate*Surface
am: 9e63ede380

Change-Id: I3cab5f35dc1f67ed1feedd561d61803f0da2d17b

6 years agoFix issues in the multiview tests
Alexander Galazin [Mon, 5 Feb 2018 08:36:46 +0000 (09:36 +0100)]
Fix issues in the multiview tests

 * Fix few asserts
 * Add forgotten TestLog::EndSection

Components: AOSP

Affects: dEQP-GLES3.functional.mulitiview.*

Change-Id: Ieb7d09beace12ce7f00e6d9cddacea2465101cca

6 years agoPass in proper pWaitDstStageMask in vktWsiSharedPresentableImageTests
Vamsidhar Gaddam [Wed, 31 Jan 2018 10:23:48 +0000 (11:23 +0100)]
Pass in proper pWaitDstStageMask in vktWsiSharedPresentableImageTests

One of the submitInfos for a queue submit had
a semaphore passed in without passing in any stage mask. This is a
spec violation.

Affects:

dEQP-VK.wsi.android.shared_presentable_image.*

Components: Vulkan

VK-GL-CTS issue: 974

Change-Id: Iee2ea838e971a3610f44b8c1f765869a8a21fedb

6 years agoSpec relaxation for YCbCr Implicit chroma reconstruction
Panagiotis Apostolou [Wed, 17 Jan 2018 09:01:58 +0000 (10:01 +0100)]
Spec relaxation for YCbCr Implicit chroma reconstruction

Incorporates spec relaxation in the YCbCr tests which describes that when
doing implicit reconstruction with nearest chroma filtering, an
implementation may behave as if both xChromaOffset and yChromaOffset were
VK_CHROMA_LOCATION_MIDPOINT.

Tests affected:
dEQP-VK.ycbcr.conversion.*

Components: Vulkan

VK-GL-CTS issue: 979

Change-Id: I10e83d2f5845c3e74673aa9e42fc4f0950f9e6cd

6 years agoDon't try to pass metadata attribs to eglCreate*Surface
Chris Forbes [Sat, 3 Feb 2018 01:14:59 +0000 (17:14 -0800)]
Don't try to pass metadata attribs to eglCreate*Surface

These attribs are only valid for eglSurfaceAttrib / eglQueryAttrib.

Bug: b/72870242
Change-Id: I6aad5c19e24f775e0b8be6374716cb4ceef01491

6 years agoMerge "Fixes pixelformat utils for RGB10_A2"
Matthew Netsch [Fri, 2 Feb 2018 20:48:27 +0000 (20:48 +0000)]
Merge "Fixes pixelformat utils for RGB10_A2"
am: 3596e98095

Change-Id: Ie1a8eaac1397a9a33c93f690b80ec6eb1973456e

6 years agoMerge "Fixes pixelformat utils for RGB10_A2"
Treehugger Robot [Fri, 2 Feb 2018 20:37:08 +0000 (20:37 +0000)]
Merge "Fixes pixelformat utils for RGB10_A2"

6 years agoMerge "GLES2/3: error on declarations with unspecified precision"
Kai Ninomiya [Fri, 2 Feb 2018 14:39:33 +0000 (14:39 +0000)]
Merge "GLES2/3: error on declarations with unspecified precision"
am: efe17a0a13

Change-Id: Idbcf49616bef87c65a1117db02cac096ae8c35bc

6 years agoMerge "GLES2/3: error on declarations with unspecified precision"
Treehugger Robot [Fri, 2 Feb 2018 04:19:27 +0000 (04:19 +0000)]
Merge "GLES2/3: error on declarations with unspecified precision"

6 years agoMerge "Relax ULP requirement for Log/Log2"
Jeff Leger [Fri, 2 Feb 2018 03:23:28 +0000 (03:23 +0000)]
Merge "Relax ULP requirement for Log/Log2"
am: 88d756104f

Change-Id: I4a31713a692597a74e552cf8a44d78915c353167

6 years agoMerge "Relax ULP requirement for Log/Log2"
Treehugger Robot [Fri, 2 Feb 2018 01:14:33 +0000 (01:14 +0000)]
Merge "Relax ULP requirement for Log/Log2"

6 years agoGLES2/3: error on declarations with unspecified precision
Kai Ninomiya [Wed, 31 Jan 2018 23:42:43 +0000 (15:42 -0800)]
GLES2/3: error on declarations with unspecified precision

As specified:
  The fragment language has no default precision qualifier for floating
  point types. Hence for float, floating point vector and matrix
  variable declarations, either the declaration must include a precision
  qualifier or the default float precision must have been previously
  declared.
[GLSL ES 1.00 r17, section 4.5.3 (p36)]
[GLSL ES 3.00 r6, section 4.5.4 (p56)]
  Similarly, there is no default precision qualifier for the following
  sampler types in either the vertex or fragment language: (...)
[GLSL ES 3.00 r6, section 4.5.4 (p56)]

New tests:
  dEQP-GLES2.functional.shaders.declarations.unspecified_precision.*
  dEQP-GLES3.functional.shaders.declarations.unspecified_precision.*
Components: AOSP

Change-Id: Ic649556c73c83ba5f31125d25baf4c1c44fcf93f

6 years agoRelax ULP requirement for Log/Log2
Jeff Leger [Fri, 12 Jan 2018 20:26:37 +0000 (15:26 -0500)]
Relax ULP requirement for Log/Log2

Relax ULP requirement from 3 to 4 for log/log2.  Implementations
that require 4 ULPs will generate a quality warning.

Affects:
dEQP-GLES3.functional.shaders.builtin_functions.precision.log.highp_vertex.*

Components: Framework, AOSP

Khronos OpenGL/API issue: 57

Change-Id: Ibc910322058ee0d4f0a33e21ba256fffe200b3be

6 years agoAdd new EGL tests for HDR
Courtney Goeltzenleuchter [Wed, 31 Jan 2018 17:05:20 +0000 (17:05 +0000)]
Add new EGL tests for HDR
am: fcfa77ea6a

Change-Id: I998107f8870e9eaac9b3d08817a15cbf8e64146d

6 years agoAdd support for HDR extension and colorspaces
Courtney Goeltzenleuchter [Wed, 31 Jan 2018 17:05:16 +0000 (17:05 +0000)]
Add support for HDR extension and colorspaces
am: d6e50e04c7

Change-Id: I72e959dcb00dba8f2d12f144b8b88c9e379d8209

6 years agoAdd new EGL tests for HDR
Courtney Goeltzenleuchter [Sat, 27 Jan 2018 00:43:28 +0000 (16:43 -0800)]
Add new EGL tests for HDR

Add test that will create a surface with smpte & cta metadata,
verify the metadata with eglQuerySurface, modify the metadata
with eglSurfaceAttrib and verify that data via eglQuerySurface.

Unfortunately, not able to verify actual display behavior.

New Test: dEQP-EGL.functional.hdr_color.8888
Components: AOSP

Change-Id: I88bcd99e1c0ab5ab4236ddbcdd7ec3e7d658d710

6 years agoAdd support for HDR extension and colorspaces
Courtney Goeltzenleuchter [Sat, 27 Jan 2018 00:39:49 +0000 (16:39 -0800)]
Add support for HDR extension and colorspaces

Components: framework

Change-Id: I66ffcdb458fd6ccad768693d96a73c1d31785138

6 years agoGLES3: complex exprs, side effects, short circuits
Kai Ninomiya [Wed, 31 Jan 2018 00:47:30 +0000 (00:47 +0000)]
GLES3: complex exprs, side effects, short circuits
am: 3589064793

Change-Id: I5096bb9096d86eef346107c2a6890d44ad6336b0

6 years agoMerge "Fixes threshold in texture size tests"
Matthew Netsch [Tue, 30 Jan 2018 21:43:30 +0000 (21:43 +0000)]
Merge "Fixes threshold in texture size tests"
am: b12117312e

Change-Id: Ia62de51fb128ce4f0f562370b202965c46ca40e2

6 years agoGLES3: complex exprs, side effects, short circuits
Kai Ninomiya [Sat, 27 Jan 2018 03:25:26 +0000 (19:25 -0800)]
GLES3: complex exprs, side effects, short circuits

Some of these 8 tests (the 4 that rely on short circuiting) fail on
Nexus6P/7.0 (they were fixed in 8.0 and pass on Pixel2016/8.1):
  https://crbug.com/695685
This is a port from WebGL:
  https://github.com/KhronosGroup/WebGL/blob/master/sdk/tests/conformance2/glsl3/array-in-complex-expression.html
  https://github.com/KhronosGroup/WebGL/blob/master/sdk/tests/conformance2/glsl3/short-circuiting-in-loop-condition.html
All of those tests are ported just for completeness.

New tests:
  dEQP-GLES3.functional.shaders.arrays.complex_expression.and_short_circuits_vertex
  dEQP-GLES3.functional.shaders.arrays.complex_expression.and_short_circuits_fragment
  dEQP-GLES3.functional.shaders.arrays.complex_expression.or_short_circuits_vertex
  dEQP-GLES3.functional.shaders.arrays.complex_expression.or_short_circuits_fragment
  dEQP-GLES3.functional.shaders.arrays.complex_expression.ternary_only_evaluates_one_operand_vertex
  dEQP-GLES3.functional.shaders.arrays.complex_expression.ternary_only_evaluates_one_operand_fragment
  dEQP-GLES3.functional.shaders.arrays.complex_expression.sequence_side_effects_affecting_compared_array_content_vertex
  dEQP-GLES3.functional.shaders.arrays.complex_expression.sequence_side_effects_affecting_compared_array_content_fragment
  dEQP-GLES3.functional.shaders.loops.custom.short_circuit_in_while_vertex
  dEQP-GLES3.functional.shaders.loops.custom.short_circuit_in_while_fragment
  dEQP-GLES3.functional.shaders.loops.custom.short_circuit_in_for_vertex
  dEQP-GLES3.functional.shaders.loops.custom.short_circuit_in_for_fragment
  dEQP-GLES3.functional.shaders.loops.custom.short_circuit_in_dowhile_vertex
  dEQP-GLES3.functional.shaders.loops.custom.short_circuit_in_dowhile_fragment
  dEQP-GLES3.functional.shaders.loops.custom.short_circuit_in_while_sequence_vertex
  dEQP-GLES3.functional.shaders.loops.custom.short_circuit_in_while_sequence_fragment
Components: AOSP

Change-Id: Ifa5590f91a8b16e1e2ab5ea8531f0d783c61cda4

6 years agoMerge "Fixes threshold in texture size tests"
Treehugger Robot [Tue, 30 Jan 2018 20:22:15 +0000 (20:22 +0000)]
Merge "Fixes threshold in texture size tests"

6 years agoMerge "GLES3: shaders.indexing.moredynamic"
Kai Ninomiya [Tue, 30 Jan 2018 03:27:00 +0000 (03:27 +0000)]
Merge "GLES3: shaders.indexing.moredynamic"
am: ce989f2957

Change-Id: I21d07a9ba6e0368270cde9de9e4a3ff381616977

6 years agoMerge "GLES3: shaders.indexing.moredynamic"
Treehugger Robot [Tue, 30 Jan 2018 03:04:39 +0000 (03:04 +0000)]
Merge "GLES3: shaders.indexing.moredynamic"

6 years agoGLES2: fix typo in es2fShaderStructTests
Kai Ninomiya [Mon, 29 Jan 2018 23:54:15 +0000 (23:54 +0000)]
GLES2: fix typo in es2fShaderStructTests
am: 3c6c878240

Change-Id: I8397ae5cb2bd60f08b7b69ce1f8cf01b90d1e26c

6 years agoGLES2: fix typo in es2fShaderStructTests
Kai Ninomiya [Mon, 29 Jan 2018 18:55:22 +0000 (10:55 -0800)]
GLES2: fix typo in es2fShaderStructTests

I happened to notice this typo while editing the file. It could cause
some tests to be skipped when they should not be: it skips a case if
(1) the device has no vertex texture image units and
(2) the case uses any flags at all and
(3) the case is a vertex case.

There could be conformance impact from this change.

Affects:
  dEQP-GLES2.functional.shaders.struct.uniform.array_member_dynamic_index_vertex
  dEQP-GLES2.functional.shaders.struct.uniform.struct_array_dynamic_index_vertex
  dEQP-GLES2.functional.shaders.struct.uniform.nested_struct_array_dynamic_index_vertex
  dEQP-GLES2.functional.shaders.struct.uniform.dynamic_loop_struct_array_vertex
  dEQP-GLES2.functional.shaders.struct.uniform.dynamic_loop_nested_struct_array_vertex
Components: AOSP

Change-Id: I5110d6c240938bc58664e7dd5ee2b43e26ceea6e

6 years agoFixes threshold in texture size tests
Matthew Netsch [Tue, 19 Dec 2017 20:45:33 +0000 (12:45 -0800)]
Fixes threshold in texture size tests

Threshold was computed directly from backbuffer format.
This makes the threshold too strict if the texture
sampled from has a lower bit-depth than the backbuffer.

This change takes the minimium bit depth between the
backbuffer and texture to compute the threshold.

Components: OpenGL ES
VK-GL-CTS issue: 163

Affects:
dEQP-GLES2.functional.texture.size.*
dEQP-GLES3.functional.texture.size.*

Change-Id: Id491ff4ef1b958459156fe83d9d5099cf81de81e

6 years agoGLES2: uniform struct{sampler} as a function arg
Kai Ninomiya [Mon, 29 Jan 2018 20:43:59 +0000 (20:43 +0000)]
GLES2: uniform struct{sampler} as a function arg
am: ad69c848f7

Change-Id: I0e3a13ffb51707733912a12b93314ec5a00a49e8

6 years agoGLES2: uniform struct{sampler} as a function arg
Kai Ninomiya [Sat, 27 Jan 2018 02:38:36 +0000 (18:38 -0800)]
GLES2: uniform struct{sampler} as a function arg

(Some of?) these tests failed on Pixel2016/7.0 (they were
fixed in 8.0 and pass on Pixel2016/8.1):
  https://crbug.com/695680
This is a port from WebGL:
  https://github.com/KhronosGroup/WebGL/blob/master/sdk/tests/conformance/glsl/bugs/sampler-struct-function-arg.html

New tests:
  dEQP-GLES2.functional.shaders.struct.uniform.sampler_in_function_arg_vertex
  dEQP-GLES2.functional.shaders.struct.uniform.sampler_in_function_arg_fragment
  dEQP-GLES2.functional.shaders.struct.uniform.sampler_in_array_function_arg_vertex
  dEQP-GLES2.functional.shaders.struct.uniform.sampler_in_array_function_arg_fragment
Components: AOSP

Change-Id: Ic71a7969c9bcf481c12b95a99e6379cfec659a8e

6 years agoGLES3: shaders.indexing.moredynamic
Kai Ninomiya [Sat, 27 Jan 2018 21:06:00 +0000 (13:06 -0800)]
GLES3: shaders.indexing.moredynamic

Many of these tests failed on Pixel2016/7.0 and Nexus6P/7.0. (They were
fixed in Pixel2016/8.0.):
  https://crbug.com/695689
This is a port from WebGL:
  https://github.com/KhronosGroup/WebGL/blob/master/sdk/tests/conformance2/glsl3/vector-dynamic-indexing.html

New tests: dEQP-GLES3.functional.shaders.indexing.moredynamic.*
Components: AOSP
Change-Id: I0b3d738e374c68eebb5cfca1cf9ce5d1c265237b