platform/upstream/VK-GL-CTS.git
9 years agoam fc427ee2: Android APK build with parametrized build root dir automerge: baf29b3
Kalle Raita [Tue, 11 Nov 2014 18:33:34 +0000 (18:33 +0000)]
am fc427ee2: Android APK build with parametrized build root dir automerge: baf29b3

* commit 'fc427ee228bd70a9e8143991d95368ff66bad535':
  Android APK build with parametrized build root dir

9 years agoam 442b9606: (-s ours) Rename libtestercore.so to libdeqp.so automerge: 04d5126
Pyry Haulos [Tue, 11 Nov 2014 18:33:33 +0000 (18:33 +0000)]
am 442b9606: (-s ours) Rename libtestercore.so to libdeqp.so automerge: 04d5126

* commit '442b960625c003853b4dd86b403f31fcc6d08e57':
  Rename libtestercore.so to libdeqp.so

9 years agoam a9adba50: (-s ours) Merge "Fix typo (GCC->CLANG) in general Clang compiler defs...
Pyry Haulos [Tue, 11 Nov 2014 18:27:25 +0000 (18:27 +0000)]
am a9adba50: (-s ours) Merge "Fix typo (GCC->CLANG) in general Clang compiler defs." into lmp-mr1-dev automerge: e89ebf1

* commit 'a9adba501c1b65a04fbaa1ca5f9b30dc30af7987':
  Fix typo (GCC->CLANG) in general Clang compiler defs.

9 years agoam 207522c3: (-s ours) Improvements to standalone Android build scripts automerge...
Pyry Haulos [Tue, 11 Nov 2014 18:21:41 +0000 (18:21 +0000)]
am 207522c3: (-s ours) Improvements to standalone Android build scripts automerge: 7e01a41

* commit '207522c39f0c128b2b0136e99c2292400b51f134':
  Improvements to standalone Android build scripts

9 years agoAndroid APK build with parametrized build root dir
Kalle Raita [Tue, 11 Nov 2014 18:14:33 +0000 (18:14 +0000)]
Android APK build with parametrized build root dir
automerge: baf29b3

* commit 'baf29b35cfdcd71a107f2ea9c0ce65024f21c1fb':
  Android APK build with parametrized build root dir

9 years agoRename libtestercore.so to libdeqp.so
Pyry Haulos [Tue, 11 Nov 2014 18:14:31 +0000 (18:14 +0000)]
Rename libtestercore.so to libdeqp.so
automerge: 04d5126

* commit '04d51263aaa058a4d7b7279c51b035f50aa4fdad':
  Rename libtestercore.so to libdeqp.so

9 years agoMerge "Fix typo (GCC->CLANG) in general Clang compiler defs." into lmp-mr1-dev
Pyry Haulos [Tue, 11 Nov 2014 18:14:29 +0000 (18:14 +0000)]
Merge "Fix typo (GCC->CLANG) in general Clang compiler defs." into lmp-mr1-dev
automerge: e89ebf1

* commit 'e89ebf1145494c53bbeb31c3b191ca116e30be82':
  Fix typo (GCC->CLANG) in general Clang compiler defs.

9 years agoImprovements to standalone Android build scripts
Pyry Haulos [Tue, 11 Nov 2014 18:14:26 +0000 (18:14 +0000)]
Improvements to standalone Android build scripts
automerge: 7e01a41

* commit '7e01a414adc237914552ab970ab3c8c81a8ff799':
  Improvements to standalone Android build scripts

9 years agoAndroid APK build with parametrized build root dir
Kalle Raita [Fri, 24 Oct 2014 18:16:03 +0000 (11:16 -0700)]
Android APK build with parametrized build root dir

Bug: 18329517
Change-Id: Ibb0fab0c6d34856d9b4a710cef69a38835d092ce
(cherry picked from commit 829f589e23415302162689825ba8bd8c1a61addb)

9 years agoRename libtestercore.so to libdeqp.so
Pyry Haulos [Mon, 20 Oct 2014 20:01:20 +0000 (13:01 -0700)]
Rename libtestercore.so to libdeqp.so

Since dEQP is now being built as part of the Android CTS as well,
the name libtestercore.so isn't very descriptive any more. This change
renames the library to libdeqp.so.

This change also drops some dead code related to API level < 9 support.

Bug: 18329517
Change-Id: I03b60fd6d9cc6252651f25610e7c72bbc450670c
(cherry picked from commit 03700a8505debaeae47e63e156ec15350398ce83)

9 years agoMerge "Fix typo (GCC->CLANG) in general Clang compiler defs." into lmp-mr1-dev
Pyry Haulos [Tue, 11 Nov 2014 16:44:16 +0000 (16:44 +0000)]
Merge "Fix typo (GCC->CLANG) in general Clang compiler defs." into lmp-mr1-dev

9 years agoFix typo (GCC->CLANG) in general Clang compiler defs.
Kalle Raita [Mon, 20 Oct 2014 19:17:21 +0000 (12:17 -0700)]
Fix typo (GCC->CLANG) in general Clang compiler defs.

Bug: 18329517
Change-Id: I440f37723987c1dd85e7482f0d32ac157565e25d
(cherry picked from commit 713ab1e9034564f842935cd011fdea8abc9ea90c)

9 years agoImprovements to standalone Android build scripts
Pyry Haulos [Mon, 20 Oct 2014 18:09:56 +0000 (11:09 -0700)]
Improvements to standalone Android build scripts

 * If multiple connected devices are detected, install.py prompts to
select one by default if no additional arguments are given.

 * Add -a option to install.py that installs package to all connected
devices.

 * Use ninja on Linux / OS X, if installed, for faster builds (apt-get
install ninja-build to get the awesomeness).

 * If make is used, pass in -j{CPUs} based on number of cores detected.

 * Prefer adb in path to avoid adb version mismatch in certain
environments, for example when doing Android OS builds.

 * Clean up libs/ dir to avoid stale versions for archs that are not
being built.

 * Do not unnecessarily force re-linking of libtestercore.so.

 * Optimize asset cleanup by performing that only for the build that is
used for the assets.

 * Auto-detect ANDROID_NDK_HOST_OS.

Bug: 18329517
Change-Id: I44e1b0acb5e6bcafeff7df30147002f216a76deb
(cherry picked from commit 89e0405021b883114cca9e748166c17bd7ebcc98)

9 years agoMerge "Add workaround for incorrect array-bounds warning in glsDrawTest.cpp"
Pyry Haulos [Mon, 10 Nov 2014 19:28:23 +0000 (19:28 +0000)]
Merge "Add workaround for incorrect array-bounds warning in glsDrawTest.cpp"

9 years agoMerge "Fix setjmp warning in qpTestLog PNG compression code"
Pyry Haulos [Mon, 10 Nov 2014 19:28:08 +0000 (19:28 +0000)]
Merge "Fix setjmp warning in qpTestLog PNG compression code"

9 years agoFix setjmp warning in qpTestLog PNG compression code
Pyry Haulos [Mon, 10 Nov 2014 18:09:32 +0000 (10:09 -0800)]
Fix setjmp warning in qpTestLog PNG compression code

Change-Id: Id0a8202c473b97ba874f5a032d0e4b022664e978

9 years agoMerge "Clean up CFlags.cmake"
Pyry Haulos [Mon, 10 Nov 2014 19:06:50 +0000 (19:06 +0000)]
Merge "Clean up CFlags.cmake"

9 years agoTreat adb device info parse failures as warnings
Pyry Haulos [Mon, 10 Nov 2014 18:17:16 +0000 (10:17 -0800)]
Treat adb device info parse failures as warnings

Currently when for example unauthorized adb device is connected
install.py stops working altogether, as parsing failures of such lines
causes fatal error. This change turns those failures into warnings
making install.py more robust.

Change-Id: I1b68f97d5bb8e28b04bdb7b58a8c03e2db7a9161

9 years agoClean up CFlags.cmake
Pyry Haulos [Mon, 10 Nov 2014 18:12:28 +0000 (10:12 -0800)]
Clean up CFlags.cmake

 * Android doesn't require special handling here any more.

 * Unify Clang and GCC sections as the flags are mostly common.

 * Remove -m32/-m64 flags as they must be set by cmake command line or
toolchain file to work properly.

 * Remove support for Symbian as it has not been maintained for ages and
is most likely broken.

Change-Id: Ib33b427e94e009dfcc20846454aa38c6b58e39ac

9 years agoAdd workaround for incorrect array-bounds warning in glsDrawTest.cpp
Pyry Haulos [Mon, 10 Nov 2014 18:10:39 +0000 (10:10 -0800)]
Add workaround for incorrect array-bounds warning in glsDrawTest.cpp

Change-Id: I07e4139429301ee306f9a79833da23df143ecafe

9 years agoMerge "Generate GL(ES) framework .inl files from Khronos XML registry."
Pyry Haulos [Fri, 7 Nov 2014 15:54:07 +0000 (15:54 +0000)]
Merge "Generate GL(ES) framework .inl files from Khronos XML registry."

9 years agoGenerate GL(ES) framework .inl files from Khronos XML registry.
Pyry Haulos [Thu, 6 Nov 2014 01:41:42 +0000 (17:41 -0800)]
Generate GL(ES) framework .inl files from Khronos XML registry.

The new scripts produce the GL framework auto-generated parts using the
official XML description of the GL(ES) APIs.

Change-Id: I487a624dbadc2040bb4968f46a4c91ea7e5b27af

9 years agoMerge "Create repro cases for FBO clear bug"
Pyry Haulos [Wed, 5 Nov 2014 19:36:33 +0000 (19:36 +0000)]
Merge "Create repro cases for FBO clear bug"

9 years agoMerge "Add GLES version attribute to CTS test descriptor XMLs for future use."
Jarkko Pöyry [Tue, 4 Nov 2014 23:08:44 +0000 (23:08 +0000)]
Merge "Add GLES version attribute to CTS test descriptor XMLs for future use."

9 years agoAdd GLES version attribute to CTS test descriptor XMLs for future use.
Jarkko Pöyry [Tue, 4 Nov 2014 01:05:37 +0000 (17:05 -0800)]
Add GLES version attribute to CTS test descriptor XMLs for future use.

- Add "glesVersion" attribute to test package definition XML for future use.
- Add --module option to generator script to simplify test XML generation.
- Remove obsolete XML generation script.

Change-Id: I06ce86f3cd829d90727d2c1e459a1fcab92e268f

9 years agoAllow trailing newline in trie files.
Jarkko Pöyry [Tue, 4 Nov 2014 02:34:08 +0000 (18:34 -0800)]
Allow trailing newline in trie files.

Bug: 17958588
Change-Id: Iaa9b5aa95ee27e31d486755954df193f808b7e82

9 years agoCreate repro cases for FBO clear bug
Pyry Haulos [Mon, 3 Nov 2014 23:13:31 +0000 (15:13 -0800)]
Create repro cases for FBO clear bug

Color clears typically enjoy special handling in drivers, especially on
tile-based renderers, where fullscreen clears are typically just state
that gets processed when tile is initialized. That requires further
special handling when the clear is the only command issued to a render
target.

Sure enough there appears to be some devices where following doesn't
work as expected:

Repeat N times:
  Clear FBO A with some iteration-specific color
  Bind FBO B
  Sample from FBO A

The result is that sampling might not return color of that iteration,
but instead for example the claer color of first, or previous iteration.

These tests attempt to reproduce that implementation bug.

Bug: 18169662
Change-Id: I869138c5108d66fdf0cf497f730b2b3518d1686d

9 years agoAdd support for simpler test case list syntax
Pyry Haulos [Fri, 31 Oct 2014 00:45:41 +0000 (17:45 -0700)]
Add support for simpler test case list syntax

This change adds support for mustpass-style (full test case path per
line) test case format. All existing test case list command line options
(--deqp-caselist, --deqp-stdin-caselist, --deqp-caselist-file) now
accept both trie- and list-style inputs.

Format is detected by looking at the first character; trie always starts
with '{', list-style format is assumed otherwise.

de::CommandLine default value behavior has been changed. Options that
take values (i.e. not --flags) don't have value set, unless default
value is provided when registering options. Calling getOption() on
command line option whose value is not provided is now an error.
hasOption() should be used first to check if a value was provided at
all.

Test case list parsing is now covered by tests in the internal module.

Bug: 17958588
Change-Id: If6063165ff59cbd8e538d6f829c583541e104fd1

9 years agoam 48cf147d: am 7c800c27: Remove highp vec4 dot case from mustpass by request from IHV
Pyry Haulos [Fri, 31 Oct 2014 00:24:49 +0000 (00:24 +0000)]
am 48cf147d: am 7c800c27: Remove highp vec4 dot case from mustpass by request from IHV

* commit '48cf147dffde037f10f9bba10bc61ab61bea2807':
  Remove highp vec4 dot case from mustpass by request from IHV

9 years agoam 7c800c27: Remove highp vec4 dot case from mustpass by request from IHV
Pyry Haulos [Fri, 31 Oct 2014 00:14:16 +0000 (00:14 +0000)]
am 7c800c27: Remove highp vec4 dot case from mustpass by request from IHV

* commit '7c800c27c2431a50c60ef93c577ec1971bf48899':
  Remove highp vec4 dot case from mustpass by request from IHV

9 years agoMerge "First iteration of new release script"
Pyry Haulos [Thu, 30 Oct 2014 18:09:34 +0000 (18:09 +0000)]
Merge "First iteration of new release script"

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 agoam 46b73d13: am 7665e4ff: Workaround for GCC internal compiler error.
Jarkko Pöyry [Wed, 29 Oct 2014 23:13:11 +0000 (23:13 +0000)]
am 46b73d13: am 7665e4ff: Workaround for GCC internal compiler error.

* commit '46b73d138528013b0d64e3e04a39f4985f37ad49':
  Workaround for GCC internal compiler error.

9 years agoam 7665e4ff: Workaround for GCC internal compiler error.
Jarkko Pöyry [Wed, 29 Oct 2014 23:08:22 +0000 (23:08 +0000)]
am 7665e4ff: Workaround for GCC internal compiler error.

* commit '7665e4ff5452f9fc261434f98484728a233ef452':
  Workaround for GCC internal compiler error.

9 years agoWorkaround for GCC internal compiler error.
Jarkko Pöyry [Wed, 29 Oct 2014 22:36:04 +0000 (15:36 -0700)]
Workaround for GCC internal compiler error.

GCC 4.8.0 generates internal compiler error (assign_by_spills) in
RandomArrayGenerator::createQuads() when compiled with -march=prescott.
As a workaround for the error, disable inlining of
alignmentSafeAssignment() when compiling for x86 using the affected GCC
version.

Bug: 18171557
Bug: 18174291

Change-Id: I3c7120ab304941d943515f0e2713513779253380

9 years agoFirst iteration of new release script
Pyry Haulos [Wed, 29 Oct 2014 20:01:55 +0000 (13:01 -0700)]
First iteration of new release script

This change restores release script from the grave and adapts it to the
new environment. Releases are now defined by a simple configuration
(source-only, bin-only, or both) and unique name. Android APK and linux64
utility binaries are currently built but not tested.

Additionally, deprecated license checks have been removed from qpInfo and
tcuApp.

Change-Id: If5073f65e7a91ec60fa7d903c9e9cfd196075944

9 years agoAdd script for fetching third-party sources
Pyry Haulos [Wed, 29 Oct 2014 18:43:26 +0000 (11:43 -0700)]
Add script for fetching third-party sources

This change adds external/fetch_sources.py that will initialize libpng
and zlib source directories by fetching and extracting source packages.

The fetched packages are always verified by doing a SHA256 comparison to
avoid corrupted or malicious downloads.

Change-Id: I0e32b411ff0e3691ab8fa33e0ed30259faee48c8

9 years agoMerge "Fixes to EGL negative api tests."
Mika Isojärvi [Wed, 29 Oct 2014 09:43:56 +0000 (09:43 +0000)]
Merge "Fixes to EGL negative api tests."

9 years agoMerge "Fix EGL_MIPMAP_LEVEL query checks."
Mika Isojärvi [Wed, 29 Oct 2014 09:43:46 +0000 (09:43 +0000)]
Merge "Fix EGL_MIPMAP_LEVEL query checks."

9 years agoMerge "Fix EGL_CONTEXT_CLIENT_VERSION check."
Mika Isojärvi [Wed, 29 Oct 2014 09:43:33 +0000 (09:43 +0000)]
Merge "Fix EGL_CONTEXT_CLIENT_VERSION check."

9 years agoMerge "Do not override redirect by default (X11)."
Pyry Haulos [Wed, 29 Oct 2014 01:33:09 +0000 (01:33 +0000)]
Merge "Do not override redirect by default (X11)."

9 years agoMerge ".gitignore updates"
Pyry Haulos [Wed, 29 Oct 2014 01:33:03 +0000 (01:33 +0000)]
Merge ".gitignore updates"

9 years agoMerge "Make r10c toolchain compile flags more Android-ish"
Pyry Haulos [Wed, 29 Oct 2014 01:32:57 +0000 (01:32 +0000)]
Merge "Make r10c toolchain compile flags more Android-ish"

9 years agoDo not override redirect by default (X11).
Pyry Haulos [Wed, 29 Oct 2014 00:02:39 +0000 (17:02 -0700)]
Do not override redirect by default (X11).

If X11 window redirect is enabled, window size can't be guaranteed
and it is up to the window manager to decide whether to honor sizing
requests. However, overriding that causes window to appear as an
overlay, which causes other issues, so this is disabled by default.

Change-Id: Ifec73c5f14058ff28609b6e1d3710e9b5b6a8e54

9 years ago.gitignore updates
Pyry Haulos [Tue, 28 Oct 2014 23:52:42 +0000 (16:52 -0700)]
.gitignore updates

 * android/ - native code builds are now under 'native', not 'build'.

 * / - Add *.user files (for example CMakeLists.txt.user used by Qt
Creator).

Change-Id: I67ada8033ba5a53d031807a85508d58ea895cb50

9 years agoMake r10c toolchain compile flags more Android-ish
Pyry Haulos [Tue, 28 Oct 2014 23:50:11 +0000 (16:50 -0700)]
Make r10c toolchain compile flags more Android-ish

 * Use -mandroid when building C/C++.

 * Enable exceptions and RTTI explicitly as -mandroid implies -fno-rtti
and -fno-exceptions.

 * Remove redundant -DANDROID and -D__ANDROID__ defines.

Change-Id: I6c6c548e5e0082f369efcd1970d082ec73d67732

9 years agoEndianness fixes to bilinear & fuzzy image compares
Pyry Haulos [Tue, 28 Oct 2014 23:07:42 +0000 (16:07 -0700)]
Endianness fixes to bilinear & fuzzy image compares

Change-Id: I1f5560a60ed85ef4b4c6fa2a5417649eeb7a4c7f

9 years agoam 9e7786ab: Merge "Update test spec." into lmp-dev
Jarkko Pöyry [Tue, 28 Oct 2014 08:55:51 +0000 (08:55 +0000)]
am 9e7786ab: Merge "Update test spec." into lmp-dev

* commit '9e7786ab5718002157b665144a2569ecc10aa2e9':
  Update test spec.

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 "Android APK build with parametrized build root dir"
Kalle Raita [Mon, 27 Oct 2014 20:05:15 +0000 (20:05 +0000)]
Merge "Android APK build with parametrized build root dir"

9 years agoam 70309ee7: Merge "Use invalid sample count in renderbuffer_storage_multisample...
Jarkko Pöyry [Sat, 25 Oct 2014 03:43:11 +0000 (03:43 +0000)]
am 70309ee7: Merge "Use invalid sample count in renderbuffer_storage_multisample negative case." into lmp-dev

* commit '70309ee703729c83e3f90aa976d2eb54923d0915':
  Use invalid sample count in renderbuffer_storage_multisample negative case.

9 years agoam becf9ffd: Merge "Fix early fragment test tests on default fb without depth." into...
Jarkko Pöyry [Sat, 25 Oct 2014 03:43:10 +0000 (03:43 +0000)]
am becf9ffd: Merge "Fix early fragment test tests on default fb without depth." into lmp-dev

* commit 'becf9ffdd185d4459765a52666ff8540b2bae385':
  Fix early fragment test tests on default fb without depth.

9 years agoam 086095fc: Merge "Fix framebuffer completeness tests with sRGB targets." into lmp-dev
Jarkko Pöyry [Sat, 25 Oct 2014 03:43:08 +0000 (03:43 +0000)]
am 086095fc: Merge "Fix framebuffer completeness tests with sRGB targets." into lmp-dev

* commit '086095fc05c78131162074c189bb711c4a55129a':
  Fix framebuffer completeness tests with sRGB targets.

9 years agoam 5b221d8f: Merge "Reduce and verify fragment output PIQ test draw buffer usage...
Jarkko Pöyry [Sat, 25 Oct 2014 02:37:27 +0000 (02:37 +0000)]
am 5b221d8f: Merge "Reduce and verify fragment output PIQ test draw buffer usage." into lmp-dev

* commit '5b221d8faf61c8b74a527df408a78a15fa733d44':
  Reduce and verify fragment output PIQ test draw buffer usage.

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 agoAndroid APK build with parametrized build root dir
Kalle Raita [Fri, 24 Oct 2014 18:16:03 +0000 (11:16 -0700)]
Android APK build with parametrized build root dir

Change-Id: Ibb0fab0c6d34856d9b4a710cef69a38835d092ce

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 agoam 4adc1515: Fix JNI usage issues in Android TestLogParser
Pyry Haulos [Fri, 24 Oct 2014 21:10:22 +0000 (21:10 +0000)]
am 4adc1515: Fix JNI usage issues in Android TestLogParser

* commit '4adc1515f867b26c19c2f7498e9de93a230a234d':
  Fix JNI usage issues in Android TestLogParser

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 agoFixes to EGL negative api tests.
Mika Isojärvi [Fri, 24 Oct 2014 08:42:52 +0000 (11:42 +0300)]
Fixes to EGL negative api tests.

Change-Id: I6d61f7aaa06f26e20a64e5c1bdceac7a56074232

9 years agoFix EGL_MIPMAP_LEVEL query checks.
Mika Isojärvi [Fri, 24 Oct 2014 08:32:35 +0000 (11:32 +0300)]
Fix EGL_MIPMAP_LEVEL query checks.

Check that EGL_MIPMAP_LEVEL query returns 0 for pbuffers and
doesn't modify return value pointer for other surfaces.

Change-Id: Iff769c93306821fa16889ba3298f28f061a4bfeb

9 years agoFix EGL_CONTEXT_CLIENT_VERSION check.
Mika Isojärvi [Fri, 24 Oct 2014 07:58:07 +0000 (10:58 +0300)]
Fix EGL_CONTEXT_CLIENT_VERSION check.

Check that EGL_CONTEXT_CLIENT_VERSION is version that supports version
used when creating context instead of requiring it to be exactly same.

Change-Id: I072a5796d92450b29e82655ea840c3b67ec8eea9

9 years agoam fd1df7ea: Remove invalid assert from RenderActivity::setThread()
Pyry Haulos [Thu, 23 Oct 2014 22:39:22 +0000 (22:39 +0000)]
am fd1df7ea: Remove invalid assert from RenderActivity::setThread()

* commit 'fd1df7eaea78d2c9c6bdb3da51d5f1255c479694':
  Remove invalid assert from RenderActivity::setThread()

9 years agoam f8540a99: Add blend barrier after first opaque quad
Pyry Haulos [Thu, 23 Oct 2014 22:35:24 +0000 (22:35 +0000)]
am f8540a99: Add blend barrier after first opaque quad

* commit 'f8540a99d85b322eb826249746f08111f0137fa8':
  Add blend barrier after first opaque quad

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 agoam decd2aee: Merge "Workaround for libhoudini.so sin&cos bug" into lmp-dev
Pyry Haulos [Thu, 23 Oct 2014 20:28:23 +0000 (20:28 +0000)]
am decd2aee: Merge "Workaround for libhoudini.so sin&cos bug" into lmp-dev

* commit 'decd2aeef7a35e7bfaba2cb586fbc6655029dfea':
  Workaround for libhoudini.so sin&cos bug

9 years agoam 2add8760: Remove cases that are still flaky on Nexus devices from mustpass
Pyry Haulos [Thu, 23 Oct 2014 20:28:22 +0000 (20:28 +0000)]
am 2add8760: Remove cases that are still flaky on Nexus devices from mustpass

* commit '2add876092dfe288b82ea69f63eacbcd76a6d668':
  Remove cases that are still flaky on Nexus devices from mustpass

9 years agoam b69b028a: Mustpass update 2014.2.9
Pyry Haulos [Wed, 22 Oct 2014 22:40:40 +0000 (22:40 +0000)]
am b69b028a: Mustpass update 2014.2.9

* commit 'b69b028a90e2fcb214556412392fdc73327a0e4b':
  Mustpass update 2014.2.9

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 agoLaunchControl linux script for GCC and Clang builds
Kalle Raita [Mon, 20 Oct 2014 19:22:44 +0000 (12:22 -0700)]
LaunchControl linux script for GCC and Clang builds

Change-Id: I00789925ddf81af02e5f3d8d3504048f7417ee99

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 agoMerge "Rename libtestercore.so to libdeqp.so"
Pyry Haulos [Tue, 21 Oct 2014 16:33:34 +0000 (16:33 +0000)]
Merge "Rename libtestercore.so to libdeqp.so"

9 years agoRename libtestercore.so to libdeqp.so
Pyry Haulos [Mon, 20 Oct 2014 20:01:20 +0000 (13:01 -0700)]
Rename libtestercore.so to libdeqp.so

Since dEQP is now being built as part of the Android CTS as well,
the name libtestercore.so isn't very descriptive any more. This change
renames the library to libdeqp.so.

This change also drops some dead code related to API level < 9 support.

Change-Id: I03b60fd6d9cc6252651f25610e7c72bbc450670c

9 years agoAdd --deqp-screen-rotation=unspecified cmdline flag.
Pyry Haulos [Mon, 20 Oct 2014 20:39:08 +0000 (13:39 -0700)]
Add --deqp-screen-rotation=unspecified cmdline flag.

On Android dEQP always sets screen orientation to some known value,
which prevents failures / test run aborts due to screen configuration
changes. This is almost always desired but in some situations user may
want to avoid that. This change adds 'unspecified' value, which means
that the application doesn't request any specific orientation and
the system can freely choose it and even change it during test
execution.

Default value for --deqp-screen-rotation remains '0'.

Change-Id: I3e95213cc12a995ec43912c86a0ab9a01c456920

9 years agoMerge "Fix typo (GCC->CLANG) in general Clang compiler defs."
Kalle Raita [Mon, 20 Oct 2014 19:32:02 +0000 (19:32 +0000)]
Merge "Fix typo (GCC->CLANG) in general Clang compiler defs."

9 years agoFix typo (GCC->CLANG) in general Clang compiler defs.
Kalle Raita [Mon, 20 Oct 2014 19:17:21 +0000 (12:17 -0700)]
Fix typo (GCC->CLANG) in general Clang compiler defs.

Change-Id: I440f37723987c1dd85e7482f0d32ac157565e25d

9 years agoImprovements to standalone Android build scripts
Pyry Haulos [Mon, 20 Oct 2014 18:09:56 +0000 (11:09 -0700)]
Improvements to standalone Android build scripts

 * If multiple connected devices are detected, install.py prompts to
select one by default if no additional arguments are given.

 * Add -a option to install.py that installs package to all connected
devices.

 * Use ninja on Linux / OS X, if installed, for faster builds (apt-get
install ninja-build to get the awesomeness).

 * If make is used, pass in -j{CPUs} based on number of cores detected.

 * Prefer adb in path to avoid adb version mismatch in certain
environments, for example when doing Android OS builds.

 * Clean up libs/ dir to avoid stale versions for archs that are not
being built.

 * Do not unnecessarily force re-linking of libtestercore.so.

 * Optimize asset cleanup by performing that only for the build that is
used for the assets.

 * Auto-detect ANDROID_NDK_HOST_OS.

Change-Id: I44e1b0acb5e6bcafeff7df30147002f216a76deb

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