platform/upstream/VK-GL-CTS.git
9 years agoMerge "Generate GL wrappers from latest api registry xml."
Mika Isojärvi [Mon, 26 Jan 2015 18:34:36 +0000 (18:34 +0000)]
Merge "Generate GL wrappers from latest api registry xml."

9 years agoFix C++-style comments in C code
Pyry Haulos [Mon, 26 Jan 2015 17:14:43 +0000 (09:14 -0800)]
Fix C++-style comments in C code

Change-Id: I68667991f558edb0840dcf1d7e2346b742b744e6

9 years agoMerge "Add ipv6 support to deSocket"
Pyry Haulos [Mon, 26 Jan 2015 17:08:58 +0000 (17:08 +0000)]
Merge "Add ipv6 support to deSocket"

9 years agoam bdef91d6: (-s ours) am 654e1ec3: am 1fdbddf3: DO NOT MERGE: Add cube gather tests...
Pyry Haulos [Sat, 24 Jan 2015 16:57:34 +0000 (16:57 +0000)]
am bdef91d6: (-s ours) am 654e1ec3: am 1fdbddf3: DO NOT MERGE: Add cube gather tests that avoid corners; remove D32F from mustpass

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

9 years agoam 654e1ec3: am 1fdbddf3: DO NOT MERGE: Add cube gather tests that avoid corners...
Pyry Haulos [Fri, 23 Jan 2015 23:08:36 +0000 (23:08 +0000)]
am 654e1ec3: am 1fdbddf3: DO NOT MERGE: Add cube gather tests that avoid corners; remove D32F from mustpass

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

9 years agoGenerate GL wrappers from latest api registry xml.
Mika Isojärvi [Fri, 23 Jan 2015 23:01:53 +0000 (15:01 -0800)]
Generate GL wrappers from latest api registry xml.

Updated GL wrapper generation script to use latest version of of xml
api registry. Revision r29570.

Change-Id: I5d82bb80838a5ef24937d06fcaf607b7e54c6126

9 years agoam 1fdbddf3: DO NOT MERGE: Add cube gather tests that avoid corners; remove D32F...
Pyry Haulos [Fri, 23 Jan 2015 22:59:03 +0000 (22:59 +0000)]
am 1fdbddf3: 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

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 agoMerge "Add DeqpPlatformCapabilityQueryInstrumentation."
Jarkko Pöyry [Fri, 23 Jan 2015 01:07:49 +0000 (01:07 +0000)]
Merge "Add DeqpPlatformCapabilityQueryInstrumentation."

9 years agoAdd ipv6 support to deSocket
Pyry Haulos [Wed, 21 Jan 2015 20:34:46 +0000 (12:34 -0800)]
Add ipv6 support to deSocket

This change adds IPv6 support to deSocket. The change was inspired by a
MSVC warning about use of a deprecated API, for which the right fix was
to use a version that gave IPv6 for almost free.

Change-Id: I53d852db167159f84a7d0cd0ce4ca67d217dcdd0

9 years agoam ef075459: am 914bfa5f: am b9df7b5d: Allow geometry variation in 3D texture filteri...
Pyry Haulos [Thu, 22 Jan 2015 20:06:30 +0000 (20:06 +0000)]
am ef075459: am 914bfa5f: am b9df7b5d: Allow geometry variation in 3D texture filtering tests

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

9 years agoam 914bfa5f: am b9df7b5d: Allow geometry variation in 3D texture filtering tests
Pyry Haulos [Thu, 22 Jan 2015 19:59:11 +0000 (19:59 +0000)]
am 914bfa5f: am b9df7b5d: Allow geometry variation in 3D texture filtering tests

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

9 years agoAdd DeqpPlatformCapabilityQueryInstrumentation.
Jarkko Pöyry [Fri, 9 Jan 2015 22:33:57 +0000 (14:33 -0800)]
Add DeqpPlatformCapabilityQueryInstrumentation.

- Add Instrumentation for querying if the described render target is supported.
- Move chooseConfig() from egluGLContextFactory to egluGLUtil

Change-Id: I5f55d0d7c2c1f6c70de9333e42298deb32f19953

9 years agoMerge "Support platform attributes in eglu::NativeDisplay"
Pyry Haulos [Thu, 22 Jan 2015 17:48:55 +0000 (17:48 +0000)]
Merge "Support platform attributes in eglu::NativeDisplay"

9 years agoam b9df7b5d: Allow geometry variation in 3D texture filtering tests
Pyry Haulos [Thu, 22 Jan 2015 17:16:44 +0000 (17:16 +0000)]
am b9df7b5d: Allow geometry variation in 3D texture filtering tests

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

9 years agoSupport platform attributes in eglu::NativeDisplay
Pyry Haulos [Wed, 21 Jan 2015 22:54:52 +0000 (14:54 -0800)]
Support platform attributes in eglu::NativeDisplay

This change adds getPlatformAttributes() to eglu::NativeDisplay. Certain
platforms may need to pass extra attributes to eglGetPlatformDisplay()
and can now implement this function to achieve that.

Change-Id: I98be8145634c458d36fff7d2474300ac7a8917b2

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 agoReturn info bundle on DeqpInstrumentation exception.
Jarkko Pöyry [Fri, 9 Jan 2015 20:08:20 +0000 (12:08 -0800)]
Return info bundle on DeqpInstrumentation exception.

Change-Id: I1c6ddc85af2d3e832d7dfa7698dd38cceda62cf3

9 years agoAdd support for dynamic loading of EGL entry points
Pyry Haulos [Fri, 19 Dec 2014 23:45:39 +0000 (15:45 -0800)]
Add support for dynamic loading of EGL entry points

This change adds eglu::Library abstraction for accessing any and all EGL
entry points. All code has been changed to use that interface instead of
calling EGL functions directly.

Having code use abstract interface instead of direct entry points allows
always builing EGL code paths and dynamically loading them if supported
by the environment. In the future analysis and logging facilities could
be layered on that interface.

This change required lots of small changes across all EGL code. As part
of that refactoring work tcu::egl utilities were finally put to rest for
good. All uses of glw.h were also removed from the EGL module.

Bug: 18269587
Change-Id: Ic81e24b7eecb9813d00fba5c65144d4f59a550e8

9 years agoMerge "Add class to build seeds from variables."
Mika Isojärvi [Thu, 15 Jan 2015 00:03:12 +0000 (00:03 +0000)]
Merge "Add class to build seeds from variables."

9 years agoAdd class to build seeds from variables.
Mika Isojärvi [Fri, 9 Jan 2015 19:01:57 +0000 (11:01 -0800)]
Add class to build seeds from variables.

Add simple stream like seed builder utility class for building seeds
from data types. This can be used to generate a seed for the rng from
the parameters of the test case instead of using name of the test case.

Change-Id: Ib276dc54a55c8a38878a220b17e3f9a2750cb774

9 years agoMerge "Remove error suppression from DebugTest expectMessage()."
Jarkko Pöyry [Tue, 13 Jan 2015 23:00:23 +0000 (23:00 +0000)]
Merge "Remove error suppression from DebugTest expectMessage()."

9 years agoMerge "Fix delete_active.transform_feedback case."
Jarkko Pöyry [Tue, 13 Jan 2015 23:00:00 +0000 (23:00 +0000)]
Merge "Fix delete_active.transform_feedback case."

9 years agoRemove error suppression from DebugTest expectMessage().
Jarkko Pöyry [Tue, 13 Jan 2015 02:11:08 +0000 (18:11 -0800)]
Remove error suppression from DebugTest expectMessage().

- Remove error suppression from various expectMessage() functions,
  state reset will do that automatically.
- Remove access to expectMessage() from Core negative test and allow
  access only from Debug tests. This will ensure that only debug tests
  can use debug functionality.

Bug: 18915042
Change-Id: I1d8f03feca0c61046d099b57912b2f0ea3e8d2e8

9 years agoFix delete_active.transform_feedback case.
Jarkko Pöyry [Mon, 12 Jan 2015 22:52:50 +0000 (14:52 -0800)]
Fix delete_active.transform_feedback case.

Set buffer binding point and set up active program that
has captured outputs before calling glBeginTransformFeedback.

Bug: 18915042
Change-Id: I6e5e7626a4752744445affa94c2661854603ea79

9 years agoFix undefined behavior in record_variable_selection test.
Jarkko Pöyry [Mon, 12 Jan 2015 21:52:22 +0000 (13:52 -0800)]
Fix undefined behavior in record_variable_selection test.

Tessellation shader expects patch size >= 3. Increase shader input
patch size to 3 from 1.

Bug: 18917835
Change-Id: I0eeadfca3690a1a1697aff538699d617b4bee93e

9 years agoMerge "Remove tcu::Surface::getSubAccess()"
Pyry Haulos [Fri, 9 Jan 2015 19:18:12 +0000 (19:18 +0000)]
Merge "Remove tcu::Surface::getSubAccess()"

9 years agoUpdate libpng URL in external/fetch_sources.py
Pyry Haulos [Fri, 9 Jan 2015 19:01:17 +0000 (11:01 -0800)]
Update libpng URL in external/fetch_sources.py

libpng entry was pointing to a non-existent file, and old version with
integer overflow vulnerability.

Change-Id: I1d6baaab6d6e44e581b6ceb70bcfc315a78988a8

9 years agoMerge "Expose RGB999E5 packing function from tcu::Texture."
Mika Isojärvi [Fri, 9 Jan 2015 18:37:55 +0000 (18:37 +0000)]
Merge "Expose RGB999E5 packing function from tcu::Texture."

9 years agoExpose RGB999E5 packing function from tcu::Texture.
Mika Isojärvi [Fri, 9 Jan 2015 01:48:01 +0000 (17:48 -0800)]
Expose RGB999E5 packing function from tcu::Texture.

Make packRGB999E5 function available outside of tcuTexture.cpp.

Change-Id: Id714766d9d7269875c8afe8842976677e2935f23

9 years agoMerge "Add GL_EXT_copy_image support to GL wrappers."
Mika Isojärvi [Fri, 9 Jan 2015 00:23:58 +0000 (00:23 +0000)]
Merge "Add GL_EXT_copy_image support to GL wrappers."

9 years agoMerge "Add function to map GL compressed tex format to tcu."
Mika Isojärvi [Fri, 9 Jan 2015 00:15:07 +0000 (00:15 +0000)]
Merge "Add function to map GL compressed tex format to tcu."

9 years agoAdd GL_EXT_copy_image support to GL wrappers.
Mika Isojärvi [Fri, 9 Jan 2015 00:11:32 +0000 (16:11 -0800)]
Add GL_EXT_copy_image support to GL wrappers.

Add GL_EXT_copy_image to list of extensions that should be supported by
OpenGL wrapper.

Change-Id: I554b1305f998be95ebafbbc58926344d07c0c243

9 years agoMerge "Add default texture decompression parameter."
Mika Isojärvi [Fri, 9 Jan 2015 00:08:45 +0000 (00:08 +0000)]
Merge "Add default texture decompression parameter."

9 years agoAdd default texture decompression parameter.
Mika Isojärvi [Thu, 8 Jan 2015 23:58:49 +0000 (15:58 -0800)]
Add default texture decompression parameter.

Change-Id: Id35d228b382d4619b914049cb50c6949914255a0

9 years agoAdd function to map GL compressed tex format to tcu.
Mika Isojärvi [Thu, 8 Jan 2015 23:42:40 +0000 (15:42 -0800)]
Add function to map GL compressed tex format to tcu.

Add function that can map OpenGL compressed texture formats to tcu
compressed texture format.

Change-Id: I0867e1e0445821b0a956e695bedf9acb6667da42

9 years agoExpose function for mapping GL cubemap face to tcu::CubeFace
Mika Isojärvi [Thu, 8 Jan 2015 23:20:07 +0000 (15:20 -0800)]
Expose function for mapping GL cubemap face to tcu::CubeFace

Expose and rename function to map GL cubemap face target to tcu::CubeFace.

Change-Id: Ie2a3220c496255dfde18968128edaf20c90d22a1

9 years agoRemove tcu::Surface::getSubAccess()
Pyry Haulos [Thu, 8 Jan 2015 21:30:57 +0000 (13:30 -0800)]
Remove tcu::Surface::getSubAccess()

Functionality is already provided by tcu::getSubregion(access).

Bug: 18862074
Change-Id: I5160c31b2fba168dd1ce944ef8389a86f4a8bbba

9 years agoDo not touch GL error state in postIterate()
Pyry Haulos [Thu, 8 Jan 2015 21:16:54 +0000 (13:16 -0800)]
Do not touch GL error state in postIterate()

EGL implementation of RenderContext::postIterate() calls glFlush() when
rendering into a pixmap or pbuffer. This change removes erroneus
glGetError() call, as test case may want to carry error state over
iterate() calls.

Bug: 18915339
Change-Id: Ic8f4a1df46f74e8375e4f346daa3d2288f9ee39a

9 years agoam ed1f0c93: (-s ours) am 45fe81cf: am 3cc483b1: DO NOT MERGE: Remove broken record_v...
Jarkko Pöyry [Thu, 8 Jan 2015 20:40:21 +0000 (20:40 +0000)]
am ed1f0c93: (-s ours) am 45fe81cf: am 3cc483b1: DO NOT MERGE: Remove broken record_variable_selection test from L must-pass.

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

9 years agoam 45fe81cf: am 3cc483b1: DO NOT MERGE: Remove broken record_variable_selection test...
Jarkko Pöyry [Thu, 8 Jan 2015 20:35:41 +0000 (20:35 +0000)]
am 45fe81cf: am 3cc483b1: DO NOT MERGE: Remove broken record_variable_selection test from L must-pass.

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

9 years agoam 3cc483b1: DO NOT MERGE: Remove broken record_variable_selection test from L must...
Jarkko Pöyry [Thu, 8 Jan 2015 20:21:06 +0000 (20:21 +0000)]
am 3cc483b1: 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 agoam aa771b2c: am 92582aed: am e641e248: Use gcc for mips target.
Chih-Hung Hsieh [Thu, 8 Jan 2015 02:08:32 +0000 (02:08 +0000)]
am aa771b2c: am 92582aed: am e641e248: Use gcc for mips target.

* commit 'aa771b2c3bb9bdceb3429fbd5ec7f4b50c591f02':
  Use gcc for mips target.

9 years agoam 92582aed: am e641e248: Use gcc for mips target.
Chih-Hung Hsieh [Thu, 8 Jan 2015 02:02:15 +0000 (02:02 +0000)]
am 92582aed: am e641e248: Use gcc for mips target.

* commit '92582aedc8542de989b289f14ba5d5635889a125':
  Use gcc for mips target.

9 years agoam e641e248: Use gcc for mips target.
Chih-Hung Hsieh [Thu, 8 Jan 2015 01:50:22 +0000 (01:50 +0000)]
am e641e248: Use gcc for mips target.

* commit 'e641e248d934c26847e48fc0d7854dcb18802f19':
  Use gcc for mips target.

9 years agoMerge "Add script for generating test case list files"
Pyry Haulos [Wed, 7 Jan 2015 23:31:35 +0000 (23:31 +0000)]
Merge "Add script for generating test case list files"

9 years agoUse gcc for mips target.
Chih-Hung Hsieh [Wed, 7 Jan 2015 23:29:24 +0000 (15:29 -0800)]
Use gcc for mips target.

Will enable clang mips compilation when the real error is fixed.

BUG: 18934246
Change-Id: If4474e1c6e4af794e4d49cbdec34bd2da8e70fb2

9 years agoFix invalid zero-sized array declaration
Pyry Haulos [Wed, 7 Jan 2015 21:22:32 +0000 (13:22 -0800)]
Fix invalid zero-sized array declaration

When compiling dEQP EGL support and dynamic GL function loading,
eglu::createStaticESLibrary() ended up having an empty array
declaration, which is not allowed in C++.

Change-Id: Ifb40aea5fcdf9001420c575cf677789427411100

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 agoAdd script for generating test case list files
Pyry Haulos [Wed, 7 Jan 2015 19:50:55 +0000 (11:50 -0800)]
Add script for generating test case list files

This script builds dEQP to a temporary location, generates test case
lists in XML form, and copies them to a destination directory. Useful
with Cherry for example.

Change-Id: I00c7543268e8bfec7c31f4aaaba060c6c4802995

9 years agoam 88863180: am b7dc3b73: Remove broken record_variable_selection test from MR1 must...
Jarkko Pöyry [Tue, 6 Jan 2015 21:02:21 +0000 (21:02 +0000)]
am 88863180: am b7dc3b73: Remove broken record_variable_selection test from MR1 must-pass.

* commit '8886318090daae0f81c6c84d328755d0839b7281':
  Remove broken record_variable_selection test from MR1 must-pass.

9 years agoam b7dc3b73: Remove broken record_variable_selection test from MR1 must-pass.
Jarkko Pöyry [Tue, 6 Jan 2015 20:56:35 +0000 (20:56 +0000)]
am b7dc3b73: Remove broken record_variable_selection test from MR1 must-pass.

* commit 'b7dc3b735541fbe6bca15b6d69afb6eaf34f7fc9':
  Remove broken record_variable_selection test from MR1 must-pass.

9 years agoRemove broken record_variable_selection test from MR1 must-pass.
Jarkko Pöyry [Tue, 6 Jan 2015 20:41:02 +0000 (12:41 -0800)]
Remove broken record_variable_selection test from MR1 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: Ic1a3dd56b98e4ed0d71292f6727a6fe5d0ce291b

9 years agoam dd7e6963: am 7f94bf05: Remove failing random ubo test from must pass list.
Mika Isojärvi [Tue, 6 Jan 2015 02:24:52 +0000 (02:24 +0000)]
am dd7e6963: am 7f94bf05: Remove failing random ubo test from must pass list.

* commit 'dd7e6963b818133424bdfb527bde21e50e755a10':
  Remove failing random ubo test from must pass list.

9 years agoam 7f94bf05: Remove failing random ubo test from must pass list.
Mika Isojärvi [Tue, 6 Jan 2015 02:20:38 +0000 (02:20 +0000)]
am 7f94bf05: Remove failing random ubo test from must pass list.

* commit '7f94bf05ab808862ba69c48b4966db456539f5d6':
  Remove failing random ubo test from must pass list.

9 years agoRemove failing random ubo test from must pass list.
Mika Isojärvi [Tue, 6 Jan 2015 00:00:02 +0000 (16:00 -0800)]
Remove failing random ubo test from must pass list.

Remove uniform buffer object test, that was killed by oomkiller from
must pass list.

Bug: 18707566
Change-Id: I16e09a160fe18f2c7180a293438052fe658e4ec2

9 years agoAdd ANDROID_extension_pack_es31a tests.
Jarkko Pöyry [Tue, 16 Dec 2014 19:33:56 +0000 (11:33 -0800)]
Add ANDROID_extension_pack_es31a tests.

- Check extension dependencies.
- Add implementation limit checks.
- Basic shader tests with AEP extension directive.
- Add 'expect build_successful' mode to ShaderLibrary. This mode checks
  only that the shaders compile and the programs link but does not
  attempt to execute the shader program. This is useful for example if
  test only wants to check that a certain sampler type is available.

Bug: 18337603
Change-Id: Ib9715074c6aaccb40c0070df211236d95c7ef66a

9 years agoMerge "Add EXT_primitive_bounding_box tests."
Jarkko Pöyry [Mon, 5 Jan 2015 23:00:00 +0000 (23:00 +0000)]
Merge "Add EXT_primitive_bounding_box tests."

9 years agoAdd EXT_primitive_bounding_box tests.
Jarkko Pöyry [Mon, 17 Nov 2014 22:21:54 +0000 (14:21 -0800)]
Add EXT_primitive_bounding_box tests.

- Add primitive bounding box state query tests.
- Add primitive bounding box render tests.
- Add primitive bounding box test spec.
- Add primitive_bounding_box to str_util and regen wrappers.
- Add primitive_bounding_box state reset.
- Add pritimive_bounding_box wrapper context no-op implementation.
- Add tcu::Vector::operator-= ()
- Pretty-printing return values of array returning queries.
- Add tessellation patch vertices state reset.

Bug: 18336498
Change-Id: I56f3301fc32bf016e2091163d35dced2afb80c0d

9 years agoam 949be649: am 1029ba1f: Fix srgb_unsigned_byte RBO test regression with NV_sRGB_for...
Jarkko Pöyry [Tue, 30 Dec 2014 18:57:41 +0000 (18:57 +0000)]
am 949be649: am 1029ba1f: Fix srgb_unsigned_byte RBO test regression with NV_sRGB_formats extension.

* commit '949be649c62281818b9e55d6cd3ad8e6bd317ba1':
  Fix srgb_unsigned_byte RBO test regression with NV_sRGB_formats extension.

9 years agoam 1029ba1f: Fix srgb_unsigned_byte RBO test regression with NV_sRGB_formats extension.
Jarkko Pöyry [Tue, 30 Dec 2014 18:52:57 +0000 (18:52 +0000)]
am 1029ba1f: Fix srgb_unsigned_byte RBO test regression with NV_sRGB_formats extension.

* commit '1029ba1f311daab764fa4e54f0c2a57124522ad0':
  Fix srgb_unsigned_byte RBO test regression with NV_sRGB_formats extension.

9 years agoFix srgb_unsigned_byte RBO test regression with NV_sRGB_formats extension.
Jarkko Pöyry [Tue, 30 Dec 2014 03:36:59 +0000 (19:36 -0800)]
Fix srgb_unsigned_byte RBO test regression with NV_sRGB_formats extension.

A bugfix to make unsized SRGB format with UNSIGNED_BYTE type renderable
on texture targets erroneously caused test cases to expect same
renderablity on RBO targets as well. RBOs cannot be created with an
unsized internal formats. This change removes the erroneously added
expectation of renderablity from RBO targets.

Bug: 18755796
Change-Id: I8beb906ebccc1305fa910f18f355121623a1aca1

10 years agoSupport parallel build and install in on-device apk scripts.
Jarkko Pöyry [Fri, 12 Dec 2014 02:22:05 +0000 (18:22 -0800)]
Support parallel build and install in on-device apk scripts.

Add -p flag to build.py to build native libs in parallel. Add -p
flag to install.py to install to multiple devices in parallel.

Change-Id: I042de5eae321e61455d330949c7f07577725ba15

10 years agoMerge "Fix GLES2 negative test issues."
Jarkko Pöyry [Wed, 17 Dec 2014 01:20:14 +0000 (01:20 +0000)]
Merge "Fix GLES2 negative test issues."

10 years agoFix GLES2 negative test issues.
Jarkko Pöyry [Wed, 17 Dec 2014 01:07:56 +0000 (17:07 -0800)]
Fix GLES2 negative test issues.

- Check GL_OES_fbo_render_mipmap extension in framebuffer_texture2d negative
  test.
- Check GL_EXT_draw_buffers in builtin_variable.max_draw_buffers_* tests.
- Fix invalid uniform location check in get_uniformfv negative state test.

Bug: 18620565
Change-Id: I2158a10ca859e3c40219bd324e7a02c0ff10e42b

10 years agoFix GLES2 negative texture api tests.
Jarkko Pöyry [Tue, 16 Dec 2014 22:11:01 +0000 (14:11 -0800)]
Fix GLES2 negative texture api tests.

- Remove broken compressedtexsubimage2d_invalid_format test. Function is not
  required to generate INVALID_ENUM on invalid format. Spec only states that
  format must match the target texture format or INVALID_OPERATION.
- Remove broken generatemipmap_invalid_target_bind test.
- Add npot extension check to generatemipmap_npot_wdt_hgt test.
- Add GL_EXT_texture_compression_s3tc and GL_IMG_texture_compression_pvrtc
  format pretty-printing.

Bug: 18770284
Change-Id: I9c2c8d059b04eb51885062e9f0b78c2254050521

10 years agoam 08b5461b: am 6105d36c: Require renderability of SRGB,UNSIGNED_BYTE from NV_sRGB_fo...
Jarkko Pöyry [Mon, 15 Dec 2014 22:50:57 +0000 (22:50 +0000)]
am 08b5461b: am 6105d36c: Require renderability of SRGB,UNSIGNED_BYTE from NV_sRGB_formats.

* commit '08b5461b39b267b82f0695e4cbed85ba1c0e65c5':
  Require renderability of SRGB,UNSIGNED_BYTE from NV_sRGB_formats.

10 years agoam 6105d36c: Require renderability of SRGB,UNSIGNED_BYTE from NV_sRGB_formats.
Jarkko Pöyry [Mon, 15 Dec 2014 22:46:27 +0000 (22:46 +0000)]
am 6105d36c: Require renderability of SRGB,UNSIGNED_BYTE from NV_sRGB_formats.

* commit '6105d36c20b890fe795a9a412db4bdb0ed6f1198':
  Require renderability of SRGB,UNSIGNED_BYTE from NV_sRGB_formats.

10 years agoRequire renderability of SRGB,UNSIGNED_BYTE from NV_sRGB_formats.
Jarkko Pöyry [Mon, 15 Dec 2014 21:57:18 +0000 (13:57 -0800)]
Require renderability of SRGB,UNSIGNED_BYTE from NV_sRGB_formats.

NV_sRGB_formats extension makes sized format SRGB8 color-renderable but does
not define any unsized format to be color-renderable. Assume unsized SRGB
format with UNSIGNED_BYTE type is implied to be color-renderable.

Bug: 18755796
Change-Id: I7d083aa9a474e1cdd784ded02178ffbad4a79cdb

10 years agoam 45f58e13: am 2d015902: Remove known failures from L-MR1 mustpass
Pyry Haulos [Fri, 12 Dec 2014 20:22:04 +0000 (20:22 +0000)]
am 45f58e13: am 2d015902: Remove known failures from L-MR1 mustpass

* commit '45f58e13cec58e71fd2a6f163d80974f85549e2b':
  Remove known failures from L-MR1 mustpass

10 years agoam 2d015902: Remove known failures from L-MR1 mustpass
Pyry Haulos [Fri, 12 Dec 2014 17:10:04 +0000 (17:10 +0000)]
am 2d015902: Remove known failures from L-MR1 mustpass

* commit '2d015902f818576a1a09f704b1bb9c3bae2a343c':
  Remove known failures from L-MR1 mustpass

10 years agoRemove known failures from L-MR1 mustpass
Pyry Haulos [Thu, 11 Dec 2014 22:26:27 +0000 (14:26 -0800)]
Remove known failures from L-MR1 mustpass

This change removes cases failing due to minor driver issues that won't
be fixed by MR1 release.

Bug: 18707566
Bug: 17665415
Change-Id: If0f3ba19d848ff3c35378cf4ca32a0b1d37c751f

10 years agoam 4924e58e: am 1166935c: Merge "Fix program leak in sglrGLContext CreateProgram...
Jarkko Pöyry [Wed, 10 Dec 2014 21:56:24 +0000 (21:56 +0000)]
am 4924e58e: am 1166935c: Merge "Fix program leak in sglrGLContext CreateProgram on build failure." into lmp-mr1-dev

* commit '4924e58edb9283559302aa1969f2d5823ed0e963':
  Fix program leak in sglrGLContext CreateProgram on build failure.

10 years agoam 78add1e6: am 664e0500: Fix atomic min and max signed value verification.
Jarkko Pöyry [Wed, 10 Dec 2014 21:56:23 +0000 (21:56 +0000)]
am 78add1e6: am 664e0500: Fix atomic min and max signed value verification.

* commit '78add1e6aeb4dfd79b65f39c1ec4c20c7a687126':
  Fix atomic min and max signed value verification.

10 years agoam 1166935c: Merge "Fix program leak in sglrGLContext CreateProgram on build failure...
Jarkko Pöyry [Wed, 10 Dec 2014 03:33:40 +0000 (03:33 +0000)]
am 1166935c: Merge "Fix program leak in sglrGLContext CreateProgram on build failure." into lmp-mr1-dev

* commit '1166935ce437c0fe729fa8d8c001dbdecdf106da':
  Fix program leak in sglrGLContext CreateProgram on build failure.

10 years agoam 664e0500: Fix atomic min and max signed value verification.
Jarkko Pöyry [Wed, 10 Dec 2014 03:33:40 +0000 (03:33 +0000)]
am 664e0500: Fix atomic min and max signed value verification.

* commit '664e0500b4d1458fae75baf99cc4368442a0f370':
  Fix atomic min and max signed value verification.

10 years agoMerge "Fix program leak in sglrGLContext CreateProgram on build failure." into lmp...
Jarkko Pöyry [Wed, 10 Dec 2014 00:21:01 +0000 (00:21 +0000)]
Merge "Fix program leak in sglrGLContext CreateProgram on build failure." into lmp-mr1-dev

10 years agoFix atomic min and max signed value verification.
Jarkko Pöyry [Wed, 10 Dec 2014 00:03:30 +0000 (16:03 -0800)]
Fix atomic min and max signed value verification.

- Do not expect shared variable to always be 32 bits long.
- Log all failures, not just first.
- Log hexadecimal values on error.

Bug: 18607593
Change-Id: I59c896300734856f33cfead86652157951d6ccb3

10 years agoam ae2269a2: am 47b9d7f9: Merge "Relax shader derivative test verification." into...
Jarkko Pöyry [Tue, 9 Dec 2014 00:56:52 +0000 (00:56 +0000)]
am ae2269a2: am 47b9d7f9: Merge "Relax shader derivative test verification." into lmp-mr1-dev

* commit 'ae2269a28139f7dfa557f6b268ca8d9e99b58eba':
  Relax shader derivative test verification.

10 years agoam f3cfb67d: am a7438f76: Fix bug in handling CRLF line endings in ShaderLibrary
Pyry Haulos [Tue, 9 Dec 2014 00:56:51 +0000 (00:56 +0000)]
am f3cfb67d: am a7438f76: Fix bug in handling CRLF line endings in ShaderLibrary

* commit 'f3cfb67d7ad1999cdfda7ef857359eaba4f05c37':
  Fix bug in handling CRLF line endings in ShaderLibrary

10 years agoFix program leak in sglrGLContext CreateProgram on build failure.
Jarkko Pöyry [Mon, 8 Dec 2014 22:07:33 +0000 (14:07 -0800)]
Fix program leak in sglrGLContext CreateProgram on build failure.

Bug: 18671009
Change-Id: Iae17830bec4e213853d7079f42c01c7b2bf48821

10 years agoam 47b9d7f9: Merge "Relax shader derivative test verification." into lmp-mr1-dev
Jarkko Pöyry [Mon, 8 Dec 2014 19:17:55 +0000 (19:17 +0000)]
am 47b9d7f9: Merge "Relax shader derivative test verification." into lmp-mr1-dev

* commit '47b9d7f998a5bc6fe124ee1c420a1e122b91d90e':
  Relax shader derivative test verification.

10 years agoam a7438f76: Fix bug in handling CRLF line endings in ShaderLibrary
Pyry Haulos [Mon, 8 Dec 2014 19:17:46 +0000 (19:17 +0000)]
am a7438f76: Fix bug in handling CRLF line endings in ShaderLibrary

* commit 'a7438f761960032e1150e6e1b30990062136bc15':
  Fix bug in handling CRLF line endings in ShaderLibrary

10 years agoam d8fdba48: am 13db3557: Remove dEQP workaround for GCC prescott internal compiler...
Jarkko Pöyry [Fri, 5 Dec 2014 21:21:47 +0000 (21:21 +0000)]
am d8fdba48: am 13db3557: Remove dEQP workaround for GCC prescott internal compiler error.

* commit 'd8fdba486c2d2ff46025497ddb763fbf84d5a74d':
  Remove dEQP workaround for GCC prescott internal compiler error.

10 years agoMerge "Relax shader derivative test verification." into lmp-mr1-dev
Jarkko Pöyry [Fri, 5 Dec 2014 21:18:53 +0000 (21:18 +0000)]
Merge "Relax shader derivative test verification." into lmp-mr1-dev

10 years agoam 13db3557: Remove dEQP workaround for GCC prescott internal compiler error.
Jarkko Pöyry [Fri, 5 Dec 2014 20:58:24 +0000 (20:58 +0000)]
am 13db3557: Remove dEQP workaround for GCC prescott internal compiler error.

* commit '13db3557aa1b5809f50cb214e848866f3e80db6c':
  Remove dEQP workaround for GCC prescott internal compiler error.

10 years agoRemove dEQP workaround for GCC prescott internal compiler error.
Jarkko Pöyry [Fri, 5 Dec 2014 20:41:28 +0000 (12:41 -0800)]
Remove dEQP workaround for GCC prescott internal compiler error.

Bug: 18178209
Bug: 18171557
Bug: 18174291
Change-Id: I9bfab4be7ad8336fe1d74fbaa633663e6b3f0c4f

10 years agoRelax shader derivative test verification.
Jarkko Pöyry [Thu, 4 Dec 2014 21:36:25 +0000 (13:36 -0800)]
Relax shader derivative test verification.

- Disable GL_DITHER. Dithering only adds noise to result images.
- Add to dfdx and dfdy cases a flush-to-zero aware verification phase after
  preliminary verification to check if seemingly invalid derivatives could
  be caused by flushing or other relaxations allowed by the spec. This phase
  is NOT added to the fwidth cases since they operate with significantly higher
  thresholds which are likely to hide flushing anyway.

Bug: 18539021
Change-Id: Ic17909d30de25c8bae9d9996ce8df15c9ad5bc5e

10 years agoGenerate EGL framework .inl files from Khronos XML registry
Pyry Haulos [Fri, 21 Nov 2014 22:56:21 +0000 (14:56 -0800)]
Generate EGL framework .inl files from Khronos XML registry

This change adds support for producing auto-generated parts of the EGL
framework from official Khronos XML API description.

The change comes with some refactoring of opengl generator scripts as
common code is moved to scripts/khr_util.

Bug: 18273960
Change-Id: I4da9a1a5fae02854e3de3facfc93b325e3087502

10 years agoAdd GL_EXT_shader_implicit_conversions to ES3.1 wrapper ctx
Pyry Haulos [Wed, 3 Dec 2014 21:06:13 +0000 (13:06 -0800)]
Add GL_EXT_shader_implicit_conversions to ES3.1 wrapper ctx

Underlying GL core context always supports some fashion of implicit
conversions. Thus supporting GL_EXT_shader_implicit_conversions requires
only advertising the extension.

Change-Id: I39be9eab5bb7ab32a4738afe73b374cc059e81b8

10 years agoFix bug in handling CRLF line endings in ShaderLibrary
Pyry Haulos [Tue, 2 Dec 2014 23:29:08 +0000 (15:29 -0800)]
Fix bug in handling CRLF line endings in ShaderLibrary

glsShaderLibrary.cpp failed to strip first empty line from shader strings
if .test file was using CRLF line endings. That was leading to further
issues later on.

Bug: 18595005
Change-Id: Ia783c2bed4c838877c80f7c51bcf3fb021b75c8f

10 years agoam 27cb77a6: am 1bfa102d: Fix incompatible interpolation interfaces in random SSO...
Jarkko Pöyry [Tue, 2 Dec 2014 06:47:10 +0000 (06:47 +0000)]
am 27cb77a6: am 1bfa102d: Fix incompatible interpolation interfaces in random SSO tests.

* commit '27cb77a6a5f40e497359a74f530fb5bb39e4ce67':
  Fix incompatible interpolation interfaces in random SSO tests.

10 years agoam 1bfa102d: Fix incompatible interpolation interfaces in random SSO tests.
Jarkko Pöyry [Tue, 2 Dec 2014 03:50:24 +0000 (03:50 +0000)]
am 1bfa102d: Fix incompatible interpolation interfaces in random SSO tests.

* commit '1bfa102df7c2678fa4ac421fa29780848c2c12f3':
  Fix incompatible interpolation interfaces in random SSO tests.

10 years agoFix incompatible interpolation interfaces in random SSO tests.
Jarkko Pöyry [Mon, 1 Dec 2014 23:42:49 +0000 (15:42 -0800)]
Fix incompatible interpolation interfaces in random SSO tests.

- Fix random cases generating incompatible interfaces.
- Allow random generator to generate varyings with no interpolation
  qualifiers.
- Group interface varyings to the beginning of shader source for
  readability.
- Remove dependecy to glu::INTERPOLATION_LAST in case generation to
  prevent unintended case list changes if glu::Interpolation enum is
  expanded.

Bug: 18542476
Change-Id: I7431d5c41b7222f8fa1484f0352aec918598afd1

10 years agoam 792cada8: am edd21bd9: Merge "Remove sin/cos workaround for libhoudini" into lmp...
Pyry Haulos [Mon, 1 Dec 2014 20:07:58 +0000 (20:07 +0000)]
am 792cada8: am edd21bd9: Merge "Remove sin/cos workaround for libhoudini" into lmp-mr1-dev

* commit '792cada8a638ee3948c86d9cf6eb511ac74bbe46':
  Remove sin/cos workaround for libhoudini

10 years agoam edd21bd9: Merge "Remove sin/cos workaround for libhoudini" into lmp-mr1-dev
Pyry Haulos [Mon, 1 Dec 2014 20:00:51 +0000 (20:00 +0000)]
am edd21bd9: Merge "Remove sin/cos workaround for libhoudini" into lmp-mr1-dev

* commit 'edd21bd9be5debea460b935fb7277aeeed606e78':
  Remove sin/cos workaround for libhoudini

10 years agoam 521baaa3: am 2acb6d46: Fix negative layout_binding cases failing on low implementa...
Jarkko Pöyry [Mon, 1 Dec 2014 20:00:39 +0000 (20:00 +0000)]
am 521baaa3: am 2acb6d46: Fix negative layout_binding cases failing on low implementation limits.

* commit '521baaa30763b29d5e99d8d36e509200dcda4f6b':
  Fix negative layout_binding cases failing on low implementation limits.

10 years agoam 2acb6d46: Fix negative layout_binding cases failing on low implementation limits.
Jarkko Pöyry [Mon, 1 Dec 2014 19:48:27 +0000 (19:48 +0000)]
am 2acb6d46: Fix negative layout_binding cases failing on low implementation limits.

* commit '2acb6d4631d6d7084ebe4fb762003bcde1aae336':
  Fix negative layout_binding cases failing on low implementation limits.

10 years agoMerge "Remove sin/cos workaround for libhoudini" into lmp-mr1-dev
Pyry Haulos [Mon, 1 Dec 2014 19:19:18 +0000 (19:19 +0000)]
Merge "Remove sin/cos workaround for libhoudini" into lmp-mr1-dev

10 years agoFix negative layout_binding cases failing on low implementation limits.
Jarkko Pöyry [Thu, 27 Nov 2014 01:36:05 +0000 (17:36 -0800)]
Fix negative layout_binding cases failing on low implementation limits.

- Fix contradictory case not producing contradictory bindings.
- Fix crash in negative binding case.
- Fix invalid array indexing in ubo array cases.

Bug: 18540352
Change-Id: Id1d273508159eee3604260217ee7ba855b420d50