platform/upstream/VK-GL-CTS.git
7 years agoMerge "Allow in/out qualifiers in GLSL 440/450" into deqp-dev
Mika Isojarvi [Mon, 17 Jul 2017 19:51:06 +0000 (19:51 +0000)]
Merge "Allow in/out qualifiers in GLSL 440/450" into deqp-dev

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

Change-Id: I605ac0bf0a499ad175e7d667843734eea16141c2

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

7 years agoresolve merge conflicts of 7782ec5b to deqp-dev
Mika Isojärvi [Fri, 14 Jul 2017 19:46:08 +0000 (12:46 -0700)]
resolve merge conflicts of 7782ec5b to deqp-dev

Test: Build the apk and ran scripts/check_build_sanity.p.
Change-Id: I0ac3ec6a73a4751bd5b075aaf59bb24c48f14f5c

7 years agoMerge "resolve merge conflicts of ae3759c7 to deqp-dev" into deqp-dev
Treehugger Robot [Fri, 14 Jul 2017 18:39:46 +0000 (18:39 +0000)]
Merge "resolve merge conflicts of ae3759c7 to deqp-dev" into deqp-dev

7 years agoresolve merge conflicts of ae3759c7 to deqp-dev
Mika Isojärvi [Fri, 14 Jul 2017 18:34:35 +0000 (11:34 -0700)]
resolve merge conflicts of ae3759c7 to deqp-dev

Test: Build deqp apk and ran scripts/check_build_sanity.py
Change-Id: I2aad44982a04d1066c7a7f37fac139b735c5211b

7 years agoMerge "Compilation fixes for QNX platform" into deqp-dev
Treehugger Robot [Fri, 14 Jul 2017 18:18:52 +0000 (18:18 +0000)]
Merge "Compilation fixes for QNX platform" into deqp-dev

7 years agoCompilation fixes for QNX platform
Abhinav Shukla [Fri, 7 Jul 2017 11:31:22 +0000 (17:01 +0530)]
Compilation fixes for QNX platform

Modifies some CMakeLists.txt to add QNX specific checks
using the 'DE_OS_QNX' or 'DE_OS_IS_QNX' compilation flags.

Doesn't change functionality for any other platform.

VK-GL-CTS issue: 537

Components: Framework

Change-Id: I34d4091f2b0f064f22abc4996abb4bed94e4a83f

7 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

7 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

7 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

7 years agoMerge "Fix ShaderExecutor usage for core OpenGL" into deqp-dev
Treehugger Robot [Thu, 13 Jul 2017 19:34:56 +0000 (19:34 +0000)]
Merge "Fix ShaderExecutor usage for core OpenGL" into deqp-dev

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

Change-Id: I84abe9d601d4067b3bc6d3cf3480c11b86471f86

7 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

7 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

7 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

7 years agoAdd missing files to Android.mk
Mika Isojrvi [Wed, 12 Jul 2017 20:02:22 +0000 (20:02 +0000)]
Add missing files to Android.mk
am: 58f3ba4184  -s ours

Change-Id: Ic30ccfcb844d0d8e61abf5b9384d8895bce4d831

7 years agoAdd RENDERBUFFER_VALID bit to R8, RG8 definition
Alexander Galazin [Wed, 12 Jul 2017 20:02:19 +0000 (20:02 +0000)]
Add RENDERBUFFER_VALID bit to R8, RG8 definition
am: 1d7c8df82e

Change-Id: I94f23b583d76a015c1c56376bb1f72dc606f8419

7 years agoCheck that threads started in multithreading tests
Mark Adams [Wed, 12 Jul 2017 20:02:15 +0000 (20:02 +0000)]
Check that threads started in multithreading tests
am: 9937c63c41

Change-Id: If1b3f506a83d4edd3c438f8395e63182b3058b41

7 years agoReduce scope of mustpass exclusions due to 22760309
Pyry Haulos [Wed, 12 Jul 2017 20:02:12 +0000 (20:02 +0000)]
Reduce scope of mustpass exclusions due to 22760309
am: 5d86672aa0

Change-Id: Ifc1529bd4403d2e997474c8d7f6a5459712bb684

7 years agoAdd new large constant array indexing tests
John Richardson [Wed, 12 Jul 2017 20:02:07 +0000 (20:02 +0000)]
Add new large constant array indexing tests
am: fc35227a44  -s ours

Change-Id: I2cbc0e2b934e120c64544a42d59ef5dc1a5b64bc

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

Change-Id: I189e5fdf08cbdb81c66aa091778eaab9b010a6cc

7 years agoApply sRGB conversion to reference in sRGB framebuffer fetch test
james.glanville [Wed, 12 Jul 2017 20:02:00 +0000 (20:02 +0000)]
Apply sRGB conversion to reference in sRGB framebuffer fetch test
am: c76765be1f

Change-Id: Id5d54413683ae39e6a48ef17f6e406b4dcb1818d

7 years agoFix for integer formats in framebuffer extension tests
John Richardson [Wed, 12 Jul 2017 20:01:55 +0000 (20:01 +0000)]
Fix for integer formats in framebuffer extension tests
am: 3bb47b5c57  -s ours

Change-Id: Ia085cbf839e30caec207880994b988de08141ade

7 years agoAdd new framebuffer fetch extension tests
John Richardson [Wed, 12 Jul 2017 20:01:52 +0000 (20:01 +0000)]
Add new framebuffer fetch extension tests
am: 2a609fb223  -s ours

Change-Id: Ib770a9b16e12b79b745931ec132514dc99900b86

7 years agoCode clean up in swizzle math operations script
John Richardson [Wed, 12 Jul 2017 20:01:49 +0000 (20:01 +0000)]
Code clean up in swizzle math operations script
am: fc24d7d28c

Change-Id: I1b2ce0201d639c2c956856734eda7a3801590cd3

7 years agoAdd new swizzle math operation tests
John Richardson [Wed, 12 Jul 2017 20:01:44 +0000 (20:01 +0000)]
Add new swizzle math operation tests
am: 821035bbc9  -s ours

Change-Id: Ide35e7484eab18a038d61c104e49e9ed2516d94e

7 years agoFix compute.exceed_atomic_counters_limit
Pyry Haulos [Wed, 12 Jul 2017 20:01:41 +0000 (20:01 +0000)]
Fix compute.exceed_atomic_counters_limit
am: 5b837a5b21

Change-Id: I33d9033711ddb32961e4f23d437ffc4681077cf3

7 years agoEnsure vertex shader presence if a geometry shader exists
Alexander Galazin [Wed, 12 Jul 2017 20:01:38 +0000 (20:01 +0000)]
Ensure vertex shader presence if a geometry shader exists
am: 5dd0c1077c

Change-Id: I28aa78b0e4eb591769379df93dc6aef6ab3be4c5

7 years agoAdd negative OES_sample_variables tests
Michael Hadley [Wed, 12 Jul 2017 20:01:36 +0000 (20:01 +0000)]
Add negative OES_sample_variables tests
am: d30cb29294  -s ours

Change-Id: Ifaacb62cd978fc75ebdb7aed462b035565b9a71b

7 years agoAdd new compute negative coverage tests
John Richardson [Wed, 12 Jul 2017 20:01:34 +0000 (20:01 +0000)]
Add new compute negative coverage tests
am: db4a886f3f  -s ours

Change-Id: Ide57d07d9bba37691bbf0f172640cf3a6586bb59

7 years agoAdd new EGL enum negative case to robustness tests
John Richardson [Wed, 12 Jul 2017 20:01:32 +0000 (20:01 +0000)]
Add new EGL enum negative case to robustness tests
am: c77b3cf9f3

Change-Id: I0cb1cdd6af70d74902fd236eed9a3ac088386776

7 years agoAdd negative sRGB texture/sampler API tests
Michael Hadley [Wed, 12 Jul 2017 20:01:30 +0000 (20:01 +0000)]
Add negative sRGB texture/sampler API tests
am: a237c0c9ac

Change-Id: I11c4e6e6a0bec4fa076daac297d99f8f03afbb7b

7 years agoFix DrawRangeElementsBaseVertex tests with negative basevertex
Alexander Galazin [Wed, 12 Jul 2017 20:01:28 +0000 (20:01 +0000)]
Fix DrawRangeElementsBaseVertex tests with negative basevertex
am: bf0b29365e

Change-Id: I85921f82f3f55187f8793d6144c15ff78d4e7a30

7 years agoAdd new draw elements base vertex tests
John Richardson [Wed, 12 Jul 2017 20:01:26 +0000 (20:01 +0000)]
Add new draw elements base vertex tests
am: 3c865084eb  -s ours

Change-Id: If68f8da7f9788c3016bc01620e03316a94a03303

7 years agoFix typo in framebuffer_srgb_unsupported_enum
Pyry Haulos [Wed, 12 Jul 2017 20:01:25 +0000 (20:01 +0000)]
Fix typo in framebuffer_srgb_unsupported_enum
am: b46d559e07

Change-Id: I72cd36eb013532467a54d08ce61ace5c55a27774

7 years agoAdd sRGB write decode negative case
John Richardson [Wed, 12 Jul 2017 20:01:21 +0000 (20:01 +0000)]
Add sRGB write decode negative case
am: 6644e7bfef  -s ours

Change-Id: I3ca1620efe31a4a7fce3267f6c788d1e5f5ea064

7 years agoAdd sRGB write decode tests
Michael Hadley [Wed, 12 Jul 2017 20:01:18 +0000 (20:01 +0000)]
Add sRGB write decode tests
am: 50d8f31f52  -s ours

Change-Id: Ia9a7bc1a1a23792a3a6d7a22588e74559a5f2b98

7 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

7 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

7 years agoCheck that threads started in multithreading tests
Mark Adams [Mon, 19 Jun 2017 15:19:16 +0000 (11:19 -0400)]
Check that threads started in multithreading tests

The EGL GLES2 multithreading sharing tests could interpret a thread
that hadn't started yet as a finished thread.

Commit fd41d5d addressed the same issue but only changed one of the
two test iteration functions.

Author: Onni Kosomaa <okosomaa@nvidia.com>

Change-Id: Ie35390a8d57d9a0e8a679250a63ebb68e100de47

7 years agoReduce scope of mustpass exclusions due to 22760309
Pyry Haulos [Fri, 12 May 2017 18:26:59 +0000 (11:26 -0700)]
Reduce scope of mustpass exclusions due to 22760309

Bug: 22760309

Change-Id: I65b3e8ac836c87d038ee0f2a1aa033242ae19a1a

7 years agoAdd new large constant array indexing tests
John Richardson [Tue, 28 Mar 2017 15:54:13 +0000 (16:54 +0100)]
Add new large constant array indexing tests

New shader library tests for indexing into large constant arrays with
varied sizes and data types (float, vec4).

New tests:
- dEQP-GLES3.functional.shaders.large_constant_arrays.indexing.*

Change-Id: I2d41cc35930969078737b3490c5a2377e7c65446

7 years agoReset GL_FRAMEBUFFER_SRGB state for ES tests
james.glanville [Wed, 17 May 2017 12:45:37 +0000 (13:45 +0100)]
Reset GL_FRAMEBUFFER_SRGB state for ES tests

GL_EXT_sRGB_write_control adds new state "GL_FRAMEBUFFER_SRGB" which
is enabled by default. This was not reset between tests, meaning state
could leak between tests.

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

Components: AOSP

7 years agoApply sRGB conversion to reference in sRGB framebuffer fetch test
james.glanville [Thu, 18 May 2017 10:24:06 +0000 (11:24 +0100)]
Apply sRGB conversion to reference in sRGB framebuffer fetch test

Framebuffer fetch returns linear values when the framebuffer format
is sRGB and GL_FRAMEBUFFER_SRGB is enabled (default). This conversion
was not applied when generating reference textures for framebuffer
fetch tests. glReadPixels() does not apply any conversion, so the
final reference value must also be converted back to sRGB.

Affects: dEQP-GLES31.functional.shaders.framebuffer_fetch.
framebuffer_format.srgb8_alpha8

Components: AOSP

7 years agoFix for integer formats in framebuffer extension tests
John Richardson [Thu, 30 Mar 2017 09:53:48 +0000 (10:53 +0100)]
Fix for integer formats in framebuffer extension tests

Use UVec4 and IVec4 types when calculating composite color for
unsigned and signed integer formats respectively.

Affected tests:
- dEQP-GLES31.functional.shaders.framebuffer_fetch.framebuffer_format.*

Change-Id: I01cea4a6d99df51939740712b952b5e9191ed1f2

7 years agoAdd new framebuffer fetch extension tests
John Richardson [Mon, 20 Mar 2017 17:29:54 +0000 (17:29 +0000)]
Add new framebuffer fetch extension tests

New tests for EXT_shader_framebuffer_buffer_fetch extension. Test cases
for accessing existing framebuffer data as input in the fragment shader.
Includes negative tests cases for invalid shader usage.

New tests:
- dEQP-GLES31.functional.shaders.framebuffer_fetch.basic.*
- dEQP-GLES31.functional.shaders.framebuffer_fetch.framebuffer_format.*
- dEQP-GLES31.functional.debug.negative_coverage.*.framebuffer_fetch.*

Change-Id: I8f8aa2312e26c2c709d3e2e2733c497e24669da8

7 years agoCode clean up in swizzle math operations script
John Richardson [Wed, 29 Mar 2017 08:49:52 +0000 (09:49 +0100)]
Code clean up in swizzle math operations script

Remove redundant arguments in SwizzleCase constructor in gen swizzle
math operations script.

Change-Id: Ib1786db43682a6aa30b5d64ba770ad565ca23ea5

7 years agoAdd new swizzle math operation tests
John Richardson [Thu, 23 Mar 2017 09:54:09 +0000 (09:54 +0000)]
Add new swizzle math operation tests

New tests for combined swizzle and math operations using various vector
types. Includes addition, subtraction, multiplication, and division
operations with repeated and non-repeated swizzles.

New tests:
- dEQP-GLES3.functional.shaders.swizzle_math_operations.vector_add.*
- dEQP-GLES3.functional.shaders.swizzle_math_operations.vector_subtract.*
- dEQP-GLES3.functional.shaders.swizzle_math_operations.vector_multiply.*
- dEQP-GLES3.functional.shaders.swizzle_math_operations.vector_divide.*

Change-Id: I4541a88057f70dd41f4f27b81313748094e76037

7 years agoFix compute.exceed_atomic_counters_limit
Pyry Haulos [Mon, 3 Apr 2017 15:37:57 +0000 (08:37 -0700)]
Fix compute.exceed_atomic_counters_limit

Tests were using large offset instead of large binding value when
attempting to exceed atomic counter limit.

Affects:

dEQP-GLES31.functional.debug.negative_coverage.*.compute.exceed_atomic_counters_limit

Change-Id: I9c89b64de4983ec383a9c76cc44f3ac9f2e782f4

7 years agoEnsure vertex shader presence if a geometry shader exists
Alexander Galazin [Mon, 8 May 2017 12:59:38 +0000 (14:59 +0200)]
Ensure vertex shader presence if a geometry shader exists

Certain tests verify that INVALID_OPERATION is generated
if a geometry shader is active and mode is incompatible with
the input primitive type of the geometry shader in the currently
installed program object. However these tests have no vertex shader and
this is the real reason why INVALID_OPERATION is generated.
This change ensures that the vertex shader is present.

Components: AOSP

Affects:
dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_base_vertex_primitive_mode_mismatch
dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_instanced_base_vertex_primitive_mode_mismatch
dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_range_elements_base_vertex_primitive_mode_mismatch

Change-Id: I36bcee8892e4f641feadb0b444a53ed35273b727

7 years agoAdd negative OES_sample_variables tests
Michael Hadley [Tue, 14 Mar 2017 15:42:34 +0000 (15:42 +0000)]
Add negative OES_sample_variables tests

New Tests:
- dEQP-GLES31.functional.debug.negative_coverage.callbacks.oes_sample_variables.*
- dEQP-GLES31.functional.debug.negative_coverage.log.oes_sample_variables.*
- dEQP-GLES31.functional.debug.negative_coverage.get_error.oes_sample_variables.*

Change-Id: I83bf9b48ca0ac7133419099b1a54ebc4d1cacf20

7 years agoAdd new compute negative coverage tests
John Richardson [Mon, 6 Feb 2017 11:28:21 +0000 (11:28 +0000)]
Add new compute negative coverage tests

Test groups added to:
- dEQP-GLES31.functional.debug.negative_coverage.*.compute (new)

New tests:
- program_not_active

- invalid_program_query
- invalid_dispatch_compute_indirect
- invalid_maximum_work_group_counts
- invalid_maximum_work_group_sizes
- invalid_layout_qualifiers
- invalid_write_built_in_constants

- exceed_uniform_block_limit
- exceed_shader_storage_block_limit
- exceed_texture_image_units_limit
- exceed_image_uniforms_limit
- exceed_shared_memory_size_limit
- exceed_uniform_components_limit
- exceed_atomic_counter_buffer_limit
- exceed_atomic_counters_limit

Change-Id: Ifd798652df3b138e174c1d9408b6ecdb003ce7f9

7 years agoAdd new EGL enum negative case to robustness tests
John Richardson [Wed, 29 Mar 2017 13:19:56 +0000 (14:19 +0100)]
Add new EGL enum negative case to robustness tests

New test case for verifying EGL versions < 1.5 do not accept
EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY enum in their attribute
list when creating an EGL context.

Test group:
- dEQP-EGL.functional.robustness.negative_context

New tests:
- invalid_notification_strategy_enum

Change-Id: I6027e880a2e3a97dfaa218c7b094ea727afcc996

7 years agoAdd negative sRGB texture/sampler API tests
Michael Hadley [Wed, 7 Dec 2016 16:11:05 +0000 (16:11 +0000)]
Add negative sRGB texture/sampler API tests

Added sRGB tests to the following:
- dEQP-GLES31.functional.debug.negative_coverage.callbacks.texture.*
- dEQP-GLES31.functional.debug.negative_coverage.callbacks.shader.*

Change-Id: I1ebd5a95c8605a39e4bbb5b4516d0f7b8c11898e

7 years agoFix DrawRangeElementsBaseVertex tests with negative basevertex
Alexander Galazin [Tue, 9 May 2017 08:44:12 +0000 (10:44 +0200)]
Fix DrawRangeElementsBaseVertex tests with negative basevertex

DrawRangeElementsBaseVertex tests with negative basevertex call
glDrawRangeElementsBaseVertex with start = 0 and basevertex = -1.
According to the spec: If no element array buffer is bound, the vertex ID of
the ith element transferred is indices[i] + basevertex...
If the vertex ID is larger than the maximum value representable by type,
it should behave as if the calculation were upconverted to 32-bit unsigned
integers (with wrapping on overflow conditions).
Behavior of DrawElementsOneInstance is undefined if the vertex ID is negative
for any element, and should be handled as described in section 6.4.

This change ensures that indexMin + baseVertex will be zero or positive value.

Components: AOSP

Affects:
dEQP-GLES31.functional.draw_base_vertex.draw_range_elements_base_vertex.base_vertex.index_neg_byte
dEQP-GLES31.functional.draw_base_vertex.draw_range_elements_base_vertex.base_vertex.index_neg_short
dEQP-GLES31.functional.draw_base_vertex.draw_range_elements_base_vertex.base_vertex.index_neg_int

Change-Id: I07a9e6bc60d4340784d400b5087bb8fff01f0e57

7 years agoAdd new draw elements base vertex tests
John Richardson [Tue, 14 Feb 2017 09:27:14 +0000 (09:27 +0000)]
Add new draw elements base vertex tests

New tests for EXT_draw_elements_base_vertex extension
exercising the following draw calls

- DrawElementsBaseVertex()
- DrawRangeElementsBaseVertex()
- DrawElementsInstancedBaserVertex()

New test groups:
- dEQP-GLES31.functional.draw_elements_base_vertex.*

New tests:
- indices.*
- base_vertex.*
- builtin_variable.*
- points.*
- triangles.*
- triangle_fan.*
- triangle_strip.*
- lines.*
- line_strip.*
- line_loop.*

Extend dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.*
tests to include additional mapping and mismatched primitive mode
errors for base vertex draw calls.

New tests:
- *.primitive_mode_mismatch
- *.invalid_map

Change-Id: Iefc9bcddd3fe8831d2bb20f2e46d06f92daa6d6b

7 years agoFix typo in framebuffer_srgb_unsupported_enum
Pyry Haulos [Mon, 3 Apr 2017 15:32:07 +0000 (08:32 -0700)]
Fix typo in framebuffer_srgb_unsupported_enum

Test case was not assigning gl.getError() return value into a variable
causing tests to always fail on implementations that don't support ES3.2
or GL_EXT_sRGB_write_control.

Affects:

dEQP-GLES31.functional.fbo.srgb_write_control.framebuffer_srgb_unsupported_enum

Change-Id: Iafc38b8152f3371ce8c016c4f70feb2bb4604c69

7 years agoAdd sRGB write decode negative case
John Richardson [Thu, 30 Mar 2017 14:11:43 +0000 (15:11 +0100)]
Add sRGB write decode negative case

Test to check drivers that don't expose EXT_sRGB_write control return
GL_INVALID_ENUM for related gl calls.

New Tests:
- dEQP-GLES31.functional.fbo.srgb_write_control.framebuffer_srgb_unsupported_enum

Change-Id: I605f70894ead6e5dd317a340d061dcec9a6180c8

7 years agoAdd sRGB write decode tests
Michael Hadley [Wed, 8 Mar 2017 13:28:09 +0000 (13:28 +0000)]
Add sRGB write decode tests

New Tests:
- dEQP-GLES31.functional.fbo.srgb_write_control.*

Change-Id: Ieaaee4c7dc49cc530d8fc42a060e40c706d86e5c

7 years agoFix ShaderExecutor usage for core OpenGL
Piotr Byszewski [Thu, 6 Jul 2017 10:41:37 +0000 (12:41 +0200)]
Fix ShaderExecutor usage for core OpenGL

Tessellation shader tests were failing on GL43 due to
INVALID_OPERATION error generated by glDrawArrays().
The error was generated due to lack of a vertex array being bound.

Components: AOSP

Change-Id: I56f7430f93ee3ae861b0168e852a948fbb0f9bed

7 years agoAllow in/out qualifiers in GLSL 440/450
Piotr Byszewski [Tue, 4 Jul 2017 12:30:30 +0000 (14:30 +0200)]
Allow in/out qualifiers in GLSL 440/450

The framework allows to use in/out qualifiers in GLSL up to version 430.
This seems like an oversight. This change extends the allowed range to
include versions 440 and 450.

Components: Framework

Change-Id: I575f867b53c67e50b7591df11913d19bf1845a59

7 years agox11_egl: use quotes to include glesv1_cm directories
Juan A. Suarez Romero [Fri, 30 Jun 2017 22:50:09 +0000 (22:50 +0000)]
x11_egl: use quotes to include glesv1_cm directories
am: f5e7ab6b79

Change-Id: I839b0667bf29e5695205ff00c3b591dba5df8450

7 years agox11_egl: use quotes to include glesv1_cm directories
Juan A. Suarez Romero [Fri, 30 Jun 2017 12:22:35 +0000 (14:22 +0200)]
x11_egl: use quotes to include glesv1_cm directories

Modifying the CMAKE_EXE_LINKER_FLAGS requires to set the new options
between quotes.

Otherwise, cmake will join the elements with semicolons, generating
incorrect linker flags.

Test: cmake . -DDEQP_TARGET=x11_egl && make
Change-Id: I4d95dc37b6d91ab787b9c2e5568cbe2f08dd472b
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
7 years agoMask compared bits in atomic operation tests.
Mika Isojärvi [Tue, 5 Apr 2016 17:42:09 +0000 (10:42 -0700)]
Mask compared bits in atomic operation tests.

Bug: 27975797
Change-Id: Id24a784b5b8a665f509218358d58d7eca9a7bb93

7 years agoMerge "Remove EGL gles1.rgb565_window from mustpass"
Pyry Haulos [Wed, 14 Jun 2017 01:53:10 +0000 (01:53 +0000)]
Merge "Remove EGL gles1.rgb565_window from mustpass"
am: 7bff163e7f

Change-Id: I642a906fce854d128ddbf13ca997df01fbece237

7 years agoMerge "Remove EGL gles1.rgb565_window from mustpass"
Treehugger Robot [Wed, 14 Jun 2017 01:43:04 +0000 (01:43 +0000)]
Merge "Remove EGL gles1.rgb565_window from mustpass"

7 years agoTouch watchdog before freeing objs in max_concurrent
Pyry Haulos [Wed, 14 Jun 2017 01:22:40 +0000 (01:22 +0000)]
Touch watchdog before freeing objs in max_concurrent
am: 815781b777

Change-Id: Ibe8bbcbbfddca74524f9422b60e14bd7db124f47

7 years agoRemove EGL gles1.rgb565_window from mustpass
Pyry Haulos [Tue, 13 Jun 2017 21:08:33 +0000 (14:08 -0700)]
Remove EGL gles1.rgb565_window from mustpass

Bug: 30041221
Change-Id: Idc8e3d1d78c568fa8d4209c61eaec52ca5696356
(cherry picked from commit 22eb25c58f0a1aa1de401a38778471c8b6700ffd)

7 years agoTouch watchdog before freeing objs in max_concurrent
Pyry Haulos [Wed, 7 Jun 2017 22:58:05 +0000 (15:58 -0700)]
Touch watchdog before freeing objs in max_concurrent

Affects:
dEQP-VK.api.object_management.max_concurrent.*

Components: Vulkan
Google bug: 37515046

Change-Id: I57eb68764a55b5dceeb3e2676b8b1b298c0ff67e
(cherry picked from commit 252fb76fec02af6e2281da3bc9eea4e0d7972f12)

7 years agoApply sRGB conversion to reference in sRGB framebuffer fetch test
james.glanville [Thu, 18 May 2017 10:24:06 +0000 (11:24 +0100)]
Apply sRGB conversion to reference in sRGB framebuffer fetch test

Framebuffer fetch returns linear values when the framebuffer format
is sRGB and GL_FRAMEBUFFER_SRGB is enabled (default). This conversion
was not applied when generating reference textures for framebuffer
fetch tests. glReadPixels() does not apply any conversion, so the
final reference value must also be converted back to sRGB.

Affects: dEQP-GLES31.functional.shaders.framebuffer_fetch.
framebuffer_format.srgb8_alpha8

Components: AOSP

7 years agoMerge "Re-remove tessellation explicit_output_array_size_1 from must-pass list" into...
Pyry Haulos [Mon, 12 Jun 2017 17:06:12 +0000 (17:06 +0000)]
Merge "Re-remove tessellation explicit_output_array_size_1 from must-pass list" into deqp-dev

7 years agoSkip OOB SSBO fragment tests for ES3.1 GPUs
Alexander Galazin [Fri, 9 Jun 2017 23:36:06 +0000 (23:36 +0000)]
Skip OOB SSBO fragment tests for ES3.1 GPUs
am: f5fc3c8409

Change-Id: I611887e4299f25c04add54c3a6b5554c1841f20b

7 years agoSkip OOB SSBO fragment tests for ES3.1 GPUs
Alexander Galazin [Fri, 9 Jun 2017 14:26:32 +0000 (16:26 +0200)]
Skip OOB SSBO fragment tests for ES3.1 GPUs

GPUs supporting GLES 3.1 may expose 0 SSBOs in fragment shaders.
This change extends fix made in cf65c56f.

Google bug: 36891454

Components: AOSP

Affects:
dEQP-EGL.functional.robustness.reset_context.shaders.out_of_bounds*.shader_storage_block.fragment

Change-Id: I1d821198d3dba3d3ad1e6b25758d0d434bf08a30

7 years agoMerge "Add support for metamorphic testing" into deqp-dev
Treehugger Robot [Fri, 9 Jun 2017 21:29:04 +0000 (21:29 +0000)]
Merge "Add support for metamorphic testing" into deqp-dev

7 years agoRe-remove tessellation explicit_output_array_size_1 from must-pass list
Mark Adams [Fri, 9 Jun 2017 17:52:18 +0000 (13:52 -0400)]
Re-remove tessellation explicit_output_array_size_1 from must-pass list

Affected test:
dEQP-GLES31.functional.tessellation.user_defined_io.negative.es32.per_vertex_incorrect_control_explicit_output_array_size_1

7 years agoIgnore A channel in EGL RGB5_A1 clear color tests
Alexander Galazin [Tue, 6 Jun 2017 21:07:54 +0000 (21:07 +0000)]
Ignore A channel in EGL RGB5_A1 clear color tests
am: 9da1b45a8e

Change-Id: I72c8355a27472f559467127051f3108eba9ee581

7 years agoIgnore A channel in EGL RGB5_A1 clear color tests
Alexander Galazin [Tue, 6 Jun 2017 11:22:58 +0000 (13:22 +0200)]
Ignore A channel in EGL RGB5_A1 clear color tests

Dithering can siginifcantly impact alpha channel and the framework
can't fully account it.

Components: AOSP
Affects:
dEQP-EGL.functional.color_clears.*.rgba5551*

Bug: 62383988

Change-Id: Ic8fa4da1a840da56f74af3e076d0728d9abbdadc

7 years agoAdd OWNERS in external/deqp
Chih-Hung Hsieh [Tue, 6 Jun 2017 02:29:36 +0000 (02:29 +0000)]
Add OWNERS in external/deqp
am: ea5d0ac339

Change-Id: I22107e5022e4536ba8b5ecc0bb0d7b8d225ef428

7 years agoAdd OWNERS in external/deqp
Chih-Hung Hsieh [Mon, 5 Jun 2017 17:48:12 +0000 (10:48 -0700)]
Add OWNERS in external/deqp

* Owners are selected from top CL approvals or owners.
  They will be suggested to review/approve future CLs.
* OWNERS files are recognized by the new find-owners plugin, see .md files in
  https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/resources/Documentation/

Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: I0d256181d2ca0c0ec55cf5479ff34aa68f3190a9

7 years agoMerge aosp/upstream-vulkan-cts-1.0-dev into aosp/deqp-dev
Pyry Haulos [Mon, 5 Jun 2017 17:39:43 +0000 (10:39 -0700)]
Merge aosp/upstream-vulkan-cts-1.0-dev into aosp/deqp-dev

Change-Id: Id9c893e5db0817a29f768cca931adc260d350497

7 years agoMerge vk-gl-cts/aosp-deqp-dev into vk-gl-cts/master
Pyry Haulos [Mon, 5 Jun 2017 17:37:17 +0000 (10:37 -0700)]
Merge vk-gl-cts/aosp-deqp-dev into vk-gl-cts/master

Change-Id: Ib189ff26f3bb7e049f5e0c4345e523cc39e91d4f

7 years agoBuild fix for x11_egl target builds
Andres Gomez [Sat, 3 Jun 2017 00:30:32 +0000 (02:30 +0200)]
Build fix for x11_egl target builds

The combination of recent refactor on release branch and merge to
master resulted in a compilation error for the XInitThreads symbol
when using the x11_egl built target.

Components: Framework

VK-GL-CTS Issue: 467

Change-Id: Iba0803e8b73462bd66ab7803a6c90bfd40d9164c

7 years agoAdd ES 3.2.4.x mustpass
Alexander Galazin [Mon, 15 May 2017 09:50:09 +0000 (11:50 +0200)]
Add ES 3.2.4.x mustpass

Components: OpenGL

Change-Id: Ifd8270acae469d80d9243a58f1e17b57bbecf081

7 years agoRemove GTF tests from GLES mustpass
Alexander Galazin [Fri, 7 Apr 2017 08:01:45 +0000 (10:01 +0200)]
Remove GTF tests from GLES mustpass

These tests are no longer needed as the same coverage is provided
in dEQP, KHR modules.

Components: OpenGL

Affects: GLES master mustpass

VK-GL-CTS issue: 50

Change-Id: Ib52227b76e40888c979eeadc58d0e7ea6500eebc

7 years agoMerge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/master
Pyry Haulos [Tue, 30 May 2017 01:56:36 +0000 (18:56 -0700)]
Merge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/master

Change-Id: I0a9fdded2cbfd25f1e2a1c73da97b2d8b8431962

7 years agoMerge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2
Pyry Haulos [Tue, 30 May 2017 01:56:32 +0000 (18:56 -0700)]
Merge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2

Change-Id: Ib63e665cb64989f8c5f0c53c9d229e5f17172d62

7 years agoAllow pop-free clipping for lines
Boris Zanin [Tue, 16 May 2017 12:32:06 +0000 (14:32 +0200)]
Allow pop-free clipping for lines

Following test checks has been relaxed:
 * dEQP-VK.rasterization.primitives.lines_wide
 * dEQP-VK.rasterization.primitives.line_strip_wide
 * dEQP-VK.rasterization.primitives_multisample_2_bit.lines_wide
 * dEQP-VK.rasterization.primitives_multisample_4_bit.lines_wide
 * dEQP-VK.rasterization.primitives_multisample_8_bit.lines_wide

Components: Vulkan

VK-GL-CTS issue: 421

Change-Id: I21c04015d36ae55c20ef1c1dda8e2d1fee471221

7 years agoCheck 'drawIndirectFirstInstance' feature to run indirect draw tests
Yanjun Zhang [Thu, 11 May 2017 22:51:37 +0000 (15:51 -0700)]
Check 'drawIndirectFirstInstance' feature to run indirect draw tests

Component: Vulkan
VK-GL-CTS issue: 413

Change-Id: I13a86721ec76ac50af55e0730fd50e3d7ce159d8

7 years agodEQP-VK: Fix an incorrect layout transition
Jason Ekstrand [Fri, 19 May 2017 04:36:15 +0000 (21:36 -0700)]
dEQP-VK: Fix an incorrect layout transition

The tests upload data to the resolve destination using CopyImageToBuffer
prior to doing a resolve to a chunk out of the middle of the image. This
lets the test validate the resolve to a subarea works correctly.
However, they were also transitioning the destination from UNDEFINED to
TRANSFER_DST_OPTIMAL between uploading the data and doing the resolve.
This transition destroys the contents of the image making verifying that
contents incorrect.  The correct transition is from TRANSFER_DST_OPTIMAL
to TRANSFER_DST_OPTIMAL.

This affects the following tests:

 - dEQP-VK.api.copy_and_blit.resolve_image.partial*
 - dEQP-VK.api.copy_and_blit.resolve_image.with_regions*

Change-Id: I9336195d7977d7dd2ffb057525134846b10e8010

7 years agoFixed invalid usage of VkBufferImageCopy struct
Oivind Boge [Tue, 16 May 2017 14:04:01 +0000 (16:04 +0200)]
Fixed invalid usage of VkBufferImageCopy struct

The offset member of VkBufferImageCopy was violating the
valid usage. The offset is now calculated using lowest
common denominator between the pixelSize and 4.

Affects:

dEQP-VK.api.image_clearing.*

Components: Vulkan

VK-GL-CTS issue: 422

Change-Id: I1ef07e06f790a9ed403941b1d94c7840485cec3e

7 years agoBuild fix for X11-less Linux builds
Slawomir Cygan [Mon, 29 May 2017 20:01:49 +0000 (22:01 +0200)]
Build fix for X11-less Linux builds

The combination of recent refactor on release branch and
merge to master resulted in XinitThreads being called from
code that may be compiled even if X11 API is not available.

Components: Framework

VK-GL-CTS Issue: 450

Change-Id: Ia7d1d23eabd1b222d5039868c1fb762e1d42f01f

7 years agoUpdate KC CTS ref
Alexander Galazin [Mon, 29 May 2017 08:32:47 +0000 (10:32 +0200)]
Update KC CTS ref

Components: OpenGL

VK-GL-CTS issue: 440

Affects:
GL4*-CTS.gtf42.GL3Tests.texture_storage.texture_storage_texture_levels

Change-Id: Id0b338bb74d3b1923744556527b45f3e8db8db38

7 years agoUse 1.0 for shadow texture expected result
Jeannot Breton [Thu, 25 May 2017 19:10:31 +0000 (14:10 -0500)]
Use 1.0 for shadow texture expected result

Change the texture clamp test to use 1.0 as the expected value
for shadow texture.

It's now required to pass <format> to generateExpectedResult
Note that the path using compute shader is doing an imageLoad on
depth texture so is not using a depth compare

Affects:

KHR-GL45.sparse_texture_clamp_tests.*

Components: OpenGL

VK-GL-CTS issue: 444

Change-Id: I94c79abe1b9b932471d1d8abdb8819ee3d7cc947

7 years agoSkip uncommitted depth/stencil test validation
Jeannot Breton [Thu, 25 May 2017 00:40:47 +0000 (19:40 -0500)]
Skip uncommitted depth/stencil test validation

The test in UncommittedDepthStencil expects the stencil buffer to be
unmodified because the shader is doing an uncommitted sparse fetch

This is incorrect, the depth/stencil should be unmodified only if
the depth/stencil buffer are uncommitted and it's not the case,
they are fully-committed non-sparse depth/stencil buffer

This change skip uncommitted depth/stencil test validation

Affects:

KHR-GL45.sparse_texture2_tests.*

Components: OpenGL

VK-GL-CTS issue: 439

Change-Id: I909937081f7058d0fbc57469626ab3d34d43486a

7 years agoFix sparse cubemap array tests issues
Jeannot Breton [Thu, 25 May 2017 20:48:20 +0000 (15:48 -0500)]
Fix sparse cubemap array tests issues

Add cubeMapArrayRefZDef, a new shader token used as <compare>
parameters on some shadow cube map array texture instructions

Add <CUBE_REFZ_DEF> to some FunctionToken argument list definitions.
It will be replaced by the value of cubeMapArrayRefZDef.

Copy the depth reference value to s.cubeMapArrayRefZDef when we
generate the shader tokens

Change the way cube map array texture coordinate are computed in
the shader to support array with more than 6 layers

Specify that textureGradClampARB on shadow cubemap array is not
supported

Generate cube map array texture coordinate attributes as a vec4
with different coordinate for each layer

Affects:

KHR-GL45.sparse_texture2_tests.*
KHR-GL45.sparse_texture_clamp_tests.*

Components: OpenGL

VK-GL-CTS issue: 445

Change-Id: Ia9fb2240396ab4a34dd697d0b96985da35dfe802

7 years agoSkip height validation on TEXTURE_1D_ARRAY
Jeannot Breton [Wed, 24 May 2017 21:21:13 +0000 (16:21 -0500)]
Skip height validation on TEXTURE_1D_ARRAY

In verifyTexStorageInvalidValueErrors the test validate that a
GL_INVALID_VALUE error is returned by the GL when the height
parameters of the texStorage call is invalid.

The height is ignored by the texStorage call for 1d array, so the
error is never generated.

We should skip this validation for 1d array

Affects:

KHR-GL45.sparse_texture_tests.*

Components: OpenGL

VK-GL-CTS issue: 437

Change-Id: Ibe93db467deb560f5394b4b658dfa3f32a953709

7 years agoFix texPageCommitment alignment test
Jeannot Breton [Thu, 25 May 2017 00:10:18 +0000 (19:10 -0500)]
Fix texPageCommitment alignment test

In verifyInvalidValueErrors, the test wants to validate that
texPageCommitment returns a GL_INVALID_VALUE error when the page
depth offset is not a multiple of pageSizeZ.
However if pageSizeZ equals 1, any z offset will be a multiple of
pageSizeZ and the test should not return an error.

Logic is added to make sure there's really an alignment error

Affects:

KHR-GL45.sparse_texture_tests.*

Components: OpenGL

VK-GL-CTS issue: 438

Change-Id: If7a00dee071c1dafabbda608f7cdbb14d1eb56b3

7 years agotextureClamp texcoord with shadow 1d uses vec3
Jeannot Breton [Thu, 25 May 2017 18:08:39 +0000 (13:08 -0500)]
textureClamp texcoord with shadow 1d uses vec3

This change modifies the current shader generation for textureClamp
subtests.
s.coordType and s.sizeDef will now use vec3 for sampler1DArrayShadow
and sampler1DShadow

Affects:

KHR-GL45.sparse_texture_clamp_tests.*

Components: OpenGL

VK-GL-CTS issue: 443

Change-Id: I025061981877a62b6eed6bcc6c783f6fdc68c7d3

7 years agoInitialize FunctionToken for every iteration
Jeannot Breton [Thu, 25 May 2017 14:34:52 +0000 (09:34 -0500)]
Initialize FunctionToken for every iteration

The change initializes the variable inside the loop so it gets
re-initialized at every iteration.

This help avoid issues where changes accumulates at every iteration

Affects:

KHR-GL45.sparse_texture_clamp_tests.*

Components: OpenGL

VK-GL-CTS issue: 442

Change-Id: I10eac411a03b3eff5139026ac004dc2df0c025f0