platform/upstream/VK-GL-CTS.git
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

9 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

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

9 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

9 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

9 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.

9 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.

9 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

9 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

9 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

9 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

9 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.

9 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.

9 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.

9 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.

9 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

9 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

9 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.

9 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

9 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

9 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.

9 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

9 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.

9 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

9 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.

9 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

9 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

9 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

9 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

9 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

9 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.

9 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.

9 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

9 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

9 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

9 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.

9 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.

9 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

9 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

9 years agoAdd Android build arg for java API for LaunchControl integration.
Kalle Raita [Sat, 22 Nov 2014 00:58:07 +0000 (16:58 -0800)]
Add Android build arg for java API for LaunchControl integration.

Change-Id: I8e10eac0d460e490840740f34193639b78202a58

9 years agoRemove sin/cos workaround for libhoudini
Pyry Haulos [Fri, 21 Nov 2014 00:11:50 +0000 (16:11 -0800)]
Remove sin/cos workaround for libhoudini

Bug: 18093947
Change-Id: I20dea41a38245ccc6318275207d7981973714cf9

9 years agoUse git commit id as release identifier in development builds
Pyry Haulos [Thu, 20 Nov 2014 22:29:20 +0000 (14:29 -0800)]
Use git commit id as release identifier in development builds

This change adds support for using latest git commit id as release name
and id. This is done only if:

1) No existing release info file is detected. Release script will
generate that file so actual release builds won't accidentally use
development identifiers.

2) .git dir is detected.

3) Python binary is found, so this change doesn't add mandatory
build-time dependency to python.

Bug: 18445909
Change-Id: I3253b8b05f14e507774bb43331872607ffe6c1d0

9 years agoam 59b1950b: Fix ambiguous mediump int write in shared_var.atomic tests automerge...
Pyry Haulos [Thu, 20 Nov 2014 21:23:50 +0000 (21:23 +0000)]
am 59b1950b: Fix ambiguous mediump int write in shared_var.atomic tests automerge: 75be7fa

* commit '59b1950b68a8b09c5c51ff22267dab958fd22d1a':
  Fix ambiguous mediump int write in shared_var.atomic tests

9 years agoFix ambiguous mediump int write in shared_var.atomic tests
Pyry Haulos [Thu, 20 Nov 2014 21:17:15 +0000 (21:17 +0000)]
Fix ambiguous mediump int write in shared_var.atomic tests
automerge: 75be7fa

* commit '75be7fae1949a801c080530de53bdf123abb517a':
  Fix ambiguous mediump int write in shared_var.atomic tests

9 years agoam 4789df79: Update mustpass XML automerge: 155e5e6
Pyry Haulos [Thu, 20 Nov 2014 21:07:05 +0000 (21:07 +0000)]
am 4789df79: Update mustpass XML automerge: 155e5e6

* commit '4789df790eb9d9bad8121ab01f2a1caaa9ff4e2d':
  Update mustpass XML

9 years agoUpdate mustpass XML
Pyry Haulos [Thu, 20 Nov 2014 21:00:10 +0000 (21:00 +0000)]
Update mustpass XML
automerge: 155e5e6

* commit '155e5e6729cfc1f890d6d0de338d7c1f5a1f0cec':
  Update mustpass XML

9 years agoFix ambiguous mediump int write in shared_var.atomic tests
Pyry Haulos [Wed, 19 Nov 2014 23:26:10 +0000 (15:26 -0800)]
Fix ambiguous mediump int write in shared_var.atomic tests

Shaders in atomic memory functions were assigning mediump integers to
SSBOs and expecting that those wouldn't get sign-extended in the
process.

Bug: 18446009
Change-Id: I10407cdb6558ba18a553df36285edf9d23239331

9 years agoUpdate mustpass XML
Pyry Haulos [Wed, 19 Nov 2014 21:17:03 +0000 (13:17 -0800)]
Update mustpass XML

Bug: 18434194
Change-Id: I7fe9ae6e25d5dc905dace2c8a2c171f80dc7171b

9 years agoam 7d8acc71: am 8c6516bd: Merge "Remove implied \'[0]\' check in XFB array element...
Jarkko Pöyry [Wed, 19 Nov 2014 20:15:06 +0000 (20:15 +0000)]
am 7d8acc71: am 8c6516bd: Merge "Remove implied \'[0]\' check in XFB array element resource name tests." into lmp-mr1-dev

* commit '7d8acc717af76cf4194ae0c7059b8d6b4df775ea':
  Remove implied '[0]' check in XFB array element resource name tests.

9 years agoam 5193012e: am 54edf543: Add cube gather tests that avoid corners; remove D32F from...
Pyry Haulos [Wed, 19 Nov 2014 20:10:34 +0000 (20:10 +0000)]
am 5193012e: am 54edf543: Add cube gather tests that avoid corners; remove D32F from mustpass

* commit '5193012e7d83401cf5b6a698f0efe2ebdba7dc99':
  Add cube gather tests that avoid corners; remove D32F from mustpass

9 years agoam 8c6516bd: Merge "Remove implied \'[0]\' check in XFB array element resource name...
Jarkko Pöyry [Wed, 19 Nov 2014 20:09:41 +0000 (20:09 +0000)]
am 8c6516bd: Merge "Remove implied \'[0]\' check in XFB array element resource name tests." into lmp-mr1-dev

* commit '8c6516bd099f84750fc605807b833f36ab459343':
  Remove implied '[0]' check in XFB array element resource name tests.

9 years agoam 54edf543: Add cube gather tests that avoid corners; remove D32F from mustpass
Pyry Haulos [Wed, 19 Nov 2014 20:05:59 +0000 (20:05 +0000)]
am 54edf543: Add cube gather tests that avoid corners; remove D32F from mustpass

* commit '54edf5431a35b399c5f6d3141be07a33d73c3b8b':
  Add cube gather tests that avoid corners; remove D32F from mustpass

9 years agoMerge "Remove implied '[0]' check in XFB array element resource name tests." into...
Jarkko Pöyry [Wed, 19 Nov 2014 20:00:16 +0000 (20:00 +0000)]
Merge "Remove implied '[0]' check in XFB array element resource name tests." into lmp-mr1-dev

9 years agoAdd cube gather tests that avoid corners; remove D32F from mustpass
Pyry Haulos [Wed, 19 Nov 2014 19:31:46 +0000 (11:31 -0800)]
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 by request.

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 agoRemove implied '[0]' check in XFB array element resource name tests.
Jarkko Pöyry [Wed, 19 Nov 2014 19:24:24 +0000 (11:24 -0800)]
Remove implied '[0]' check in XFB array element resource name tests.

- Remove check that "name" matches "name[0]" for XFB array element
  resources.
- Clarify log messages.

Bug: 18448008
Change-Id: Ia8d98161d6d42b13ec4b1c1869494729fff3142d

9 years agoMerge "Add tests for EGL_ANDROID_image_native_buffer."
Mika Isojärvi [Wed, 19 Nov 2014 12:33:39 +0000 (12:33 +0000)]
Merge "Add tests for EGL_ANDROID_image_native_buffer."

9 years agoam 9e911871: am f6a65168: Remove get_framebuffer_attachment_parameteriv from MR1...
Jarkko Pöyry [Tue, 18 Nov 2014 21:55:49 +0000 (21:55 +0000)]
am 9e911871: am f6a65168: Remove get_framebuffer_attachment_parameteriv from MR1 must-pass.

* commit '9e9118714708e02fd5b6d5cd1258cd9aaee009af':
  Remove get_framebuffer_attachment_parameteriv from MR1 must-pass.

9 years agoam f6a65168: Remove get_framebuffer_attachment_parameteriv from MR1 must-pass.
Jarkko Pöyry [Tue, 18 Nov 2014 21:45:14 +0000 (21:45 +0000)]
am f6a65168: Remove get_framebuffer_attachment_parameteriv from MR1 must-pass.

* commit 'f6a65168de87c8923e3f053cc02c1850beea25b4':
  Remove get_framebuffer_attachment_parameteriv from MR1 must-pass.