platform/upstream/VK-GL-CTS.git
8 years agoam 01516433: am 9252e819: Remove tessellation.user_defined_io.per_patch cases from...
Jarkko Pöyry [Fri, 28 Aug 2015 04:10:53 +0000 (04:10 +0000)]
am 01516433: am 9252e819: Remove tessellation.user_defined_io.per_patch cases from must pass.

* commit '01516433b7f4187ad1097fe0c0a2b710073cb38e':

8 years agoam cee84aa0: am 652dd63a: Merge "Remove invalid atomic image compare swap tests from...
Mika Isojärvi [Fri, 28 Aug 2015 04:10:51 +0000 (04:10 +0000)]
am cee84aa0: am 652dd63a: Merge "Remove invalid atomic image compare swap tests from mustpass." into lmp-sprout-dev

* commit 'cee84aa02825048f6d7019a6a8e24e05c70e6cbd':

8 years agoam b6ea7073: am 84e26791: (-s ours) Merge "DO NOT MERGE: Remove io_blocks.match_diffe...
Jarkko Pöyry [Fri, 28 Aug 2015 04:10:50 +0000 (04:10 +0000)]
am b6ea7073: am 84e26791: (-s ours) Merge "DO NOT MERGE: Remove io_blocks.match_different_member_interpolation test from mustpass." into lmp-sprout-dev

* commit 'b6ea70732180c06048bcc2ad700ddc00023d4bf4':

8 years agoam d9a4fdb9: am a83f8e59: (-s ours) DO NOT MERGE: Apply fix for tessellation fraction...
Jarkko Pöyry [Fri, 28 Aug 2015 04:10:50 +0000 (04:10 +0000)]
am d9a4fdb9: am a83f8e59: (-s ours) DO NOT MERGE: Apply fix for tessellation fractional even test verification.

* commit 'd9a4fdb9f53c54813fc82f06297fb8f662e2dce5':

8 years agoam 46fd09d0: am e5fc2a80: Relax fma() verification in builtin_functions.common.fma
Pyry Haulos [Fri, 28 Aug 2015 04:10:49 +0000 (04:10 +0000)]
am 46fd09d0: am e5fc2a80: Relax fma() verification in builtin_functions.common.fma

* commit '46fd09d0c032722c8a1ac294a9757463c42ccd56':

8 years agoam ef16f835: am 563de115: Merge "Relax mediump interpolation accuracy requirements...
Pyry Haulos [Fri, 28 Aug 2015 04:10:48 +0000 (04:10 +0000)]
am ef16f835: am 563de115: Merge "Relax mediump interpolation accuracy requirements and clarify thresholds" into lmp-sprout-dev

* commit 'ef16f835e1b41d39d25d3476dd5680eb7379b738':

8 years agoam f3446323: am 79c79d54: Merge "Remove broken line interpolation tests from must...
Jarkko Pöyry [Fri, 28 Aug 2015 04:10:48 +0000 (04:10 +0000)]
am f3446323: am 79c79d54: Merge "Remove broken line interpolation tests from must pass." into lmp-sprout-dev

* commit 'f3446323c1aaa054b0f1f535ffd6f0a85926f727':

8 years agoam 9c6d930c: am 744fda92: Add missing extension-require statement to geometry query...
Jarkko Pöyry [Fri, 28 Aug 2015 04:10:47 +0000 (04:10 +0000)]
am 9c6d930c: am 744fda92: Add missing extension-require statement to geometry query tests.

* commit '9c6d930c35e2ca1072d1a6051f9bd3714edfbaf8':

8 years agoam 59faa72b: am e8ef2961: Allow for larger LOD difference and fix another offset bug
Pyry Haulos [Fri, 28 Aug 2015 04:10:46 +0000 (04:10 +0000)]
am 59faa72b: am e8ef2961: Allow for larger LOD difference and fix another offset bug

* commit '59faa72ba9612b12ccb3c82d5b3786ae6feb69c3':

8 years agoam 1a052911: am 2e736e5c: Fix derivate offset in cube map verification code
Pyry Haulos [Fri, 28 Aug 2015 04:10:45 +0000 (04:10 +0000)]
am 1a052911: am 2e736e5c: Fix derivate offset in cube map verification code

* commit '1a05291117df946e27a22e30051283fdb727a826':

8 years agoam 9252e819: Remove tessellation.user_defined_io.per_patch cases from must pass.
Jarkko Pöyry [Fri, 28 Aug 2015 03:57:15 +0000 (03:57 +0000)]
am 9252e819: Remove tessellation.user_defined_io.per_patch cases from must pass.

* commit '9252e8197ed615959ad594ecc85fa3c1ed8e2f2d':
  Remove tessellation.user_defined_io.per_patch cases from must pass.

8 years agoam 652dd63a: Merge "Remove invalid atomic image compare swap tests from mustpass...
Mika Isojärvi [Fri, 28 Aug 2015 03:57:14 +0000 (03:57 +0000)]
am 652dd63a: Merge "Remove invalid atomic image compare swap tests from mustpass." into lmp-sprout-dev

* commit '652dd63a2f6823e19ce7368ef9bf31fd169b4348':
  Remove invalid atomic image compare swap tests from mustpass.

8 years agoam 84e26791: (-s ours) Merge "DO NOT MERGE: Remove io_blocks.match_different_member_i...
Jarkko Pöyry [Fri, 28 Aug 2015 03:57:13 +0000 (03:57 +0000)]
am 84e26791: (-s ours) Merge "DO NOT MERGE: Remove io_blocks.match_different_member_interpolation test from mustpass." into lmp-sprout-dev

* commit '84e26791531053e64c4ab04aa48adb77ce2ecc73':
  DO NOT MERGE: Remove io_blocks.match_different_member_interpolation test from mustpass.

8 years agoam a83f8e59: (-s ours) DO NOT MERGE: Apply fix for tessellation fractional even test...
Jarkko Pöyry [Fri, 28 Aug 2015 03:57:12 +0000 (03:57 +0000)]
am a83f8e59: (-s ours) DO NOT MERGE: Apply fix for tessellation fractional even test verification.

* commit 'a83f8e592d39592bcf217a595a027f3dce4d7b2a':
  DO NOT MERGE: Apply fix for tessellation fractional even test verification.

8 years agoam e5fc2a80: Relax fma() verification in builtin_functions.common.fma
Pyry Haulos [Fri, 28 Aug 2015 03:57:09 +0000 (03:57 +0000)]
am e5fc2a80: Relax fma() verification in builtin_functions.common.fma

* commit 'e5fc2a804322422a6d50270e9e00fb1c193b6f90':
  Relax fma() verification in builtin_functions.common.fma

8 years agoam 563de115: Merge "Relax mediump interpolation accuracy requirements and clarify...
Pyry Haulos [Fri, 28 Aug 2015 03:57:05 +0000 (03:57 +0000)]
am 563de115: Merge "Relax mediump interpolation accuracy requirements and clarify thresholds" into lmp-sprout-dev

* commit '563de115e69e1a98524be95b0f2c26af0bbe621f':
  Relax mediump interpolation accuracy requirements and clarify thresholds

8 years agoam 79c79d54: Merge "Remove broken line interpolation tests from must pass." into...
Jarkko Pöyry [Fri, 28 Aug 2015 03:57:01 +0000 (03:57 +0000)]
am 79c79d54: Merge "Remove broken line interpolation tests from must pass." into lmp-sprout-dev

* commit '79c79d54bd0d278ea2a398e7dfff13e975296ca9':
  Remove broken line interpolation tests from must pass.

8 years agoam 744fda92: Add missing extension-require statement to geometry query tests.
Jarkko Pöyry [Fri, 28 Aug 2015 03:56:59 +0000 (03:56 +0000)]
am 744fda92: Add missing extension-require statement to geometry query tests.

* commit '744fda923ab2ca512aeefca793f1a6c8aa3b19ad':
  Add missing extension-require statement to geometry query tests.

8 years agoam e8ef2961: Allow for larger LOD difference and fix another offset bug
Pyry Haulos [Fri, 28 Aug 2015 03:56:58 +0000 (03:56 +0000)]
am e8ef2961: Allow for larger LOD difference and fix another offset bug

* commit 'e8ef296162c99669d786b805a148b9a3e8ae5831':
  Allow for larger LOD difference and fix another offset bug

8 years agoam 2e736e5c: Fix derivate offset in cube map verification code
Pyry Haulos [Fri, 28 Aug 2015 03:56:57 +0000 (03:56 +0000)]
am 2e736e5c: Fix derivate offset in cube map verification code

* commit '2e736e5cc21486837e98cae3c9303751f9a15c79':
  Fix derivate offset in cube map verification code

8 years agoam 1fdbddf3: (-s ours) DO NOT MERGE: Add cube gather tests that avoid corners; remove...
Pyry Haulos [Fri, 28 Aug 2015 03:56:55 +0000 (03:56 +0000)]
am 1fdbddf3: (-s ours) DO NOT MERGE: Add cube gather tests that avoid corners; remove D32F from mustpass

* commit '1fdbddf3d06656eea41db16182e4ba6f056b476a':
  DO NOT MERGE: Add cube gather tests that avoid corners; remove D32F from mustpass

8 years agoam b9df7b5d: Allow geometry variation in 3D texture filtering tests
Pyry Haulos [Fri, 28 Aug 2015 03:56:54 +0000 (03:56 +0000)]
am b9df7b5d: Allow geometry variation in 3D texture filtering tests

* commit 'b9df7b5d58961270c55c87000a38a8ccbbdc19e9':
  Allow geometry variation in 3D texture filtering tests

8 years agoam 3cc483b1: (-s ours) DO NOT MERGE: Remove broken record_variable_selection test...
Jarkko Pöyry [Fri, 28 Aug 2015 03:56:53 +0000 (03:56 +0000)]
am 3cc483b1: (-s ours) DO NOT MERGE: Remove broken record_variable_selection test from L must-pass.

* commit '3cc483b18a439f3c4484601d351ea541a428b9c5':
  DO NOT MERGE: Remove broken record_variable_selection test from L must-pass.

9 years agoDO NOT MERGE Do not require signed zero support in ldexp tests()
Pyry Haulos [Fri, 30 Jan 2015 19:38:15 +0000 (11:38 -0800)]
DO NOT MERGE Do not require signed zero support in ldexp tests()

This relaxes ldexp() tests to allow -0/+0 to be interchanged.

Bug: 19145770
Change-Id: I46c6a8f224606a15be0f974af36c281612f2398b
(cherry picked from commit 1e44f197ded674677381f65c840820728cf36efb)

9 years agoRemove tessellation.user_defined_io.per_patch cases from must pass.
Jarkko Pöyry [Mon, 23 Mar 2015 20:43:46 +0000 (13:43 -0700)]
Remove tessellation.user_defined_io.per_patch cases from must pass.

Bug: 19892988
Change-Id: I327307b07997466ec9c86564382a2f5b6a0a8bbd

9 years agoMerge "Remove invalid atomic image compare swap tests from mustpass." into lmp-sprout-dev
Mika Isojärvi [Fri, 13 Mar 2015 18:21:09 +0000 (18:21 +0000)]
Merge "Remove invalid atomic image compare swap tests from mustpass." into lmp-sprout-dev

9 years agoMerge "DO NOT MERGE: Remove io_blocks.match_different_member_interpolation test from...
Jarkko Pöyry [Thu, 12 Mar 2015 18:13:15 +0000 (18:13 +0000)]
Merge "DO NOT MERGE: Remove io_blocks.match_different_member_interpolation test from mustpass." into lmp-sprout-dev

9 years agoRemove invalid atomic image compare swap tests from mustpass.
Mika Isojärvi [Tue, 10 Mar 2015 18:33:14 +0000 (11:33 -0700)]
Remove invalid atomic image compare swap tests from mustpass.

Atomic compare swap image return value test verification is wrong. Tests pass
only if all the operations on single texel are run sequentially.

Affected tests:
dEQP-GLES31.functional.image_load_store.*.atomic.comp_swap_*_return_value

Bug: 19641084
Change-Id: I9b003d565ae90e12220c0df2c8927095703de4a6

9 years agoDO NOT MERGE: Remove io_blocks.match_different_member_interpolation test from mustpass.
Jarkko Pöyry [Fri, 27 Feb 2015 21:30:19 +0000 (13:30 -0800)]
DO NOT MERGE: Remove io_blocks.match_different_member_interpolation test from mustpass.

Bug: 19543772
Change-Id: I1cdabaca4793719831fa768353d2e2be124878c9

9 years agoDO NOT MERGE: Apply fix for tessellation fractional even test verification.
Jarkko Pöyry [Fri, 27 Feb 2015 22:53:50 +0000 (14:53 -0800)]
DO NOT MERGE: Apply fix for tessellation fractional even test verification.

- Fix to tessellation fractional even tessellation mode verification
  calculating additional segments' length wrong if tessellation generated
  4 segments, and the additional segments were generated as first and last
  segments.

Bug: 19543594
Change-Id: I69e9a03dfcd451fc4e995eae4b5149c67dc50399

9 years agoRelax fma() verification in builtin_functions.common.fma
Pyry Haulos [Thu, 19 Feb 2015 22:15:03 +0000 (14:15 -0800)]
Relax fma() verification in builtin_functions.common.fma

GL_EXT_gpu_shader5 allows fma() to be implemented either as a single, or
two correctly-rounded operations. Current tests assumed fma() for lowp
and mediump to be implemented as a single operation as no rounding was
allowed mid-operation.

This change relaxes fma() tests to allow for a*b+c expansion.

Bug: 19431850
Change-Id: I46eea74bf3b95bfdbc510e13ef7315854be623ee

9 years agoMerge "Relax mediump interpolation accuracy requirements and clarify thresholds"...
Pyry Haulos [Wed, 18 Feb 2015 19:52:31 +0000 (19:52 +0000)]
Merge "Relax mediump interpolation accuracy requirements and clarify thresholds" into lmp-sprout-dev

9 years agoMerge "Remove broken line interpolation tests from must pass." into lmp-sprout-dev
Jarkko Pöyry [Wed, 18 Feb 2015 19:47:41 +0000 (19:47 +0000)]
Merge "Remove broken line interpolation tests from must pass." into lmp-sprout-dev

9 years agoRemove broken line interpolation tests from must pass.
Jarkko Pöyry [Wed, 18 Feb 2015 18:54:31 +0000 (10:54 -0800)]
Remove broken line interpolation tests from must pass.

- Remove line interpolation tests that incorrectly use projected
  distances in intepolation verification.

Bug: 19410338
Change-Id: I2811495d41988cdbdaaf7142781de3f747191c74

9 years agoRelax mediump interpolation accuracy requirements and clarify thresholds
Pyry Haulos [Fri, 13 Feb 2015 18:58:03 +0000 (10:58 -0800)]
Relax mediump interpolation accuracy requirements and clarify thresholds

This change relaxes mediump interpolation accuracy in
dEQP-GLES3.functional.fragment_out.* to 4 ULP from 1 ULP.

Threshold computation is also fixed/clarified by moving interpolation
threshold to be dependent on precision qualifier, and allowing only
rounding difference in format-dependent threshold. The original error
was likely due to incorrectly accomodating for interpolation in format
threshold.

Bug: 19380820
Change-Id: I457a9b7e07bad94399d07f37caa29d65ad95a5c8

9 years agoAdd missing extension-require statement to geometry query tests.
Jarkko Pöyry [Wed, 4 Feb 2015 19:10:11 +0000 (11:10 -0800)]
Add missing extension-require statement to geometry query tests.

Bug: 19261758
Change-Id: Id788103f6aada884cd47e0707deaabeed0b36b8c

9 years agoAllow for larger LOD difference and fix another offset bug
Pyry Haulos [Fri, 30 Jan 2015 17:50:46 +0000 (09:50 -0800)]
Allow for larger LOD difference and fix another offset bug

Certain valid implementations were failing couple of
mipmap.cube.projected tests and the reason appears to be that sampling
analytical derivatives around pixel neighborhood may give too tight LOD
bounds, especially if one or more samples fall into different faces.

This change compensates for the difference by reducing assumed LOD
precision down to 3 bits.

In addition this change fixes another LOD offset issue missed by
previous CL.

Bug: 19170879
Change-Id: I5c154294f2b47222f6910e89dfdd372d7d8233bd

9 years agoFix derivate offset in cube map verification code
Pyry Haulos [Thu, 29 Jan 2015 21:47:02 +0000 (13:47 -0800)]
Fix derivate offset in cube map verification code

To accomodate implementations that use same derivative for a 2x2 pixel
quad when computing LOD, cube map verification code samples derivatives
in 3x3 neighborhood and computes bounds based on that.

This change fixes a typo that prevented the code from considering
(+1, +1) offset.

Bug: 19170879
Change-Id: I2de7aa422fc2fa3ff4432e802bb98c90aedeb548

9 years agoDO NOT MERGE: Add cube gather tests that avoid corners; remove D32F from mustpass
Pyry Haulos [Wed, 19 Nov 2014 19:31:46 +0000 (11:31 -0800)]
DO NOT MERGE: Add cube gather tests that avoid corners; remove D32F from mustpass

This change adds new no_corners sub-groups to cube map texture gather
tests. Tests in those groups don't sample around cube map corners,
avoiding a HW issue on certain GPUs. All new tests are included in MR1
mustpass.

GL_DEPTH_COMPONENT32F cube gather cases that sample around corners are
removed from mustpass list as being too strict to enforce in the L
timeframe.

Additionally this resolves a bug with filling mipmap levels high up in
the mipmap chain in gather tests.

Bug: 18434194
Change-Id: Ib1635aefba4f1d64a15d22e481b79229573a64a7

9 years agoAllow geometry variation in 3D texture filtering tests
Pyry Haulos [Wed, 21 Jan 2015 18:10:44 +0000 (10:10 -0800)]
Allow geometry variation in 3D texture filtering tests

3D texture verification code was expecting geometry to match exactly
between the result and the reference. This was causing false negatives
on some HW.

Bug: 19092978
Change-Id: I7f20a0dc659e33c5ca3a6c88a0d242267f24fe6a

9 years agoDO NOT MERGE: Remove broken record_variable_selection test from L must-pass.
Jarkko Pöyry [Wed, 7 Jan 2015 21:13:13 +0000 (13:13 -0800)]
DO NOT MERGE: Remove broken record_variable_selection test from L must-pass.

tessellation_geometry_interaction.feedback.record_variable_selection
reads gl_in[] element with index larger than patch size. This is
undefined behavior.

Bug: 18917835
Change-Id: I15c6925dfb79fa439d2e21db460ff7507ab066c1

9 years agoRemove highp vec4 dot case from mustpass by request from IHV
Pyry Haulos [Wed, 29 Oct 2014 23:20:31 +0000 (16:20 -0700)]
Remove highp vec4 dot case from mustpass by request from IHV

Change-Id: I9a102a5e43471ce1745350b0e5cfc831929367f1

9 years agoMerge "Update test spec." into lmp-dev
Jarkko Pöyry [Tue, 28 Oct 2014 00:21:41 +0000 (00:21 +0000)]
Merge "Update test spec." into lmp-dev

9 years agoUpdate test spec.
Jarkko Pöyry [Tue, 28 Oct 2014 00:19:19 +0000 (17:19 -0700)]
Update test spec.

Change-Id: I045b445c0f0c9b524cdce6327826068581df8082

9 years agoMerge "Use invalid sample count in renderbuffer_storage_multisample negative case...
Jarkko Pöyry [Sat, 25 Oct 2014 01:14:49 +0000 (01:14 +0000)]
Merge "Use invalid sample count in renderbuffer_storage_multisample negative case." into lmp-dev

9 years agoMerge "Fix early fragment test tests on default fb without depth." into lmp-dev
Jarkko Pöyry [Sat, 25 Oct 2014 00:21:05 +0000 (00:21 +0000)]
Merge "Fix early fragment test tests on default fb without depth." into lmp-dev

9 years agoUse invalid sample count in renderbuffer_storage_multisample negative case.
Jarkko Pöyry [Sat, 25 Oct 2014 00:03:56 +0000 (17:03 -0700)]
Use invalid sample count in renderbuffer_storage_multisample negative case.

Bug; 18100655
Change-Id: I9bd0417c44f3531755ec2ba1cc06f8164df50661

9 years agoMerge "Fix framebuffer completeness tests with sRGB targets." into lmp-dev
Jarkko Pöyry [Fri, 24 Oct 2014 23:53:42 +0000 (23:53 +0000)]
Merge "Fix framebuffer completeness tests with sRGB targets." into lmp-dev

9 years agoFix early fragment test tests on default fb without depth.
Jarkko Pöyry [Fri, 24 Oct 2014 22:22:27 +0000 (15:22 -0700)]
Fix early fragment test tests on default fb without depth.

- Check default fb has relevant depth/stencil buffer
- Add cases with non-default framebuffer
- Add cases with non-default framebuffer without the
  relevant stencil/depth test buffer attachment.

Bug: 18100454
Change-Id: Ie66ba9aacc9d0abc94c7664ed3f268970e185030

9 years agoMerge "Reduce and verify fragment output PIQ test draw buffer usage." into lmp-dev
Jarkko Pöyry [Fri, 24 Oct 2014 22:27:43 +0000 (22:27 +0000)]
Merge "Reduce and verify fragment output PIQ test draw buffer usage." into lmp-dev

9 years agoFix framebuffer completeness tests with sRGB targets.
Jarkko Pöyry [Fri, 24 Oct 2014 21:37:41 +0000 (14:37 -0700)]
Fix framebuffer completeness tests with sRGB targets.

- Don't expect SRGB to become renderable in GL_EXT_sRGB extension
- Support GL_EXT_sRGB_write_control extension
- Support GL_NV_sRGB_formats extension
- Add missing GLES3 texture formats
- Remove modified cases from must-pass list

Bug: 18094134
Change-Id: I7587ff4a0e6106b74780dae193fa16970145a02e

9 years agoReduce and verify fragment output PIQ test draw buffer usage.
Jarkko Pöyry [Fri, 24 Oct 2014 20:14:21 +0000 (13:14 -0700)]
Reduce and verify fragment output PIQ test draw buffer usage.

- Check GL_MAX_DRAW_BUFFERS implementation limit and usage if shader
  build fails.
- Reduce required GL_MAX_DRAW_BUFFERS from 5 to 4 in explicit location
  fragment output array tests.
- Fix various max binding resource usage checks.

Bug: 18094242
Change-Id: I17e091eb1939fd7ec94789be70be5a069970b697

9 years agoFix JNI usage issues in Android TestLogParser
Pyry Haulos [Fri, 24 Oct 2014 04:05:26 +0000 (21:05 -0700)]
Fix JNI usage issues in Android TestLogParser

 * Android TestLogParser used CallObjectMethod() on Java methods returning
void, which causes CheckJNI to throw an error. Changed to use correct
CallVoidMethod().

 * TestLogListener wrapper was not freeing local jstring references,
which given large parse buffer size could easily lead to ART local
reference table overflow. Fixed by freeing all local references as soon
as the objects are passed to the Java / VM side.

Change-Id: I19811be6fdc0f3d77bc7a0d99d243529031d3b08

9 years agoRemove invalid assert from RenderActivity::setThread()
Pyry Haulos [Thu, 23 Oct 2014 21:52:34 +0000 (14:52 -0700)]
Remove invalid assert from RenderActivity::setThread()

It is valid to call setThread() with null thread as part of activity
teardown, so the assert was invalid.

Change-Id: I0b3a89db1f5aff04c97def32b1881e0d66e5d250

9 years agoAdd blend barrier after first opaque quad
Pyry Haulos [Thu, 23 Oct 2014 20:58:13 +0000 (13:58 -0700)]
Add blend barrier after first opaque quad

Advanced blending tests were missing barrier between first opaque quad
and subsequent blended quads. This change adds BlendBarrier() call if
coherent blending is not enabled.

This change also adds fullscreen clear before rendering as framework
doesn't perform that in GLES31 module.

Bug: 18100652
Change-Id: Idd16f2fde543af885e97adf5b5c2123d7e803152

9 years agoMerge "Workaround for libhoudini.so sin&cos bug" into lmp-dev
Pyry Haulos [Wed, 22 Oct 2014 22:00:20 +0000 (22:00 +0000)]
Merge "Workaround for libhoudini.so sin&cos bug" into lmp-dev

9 years agoRemove cases that are still flaky on Nexus devices from mustpass
Pyry Haulos [Wed, 22 Oct 2014 19:37:17 +0000 (12:37 -0700)]
Remove cases that are still flaky on Nexus devices from mustpass

Change-Id: Ifb0e8a8c2e0e7c784b728da512edefb292ae4b9b

9 years agoWorkaround for libhoudini.so sin&cos bug
Pyry Haulos [Wed, 22 Oct 2014 20:00:36 +0000 (13:00 -0700)]
Workaround for libhoudini.so sin&cos bug

This is a workaround for Intel ARM->x86 translator (houdini) bug.
sin() & cos() return garbage for very large inputs. The outcome is
that when codomain is applied the result interval becomes empty.

Workaround is to bring the input value to the base range via modulo
if sin/cos returns an invalid values.

Change-Id: I2178daf2f9ffec543c1cf9fad2881719dd7736cc

9 years agoMustpass update 2014.2.9
Pyry Haulos [Tue, 21 Oct 2014 18:39:55 +0000 (11:39 -0700)]
Mustpass update 2014.2.9

Change-Id: Ifbae72f0d8d69a35abc8c4093e11db41bf88feb7

9 years agoAdd missing barrier() to shared var test shader
Pyry Haulos [Fri, 17 Oct 2014 21:47:54 +0000 (14:47 -0700)]
Add missing barrier() to shared var test shader

Bug: 18033432
Change-Id: Id64798a196c8567828385b24ccde845b1b5efafb

9 years agoAdd internal format query with too large/small buffer tests.
Jarkko Pöyry [Thu, 16 Oct 2014 00:13:45 +0000 (17:13 -0700)]
Add internal format query with too large/small buffer tests.

Change-Id: Iccc403b7a7d63b21a6e0ac4f505c2db656e3772c

9 years agoCheck GL_OES_texture_stencil8 in dEQP stencil texture query tests.
Jarkko Pöyry [Wed, 15 Oct 2014 22:31:53 +0000 (15:31 -0700)]
Check GL_OES_texture_stencil8 in dEQP stencil texture query tests.

Change-Id: If90a4d5a9f43cfc363265c78351b302be3a7ebef

9 years agoMerge "Import dEQP fixes from an internal repo." into lmp-dev
Jarkko Pöyry [Wed, 15 Oct 2014 22:28:02 +0000 (22:28 +0000)]
Merge "Import dEQP fixes from an internal repo." into lmp-dev

9 years agoImport dEQP fixes from an internal repo.
Jarkko Pöyry [Wed, 15 Oct 2014 20:34:56 +0000 (13:34 -0700)]
Import dEQP fixes from an internal repo.

 * Update XFB program interface tests to match spec update in Khronos
   bug 12787.
 * Add tests for whole array and built-in XFB PIQ.
 * Convert incorrect linkage.varying.rules.interpolation_mismatch_
   negative cases to positive cases.

Change-Id: Ic5eab213f6ee7a5151220664107c6f912fd12130

9 years agoBugfixes and mustpass update
Pyry Haulos [Wed, 15 Oct 2014 17:04:57 +0000 (10:04 -0700)]
Bugfixes and mustpass update

 * Fix glReadBuffer() negative test to match latest spec language.

 * Remove said test from ES3.1 mustpass as it has been changed just
before release.

 * Remove SSO case from mustpass that has been removed earlier from the
test code.

Change-Id: Id77f7957f503121bde6b41c12cdc0141324f28bb

9 years agoMerge "dEQP mustpass update 2014.2.8" into lmp-dev
Pyry Haulos [Tue, 14 Oct 2014 21:37:14 +0000 (21:37 +0000)]
Merge "dEQP mustpass update 2014.2.8" into lmp-dev

9 years agodEQP mustpass update 2014.2.8
Pyry Haulos [Mon, 13 Oct 2014 20:51:12 +0000 (13:51 -0700)]
dEQP mustpass update 2014.2.8

Change-Id: Ie2799609c7bb33886938bd52b3d8423f98f3705c

9 years agoFix error state leak in KHR_debug tests
Pyry Haulos [Mon, 13 Oct 2014 17:26:44 +0000 (10:26 -0700)]
Fix error state leak in KHR_debug tests

Reset error state in KHR_debug callback and log test case variants
after expectError() call to avoid breaking code later in the test due
to lingering error state.

Change-Id: Iec4c67dc10d171a72a9faeb4af800fa8d6e20d79

9 years agoWorkaround for GCC aarch64 compiler bug
Pyry Haulos [Wed, 8 Oct 2014 22:01:09 +0000 (15:01 -0700)]
Workaround for GCC aarch64 compiler bug

Current prebuilt GCC toolchain has a bug in shift right when
targeting ARMv8 / aarch64.

If compiler wants to perform logical shift by variable/register
in fp/vector registers it uses USHL that selects shift direction
based on shift operand value. Thus for right shifts the shift
operand needs to be negated.

The bug is in right shift pattern; it doesn't mark shift operand
as clobbered and thus later code using that same register may
see the negated value.

Workaround is to disable optimization for this function.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61633

Change-Id: I02477b0fb383ead1d35136261fb8969a02d1031e

9 years agoRemove failing case on Volantis
Pyry Haulos [Wed, 8 Oct 2014 00:13:38 +0000 (17:13 -0700)]
Remove failing case on Volantis

Volantis isn't getting a driver update but is failing one indirect draw
negative test case, and thus that test needs to go. Removing this fixes
4 other failures in image_load_store group as well as the bug causes HW
to misbehave for next couple of draw calls.

Change-Id: I3daa239ae36ee022f7c4cd5ec783eaa10bff1afe

9 years agoUpdate SSO tests to follow new spec language
Pyry Haulos [Mon, 6 Oct 2014 22:13:09 +0000 (15:13 -0700)]
Update SSO tests to follow new spec language

Upcoming ES3.1 spec revision will change the interface matching rules
slightly by disallowing flat/smooth mismatch. This change removes cases
that assumed that mismatch should work, and adds additional validation
cases to check that driver indeed gives validation and draw time errors
on such mismatch.

See Khronos bug 12630.

Change-Id: I0c77c80aa7779443df4c1dac71048f0d2a380600

9 years agoTerminate session on any error from eglSwapBuffers()
Pyry Haulos [Fri, 3 Oct 2014 20:11:16 +0000 (13:11 -0700)]
Terminate session on any error from eglSwapBuffers()

Test run should always abort if eglSwapBuffers() gives an error as it
is almost always a sign that something has gone unrecoverably wrong in
the driver.

 * Always throw tcu::ResourceError on any error from eglSwapBuffers().
This will make TestExecutor to abort the session.

 * Treat EGL_BAD_NATIVE_WINDOW as a sign of potentially destroyed
underlying window, not just EGL_BAD_SURFACE.

Change-Id: I42f3769566670630e3965b0ff50119297639fd5c

9 years agoUpdate dEQP test case list files.
Jarkko Pöyry [Fri, 3 Oct 2014 18:24:34 +0000 (11:24 -0700)]
Update dEQP test case list files.

Change-Id: Iae417bd328af42ddfc9eecfea4d1299bc124fac5

9 years agoMerge "Remove targetBinaryName attribute from test case lists." into lmp-dev
Pyry Haulos [Fri, 3 Oct 2014 15:56:20 +0000 (15:56 +0000)]
Merge "Remove targetBinaryName attribute from test case lists." into lmp-dev

9 years agoFix two test bugs
Pyry Haulos [Thu, 2 Oct 2014 17:57:05 +0000 (10:57 -0700)]
Fix two test bugs

 * Removed invalid ES 3.0 linkage test that assumed that struct arrays
are valid varyings.

 * Changed glProgramParameteri() negative API test to expect correct
error code when call was supplied non-existent program object.

Change-Id: Ib7f2f9693bdef364bc44425b5299993e702dc214

9 years agoMerge "Add preliminary support for NDK r10c" into lmp-dev
Pyry Haulos [Thu, 2 Oct 2014 15:53:19 +0000 (15:53 +0000)]
Merge "Add preliminary support for NDK r10c" into lmp-dev

9 years agoRemove targetBinaryName attribute from test case lists.
Jarkko Pöyry [Thu, 2 Oct 2014 01:31:28 +0000 (18:31 -0700)]
Remove targetBinaryName attribute from test case lists.

OnDevice package is expected to be explicitly installed by the dEQP test
runner.

Change-Id: I5bbb579260e3659a7fd3b38d3035d9aea10a9021

9 years agoMake Android integration more robust for API >= 11
Pyry Haulos [Wed, 1 Oct 2014 22:49:17 +0000 (15:49 -0700)]
Make Android integration more robust for API >= 11

Recent targetSdkLevel bump exposed robustness issues in the Android
port which were hidden by pre-honeycomb workarounds in
android.app.ActivityThread. For honeycomb and up when launching activity
with lockscreen on or screen off the system for some reason first starts
the activity once, puts it back to stopped state and then resumes again.
Original Android port assumed that stop event signaled that the test
execution should always stop and process should kill itself. This might
have been necessary workaround on some older Android versions where
onDestroy was never called even if app called finish().

This commit improves Android integration in multiple ways:

 * Android port can continue test execution even across stop-start
boundary in the Activity life-cycle.

 * eglu::GLRenderContext can recover from window loss by recreating
the window if NativeWindow::postIterate() throws WindowDestroyedError.

 * eglu::GLRenderContext refreshes window surface size in postIterate()
call. Note that most test cases might not like if surface is resized
during execution though.

 * Temporary window loss (recreation) no longer leads to test run abort,
but rather Android NativeWindow correctly signals that event allowing
eglu::GLRenderContext to recover.

Change-Id: Iaa240f16a2ae6cea7fb894c5772d1e7959a1cfac

9 years agoAdd preliminary support for NDK r10c
Pyry Haulos [Wed, 1 Oct 2014 23:18:37 +0000 (16:18 -0700)]
Add preliminary support for NDK r10c

This change adds toolchain file for NDK r10c and necessary build system
changes for arm64-v8a ABI. The toolchain file assumes that the released
toolchain uses android-21 instead of android-L as the ABI version.

Only GCC toolchain file is provided.

Change-Id: I52053569c5564b0b41b0c66f334a081de4ed584f

9 years agoMerge "Add internal (dE-IT) module to CTS builds." into lmp-dev
Pyry Haulos [Wed, 1 Oct 2014 16:04:37 +0000 (16:04 +0000)]
Merge "Add internal (dE-IT) module to CTS builds." into lmp-dev

9 years agoMerge "Clean up msg queue implementation in RenderActivity" into lmp-dev
Pyry Haulos [Wed, 1 Oct 2014 16:04:09 +0000 (16:04 +0000)]
Merge "Clean up msg queue implementation in RenderActivity" into lmp-dev

9 years agoMerge "Import changes from an internal repo." into lmp-dev
Jarkko Pöyry [Tue, 30 Sep 2014 23:36:28 +0000 (23:36 +0000)]
Merge "Import changes from an internal repo." into lmp-dev

9 years agoImport changes from an internal repo.
Jarkko Pöyry [Tue, 30 Sep 2014 21:56:09 +0000 (14:56 -0700)]
Import changes from an internal repo.

* Fix broken clipping result
* Fix invalid format-type pair in readPixels()

Change-Id: I996a9c5b340ae4d455219e57ff16d2b1456b015c

9 years agoFix sync object leak in ES3.1 debug tests.
Pyry Haulos [Tue, 30 Sep 2014 21:11:47 +0000 (14:11 -0700)]
Fix sync object leak in ES3.1 debug tests.

Change-Id: Ie38485b1f7415b2aade30d02d0006a128f9ac9c9

9 years agoClean up msg queue implementation in RenderActivity
Pyry Haulos [Tue, 30 Sep 2014 19:45:22 +0000 (12:45 -0700)]
Clean up msg queue implementation in RenderActivity

tcu::Android::Message type (which RenderActivity uses to communicate
with the render thread) didn't validate payload type against the message
type. This change fixes that.

Change-Id: I2f120783e4f1bb5b7d0122bb8849c429577c267c

9 years agoAdd internal (dE-IT) module to CTS builds.
Pyry Haulos [Tue, 30 Sep 2014 19:22:49 +0000 (12:22 -0700)]
Add internal (dE-IT) module to CTS builds.

Internal module has tests that validate build and base OS integration.
Having those test available in the APKs makes it easier to rule out test
framework issues if necessary.

Change-Id: I56f4ce8834e60f94c1c4b0ded78750d2a7ebba3e

9 years agoAdd screenSize to configChanges to avoid activity restarts when built through CTS...
Pyry Haulos [Tue, 30 Sep 2014 17:52:42 +0000 (10:52 -0700)]
Add screenSize to configChanges to avoid activity restarts when built through CTS build system which overrides minSdkVersion.

Change-Id: I570a691999765ba277983230fb6436c7fb50b700

9 years agoAdd missing jclass argument to static native methods
Brian Carlstrom [Tue, 30 Sep 2014 07:28:43 +0000 (00:28 -0700)]
Add missing jclass argument to static native methods

Bug: 17691683
Change-Id: Ibfa039ea23ec25ab4974f2c1675d427638c66367

9 years agoMake TestLogParser and DeqpInstrumentation more robust:
Pyry Haulos [Sat, 27 Sep 2014 00:29:34 +0000 (17:29 -0700)]
Make TestLogParser and DeqpInstrumentation more robust:

 * Fix potential IndexOutOfBounds in TestLogParser
 * Fix bug in log file polling logic
 * Don't stop parsing remaining log data immediately when test process
   finishes

Change-Id: Iae8d153c6d0a32f9574d6d7131f3834479b83cb1

9 years agoMerge "Import fixes from an internal repo." into lmp-dev
Jarkko Pöyry [Mon, 29 Sep 2014 15:36:06 +0000 (15:36 +0000)]
Merge "Import fixes from an internal repo." into lmp-dev

9 years agoImport fixes from an internal repo.
Jarkko Pöyry [Fri, 26 Sep 2014 23:58:44 +0000 (16:58 -0700)]
Import fixes from an internal repo.

* Fix buffer size requirement calculation
* Fix negative tests not checking relevant extensions

Change-Id: Ibc6759b6b4f0ef811a25eef88c4b5fe5964e9349

9 years agoImport fixes from main repo:
Pyry Haulos [Fri, 26 Sep 2014 22:34:05 +0000 (15:34 -0700)]
Import fixes from main repo:

 * Ensure input colors are valid premultiplied values in advanced
   blending tests
 * Limit input values in mediump fma() tests to avoid overflow
 * Add necessary barrier() calls to ssbo_local_barrier tests

Change-Id: I111c58027dbdbba31047d4333dc82c10855ec75e

9 years agoMerge "Verify component count is in the legal range." into lmp-dev
Jarkko Pöyry [Fri, 26 Sep 2014 02:28:12 +0000 (02:28 +0000)]
Merge "Verify component count is in the legal range." into lmp-dev

9 years agoUpdate dEQP case list.
Jarkko Pöyry [Fri, 26 Sep 2014 02:25:34 +0000 (19:25 -0700)]
Update dEQP case list.

Change-Id: I07c8b19fb153d59eafc17ae548629099988caa5e

9 years agoVerify component count is in the legal range.
Jarkko Pöyry [Thu, 25 Sep 2014 23:27:06 +0000 (16:27 -0700)]
Verify component count is in the legal range.

Change-Id: I50a18f9c8a5d4aac8e9b246b751dceca343991cc

9 years agoMerge "Calculate wide line raster area properly." into lmp-dev
Jarkko Pöyry [Thu, 25 Sep 2014 02:32:58 +0000 (02:32 +0000)]
Merge "Calculate wide line raster area properly." into lmp-dev

9 years agoCalculate wide line raster area properly.
Jarkko Pöyry [Thu, 25 Sep 2014 02:26:49 +0000 (19:26 -0700)]
Calculate wide line raster area properly.

Change-Id: I46e3ef9d1104045a34e4dad070f400d8e19cb54e

9 years agoMerge "Import several fixes from main repo:" into lmp-dev
Pyry Haulos [Thu, 25 Sep 2014 02:21:44 +0000 (02:21 +0000)]
Merge "Import several fixes from main repo:" into lmp-dev

9 years agoUpdate dEQP test list.
Jarkko Pöyry [Thu, 25 Sep 2014 02:00:27 +0000 (19:00 -0700)]
Update dEQP test list.

* Update dEQP mustpass lists.
* Update dEQP test lists to follow updated mustpass lists.
* Update test list generator script.

Bug: 17388917
Change-Id: I98e3b910056e44d498a208e8b9a7a8818ed02ef2

9 years agoImport several fixes from main repo:
Pyry Haulos [Thu, 25 Sep 2014 01:39:44 +0000 (18:39 -0700)]
Import several fixes from main repo:

 * Rounding of overflowed operation results in shader precision tests
 * GL object leak in glu::ObjectVector
 * False negatives due to ambiguous cube corner texel selection
 * x11_glx build from this repo (bonus)

Change-Id: Ifeb6570cad5dec961057decc4af85365c3054f1c