OSDN Git Service

android-x86/external-swiftshader.git
9 years agoAdded a .gitignore file to enable most git UI extensions to work with the project
Maxime Gregoire [Thu, 15 Jan 2015 21:59:35 +0000 (16:59 -0500)]
Added a .gitignore file to enable most git UI extensions to work with the project

Bug 19029123

Change-Id: Id4875edcbebe815d950de3c86551f9ac76051b35
Reviewed-on: https://swiftshader-review.googlesource.com/1721
Tested-by: Maxime Grégoire <mgregoire@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
9 years agoProvide framebuffer-specific color read format/type and optimize for them.
Nicolas Capens [Wed, 14 Jan 2015 20:55:33 +0000 (15:55 -0500)]
Provide framebuffer-specific color read format/type and optimize for them.

Bug 14643416

Change-Id: I5826ca98bdc964bec3ce9a6cd090872b7eb65c45
Reviewed-on: https://swiftshader-review.googlesource.com/1710
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
9 years agoProvide a faster implementation for reading to RGBA8.
Nicolas Capens [Tue, 13 Jan 2015 22:48:20 +0000 (17:48 -0500)]
Provide a faster implementation for reading to RGBA8.

Bug 14643416

Change-Id: Ied833ac4c2fe6c185efe81adf47e63b29273920a
Reviewed-on: https://swiftshader-review.googlesource.com/1702
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
9 years agoRetrieve the implementation color read format/type from the framebuffer.
Nicolas Capens [Tue, 13 Jan 2015 20:49:15 +0000 (15:49 -0500)]
Retrieve the implementation color read format/type from the framebuffer.

Bug 14643416

Change-Id: Icdacb4185839ef6fb71fe2ff651e283d55d447a9
Reviewed-on: https://swiftshader-review.googlesource.com/1701
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
9 years agoFix allowing fragment shader invariant declarations.
Nicolas Capens [Fri, 12 Dec 2014 17:50:04 +0000 (12:50 -0500)]
Fix allowing fragment shader invariant declarations.

Bug 18732025

Change-Id: I8a3024327533c3e6db72248caafc5e618808edf5
Reviewed-on: https://swiftshader-review.googlesource.com/1630
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoRemove a GCC-specific intrinsic
Nicolas Capens [Thu, 11 Dec 2014 20:30:40 +0000 (15:30 -0500)]
Remove a GCC-specific intrinsic

Bug 18720257

Change-Id: I7dc9257ca47d701cfa190856ad3c2db39495bbdb
Reviewed-on: https://swiftshader-review.googlesource.com/1621
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoRemove Apple-specific CPUID queries.
Nicolas Capens [Thu, 11 Dec 2014 19:44:35 +0000 (14:44 -0500)]
Remove Apple-specific CPUID queries.

Bug 18720257

Change-Id: I09c71eb4799e6531b111da7ef8d562513afb7532
Reviewed-on: https://swiftshader-review.googlesource.com/1620
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFix an image destruction deadlock.
Nicolas Capens [Wed, 10 Dec 2014 15:17:07 +0000 (10:17 -0500)]
Fix an image destruction deadlock.

The EGL image extension allows a texture image to be shared with another
texture. We previously prevented destroying them as long as they are shared
but the parent texture (which owns the resource lock for all its images)
could be destroyed before the EGL image is destroyed, causing a deadlock
when trying to acquire the resource lock. The situation was aggravated by
increasing the parent texture's reference count with the image reference
count (i.e. not the 'owning' texture's reference count). This fix ensures
that the parent texture can only destroy the images it owns.

Bug 18680652

Change-Id: I7fa09d181e695cbc287e77874bdb88f24c22cbd8
Reviewed-on: https://swiftshader-review.googlesource.com/1601
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoCreate 64-bit translator libraries for the Android Emulator.
Nicolas Capens [Thu, 11 Dec 2014 03:26:26 +0000 (22:26 -0500)]
Create 64-bit translator libraries for the Android Emulator.

This patch also clips 64-bit parameters for glBufferData and glBufferSubData
to 32-bit to work around an Android emulator issue.

Bug 18510357

Change-Id: If6870d75849e372747072ec157580d9f5ec76a9a
Reviewed-on: https://swiftshader-review.googlesource.com/1610
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFall back to the default visual if no X8R8G8B8.
Nicolas Capens [Sat, 6 Dec 2014 10:29:54 +0000 (05:29 -0500)]
Fall back to the default visual if no X8R8G8B8.

Bug 18510357

Change-Id: I2406106482b8c65408df783ebb78f5abd17a6320
Reviewed-on: https://swiftshader-review.googlesource.com/1593
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoCreate translator libraries for the Android Emulator on Linux.
Nicolas Capens [Mon, 8 Dec 2014 21:52:06 +0000 (16:52 -0500)]
Create translator libraries for the Android Emulator on Linux.

Bug 18559323

Change-Id: I9b0e57608d8a18d7137bcb1b8e0453045e214ef2
Reviewed-on: https://swiftshader-review.googlesource.com/1559
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdd Linux projects for Radiance.
Nicolas Capens [Sat, 6 Dec 2014 09:47:44 +0000 (04:47 -0500)]
Add Linux projects for Radiance.

Bug 18621031

Change-Id: I33429da66221ccb2c4f46fda91d501d28a2e4aec
Reviewed-on: https://swiftshader-review.googlesource.com/1590
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoMerge libEGL into libRAD.
Nicolas Capens [Sat, 6 Dec 2014 07:51:40 +0000 (02:51 -0500)]
Merge libEGL into libRAD.

Bug 18621031

Change-Id: I9a0cc1864bb573aef48a851e8094c6f675a3395b
Reviewed-on: https://swiftshader-review.googlesource.com/1592
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFix compile errors.
Nicolas Capens [Sat, 6 Dec 2014 06:48:15 +0000 (01:48 -0500)]
Fix compile errors.

Bug 18621031

Change-Id: I50cf26dd3f78a9a21839118faf8f99ff88de8a36
Reviewed-on: https://swiftshader-review.googlesource.com/1591
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoTreat all X8R8G8B8 and A8R8G8B8 formats as fast EGL configs.
Nicolas Capens [Thu, 4 Dec 2014 19:41:38 +0000 (14:41 -0500)]
Treat all X8R8G8B8 and A8R8G8B8 formats as fast EGL configs.

The display format does not have to match the framebuffer image format,
so we only care about the latter.

Bug 18510357

Change-Id: Ie3382b7b006a5007e56ff9e2ae572e8a60f500d8
Reviewed-on: https://swiftshader-review.googlesource.com/1572
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate RefCountObject.
Nicolas Capens [Wed, 3 Dec 2014 20:18:43 +0000 (15:18 -0500)]
Eliminate RefCountObject.

Bug 18591036

Change-Id: Iabe4eb6c60767f3668cca31de36505df9c96145d
Reviewed-on: https://swiftshader-review.googlesource.com/1556
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate GL renderbuffers.
Nicolas Capens [Wed, 3 Dec 2014 20:08:38 +0000 (15:08 -0500)]
Eliminate GL renderbuffers.

Bug 18591036

Change-Id: I5c58c4748cc6420780e7efcd579a910addefec5a
Reviewed-on: https://swiftshader-review.googlesource.com/1555
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate GL queries.
Nicolas Capens [Wed, 3 Dec 2014 20:03:51 +0000 (15:03 -0500)]
Eliminate GL queries.

Bug 18591036

Change-Id: I1cc1539ca1f64da5706cda3405e1f9982fc56bae
Reviewed-on: https://swiftshader-review.googlesource.com/1554
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate GL handle allocator.
Nicolas Capens [Wed, 3 Dec 2014 20:01:05 +0000 (15:01 -0500)]
Eliminate GL handle allocator.

Bug 18591036

Change-Id: Ic0d5183a3c5bcfb32802bf5a94253915f9113c2e
Reviewed-on: https://swiftshader-review.googlesource.com/1553
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate GL framebuffers.
Nicolas Capens [Wed, 3 Dec 2014 19:58:33 +0000 (14:58 -0500)]
Eliminate GL framebuffers.

Bug 18591036

Change-Id: I6d9c408032583bb77c8b9f69da544f8d96ee3e4c
Reviewed-on: https://swiftshader-review.googlesource.com/1552
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate GL index and vertex data manager.
Nicolas Capens [Wed, 3 Dec 2014 20:31:10 +0000 (15:31 -0500)]
Eliminate GL index and vertex data manager.

Bug 18591036

Change-Id: Ifaecb4a50072de0924b78de7da83c9c1335ed38b
Reviewed-on: https://swiftshader-review.googlesource.com/1551
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate GL resource manager.
Nicolas Capens [Wed, 3 Dec 2014 18:57:34 +0000 (13:57 -0500)]
Eliminate GL resource manager.

Bug 18591036

Change-Id: I436c8cc4b30d41010db7ab4b10be0c74217b9f15
Reviewed-on: https://swiftshader-review.googlesource.com/1550
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate GL buffers.
Nicolas Capens [Wed, 3 Dec 2014 16:09:40 +0000 (11:09 -0500)]
Eliminate GL buffers.

Bug 18591036

Change-Id: Ieb77935e0afd41c78dff2bb892185bc2d31505b8
Reviewed-on: https://swiftshader-review.googlesource.com/1540
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoImplement a Radiance prototype.
Nicolas Capens [Mon, 3 Nov 2014 22:40:15 +0000 (17:40 -0500)]
Implement a Radiance prototype.

Bug 18591036

Change-Id: Ic9b58dd38073b32a8507842d5da8af3d8b260f43
Reviewed-on: https://swiftshader-review.googlesource.com/1325
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoClear the list of uniforms before recompiling.
Nicolas Capens [Mon, 1 Dec 2014 21:35:55 +0000 (16:35 -0500)]
Clear the list of uniforms before recompiling.

Bug 18525426

Change-Id: I10c613b5c989467423f3bc84ed3c7039fa35abea
Reviewed-on: https://swiftshader-review.googlesource.com/1504
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoImplement ETC1 compressed textures support.
Nicolas Capens [Sat, 29 Nov 2014 05:31:41 +0000 (00:31 -0500)]
Implement ETC1 compressed textures support.

Bug 18559323

Change-Id: Iafa75778601436364406256602455993eb062de8
Reviewed-on: https://swiftshader-review.googlesource.com/1510
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoCreate a renderer device per GL context.
Nicolas Capens [Mon, 1 Dec 2014 15:42:35 +0000 (10:42 -0500)]
Create a renderer device per GL context.

Bug 18572955

Change-Id: I5c05ab7e0bae3581600ab4fcaba7c499fb5987a7
Reviewed-on: https://swiftshader-review.googlesource.com/1521
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoIgnore Android EGL config attributes.
Nicolas Capens [Tue, 25 Nov 2014 18:31:46 +0000 (13:31 -0500)]
Ignore Android EGL config attributes.

BUG=18510357

Change-Id: Id19a635b95e8bde227eb0cc76a450c4feb567e2d
Reviewed-on: https://swiftshader-review.googlesource.com/1472
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoReference/release both the image and parent texture.
Nicolas Capens [Fri, 14 Nov 2014 03:55:51 +0000 (22:55 -0500)]
Reference/release both the image and parent texture.

BUG=18381089

Change-Id: I379deb9a80eef4cc75082a58bfd14e588d7a93a1
Reviewed-on: https://swiftshader-review.googlesource.com/1410
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate exception handling.
Nicolas Capens [Wed, 26 Nov 2014 16:58:23 +0000 (11:58 -0500)]
Eliminate exception handling.

BUG=18525426

Change-Id: I4ce127fe56e30046fc316276b856767a036d13a1
Reviewed-on: https://swiftshader-review.googlesource.com/1490
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFixed Fractal shader
Alexis Hetu [Tue, 25 Nov 2014 19:03:24 +0000 (14:03 -0500)]
Fixed Fractal shader

The issue was with continue and break, where a previous loop was
decrementing the breakDepth/continueDepth before we started
incrementing it.

BUG=18069149

Change-Id: I39fa9c07ea373cd9dab4997bfb8a9e621bf48b29
Reviewed-on: https://swiftshader-review.googlesource.com/1473
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFixed signed/unsigned types comparison
Alexis Hetu [Tue, 25 Nov 2014 19:25:32 +0000 (14:25 -0500)]
Fixed signed/unsigned types comparison

BUG=18368388

Change-Id: I3f2927fd68e75a8fb5abde1b25e81416862076fc
Reviewed-on: https://swiftshader-review.googlesource.com/1474
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFixed uniform-default-values.html
Alexis Hetu [Mon, 24 Nov 2014 21:22:57 +0000 (16:22 -0500)]
Fixed uniform-default-values.html

Added the isSamplerRegister() function to bring back the previous
validation whose removal was causing uniform-default-values.html
to fail, but I added a comment to explain why this validation was
necessary in the first place.

BUG=18029434

Change-Id: I9dbbfdd31c45adffd5e14433b2ace3a1f79a1ff0
Reviewed-on: https://swiftshader-review.googlesource.com/1471
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoDon't treat A8R8G8B8 on an X8R8G8B8 display as a slow EGL config.
Nicolas Capens [Mon, 24 Nov 2014 22:36:19 +0000 (17:36 -0500)]
Don't treat A8R8G8B8 on an X8R8G8B8 display as a slow EGL config.

Bug 18510357

Change-Id: I0cd62227d3ba00c7bf5f70a8c2a2748f8cdc5242
Reviewed-on: https://swiftshader-review.googlesource.com/1481
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoUse both sysv and gnu style linker hash tables.
Nicolas Capens [Mon, 24 Nov 2014 20:50:51 +0000 (15:50 -0500)]
Use both sysv and gnu style linker hash tables.

Change-Id: I658af8e3dd106a5029bb9876bf4dcafa46296ca6
Reviewed-on: https://swiftshader-review.googlesource.com/1480
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFixed a WebGL conformance test
Alexis Hetu [Thu, 13 Nov 2014 21:43:44 +0000 (16:43 -0500)]
Fixed a WebGL conformance test

It is illegal to use both glFragData and glFragColor in the same
shader according to the OpenGL spec, so a check was added to
verify that this doesn't happen, and returns an error if it does.

BUG=18029434

Change-Id: Ifee14dd539cacc7cd16a2c2634d3e021dbf7ff8e
Reviewed-on: https://swiftshader-review.googlesource.com/1430
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdd libGLES_CM to the Code::Blocks project.
Nicolas Capens [Sat, 22 Nov 2014 06:04:48 +0000 (01:04 -0500)]
Add libGLES_CM to the Code::Blocks project.

Change-Id: Id69512842d9a863b110f8c8bf5244c117d96fae7
Reviewed-on: https://swiftshader-review.googlesource.com/1464
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoSwitch from GCC to Clang.
Nicolas Capens [Fri, 21 Nov 2014 19:59:22 +0000 (14:59 -0500)]
Switch from GCC to Clang.

BUG=18470793

Change-Id: I850fdd6314f0932c052e334f60ad4e272de51398
Reviewed-on: https://swiftshader-review.googlesource.com/1463
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFixed the compound-assignment-type-combination.html test
Alexis Hetu [Thu, 20 Nov 2014 15:47:04 +0000 (10:47 -0500)]
Fixed the compound-assignment-type-combination.html test

The fix is in 2 parts:
1) Multiplying a matrix by a float was failing due to attempting
to use the matrix's index on the float, thus going out of bounds.
2) Multiplying a vector or matrix by vectors or matrices of a
different size was not causing a failure, but now it does.

BUG=18450319

Change-Id: Ie01a77eb32d7d52fcd0a803f3e5efc24c625dbfd
Reviewed-on: https://swiftshader-review.googlesource.com/1450
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdd GL_OES_draw_texture stubs.
Nicolas Capens [Fri, 14 Nov 2014 02:31:53 +0000 (21:31 -0500)]
Add GL_OES_draw_texture stubs.

BUG=18381077

Change-Id: I0dcb76e7662da6f1c38eeeca75e24a702da28abd
Reviewed-on: https://swiftshader-review.googlesource.com/1400
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFix C++11 compilation errors.
Nicolas Capens [Fri, 21 Nov 2014 17:49:12 +0000 (12:49 -0500)]
Fix C++11 compilation errors.

Don't rely on friend method injection, and avoid prefixing constants with strings.

Change-Id: Ide6ab73d13ba3e3534e47323b21f6e5e3ea9d0ab
Reviewed-on: https://swiftshader-review.googlesource.com/1462
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFixed shader-varying-packing-restrictions.html
Nicolas Capens [Fri, 21 Nov 2014 05:57:43 +0000 (00:57 -0500)]
Fixed shader-varying-packing-restrictions.html

Return an error instead of asserting when exceeding
the number of available varying variables.

Change-Id: Ia4d76897b4b214a5b3bdd37cd420c0437faa216a
Reviewed-on: https://swiftshader-review.googlesource.com/1451
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoMore warnings fixed
Alexis Hetu [Thu, 13 Nov 2014 21:43:44 +0000 (16:43 -0500)]
More warnings fixed

Fixed warnings related to type conversions leading to potential loss of precision.

BUG=18368388

Change-Id: I71a7941df4bcf991f04818060780d4d395e335a9
Reviewed-on: https://swiftshader-review.googlesource.com/1393
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFix 32-bit builds of the sample app on Linux.
Nicolas Capens [Fri, 21 Nov 2014 05:57:43 +0000 (00:57 -0500)]
Fix 32-bit builds of the sample app on Linux.

Change-Id: I4efc69d9937dcbc3e37e7f184deef75d0a9e2ad7
Reviewed-on: https://swiftshader-review.googlesource.com/1461
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFix closing unopened shared libraries.
Nicolas Capens [Fri, 21 Nov 2014 05:21:05 +0000 (00:21 -0500)]
Fix closing unopened shared libraries.

BUG=18208440

Change-Id: I619317803fcc13fffc8a2df427c8d504a86cdcba
Reviewed-on: https://swiftshader-review.googlesource.com/1460
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoImplemented EGL_EXT_platform_base and EGL_KHR_platform_gbm.
Nicolas Capens [Thu, 20 Nov 2014 22:58:45 +0000 (17:58 -0500)]
Implemented EGL_EXT_platform_base and EGL_KHR_platform_gbm.

BUG=18314459

Change-Id: I361dba91a2fec3d9c923c660e64b5cc25beeb72b
Reviewed-on: https://swiftshader-review.googlesource.com/1421
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoImplement EGL_EXT_client_extensions.
Nicolas Capens [Mon, 17 Nov 2014 06:35:10 +0000 (01:35 -0500)]
Implement EGL_EXT_client_extensions.

BUG=18314459

Change-Id: I0f2e0391655714920c6f9f082bf59a59d02b7cd2
Reviewed-on: https://swiftshader-review.googlesource.com/1420
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoRemove RemoveTree.
Nicolas Capens [Thu, 20 Nov 2014 22:38:26 +0000 (17:38 -0500)]
Remove RemoveTree.

All AST nodes are allocated in a memory pool and get deleted by the pool.
RemoveTree doesn't do anything because delete is overloaded for the nodes.

BUG=18469191

Change-Id: I1dc23e894c441db2e2eb1f6e9b8f0c11b2e52b3c
Reviewed-on: https://swiftshader-review.googlesource.com/1452
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFixed memory leak associated with TLS.
Nicolas Capens [Tue, 11 Nov 2014 17:42:08 +0000 (12:42 -0500)]
Fixed memory leak associated with TLS.

We used to allocate thread-local memory on each compile.
If the compile did not happen on the same thread as ShInitialize,
we leaked the thread-local memory.

It turns out that there is no need to allocate any thread-local
memory. This patch cleans up all the unnecessary junk around TLS.

BUG=chromium:181691

Change-Id: I4b67ab23dc856d93424ae51ebf8aaf8966b732e4
Reviewed-on: https://swiftshader-review.googlesource.com/1361
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoValidate allocation size in PoolAllocator
Nicolas Capens [Tue, 11 Nov 2014 16:31:47 +0000 (11:31 -0500)]
Validate allocation size in PoolAllocator

BUG=chromium:8662046

Change-Id: I3f8371b586b3a497c871a56bdf3c2b489e383b7d
Reviewed-on: https://swiftshader-review.googlesource.com/1360
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoSending proper GL error on invalid Renderbuffer.
Alexis Hetu [Fri, 7 Nov 2014 19:23:33 +0000 (14:23 -0500)]
Sending proper GL error on invalid Renderbuffer.

Instead of creating a new Renderbuffer in case of an invalid Renderbuffer,
it will now instead send a GL_INVALID_OPERATION error.

BUG=14598385

Change-Id: I0425061fcc26e86348ef881f18c68acaa142e9c9
Reviewed-on: https://swiftshader-review.googlesource.com/1340
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
9 years agoFix eglGetDisplay(EGL_DEFAULT_DISPLAY) on Linux.
Nicolas Capens [Mon, 17 Nov 2014 04:28:38 +0000 (23:28 -0500)]
Fix eglGetDisplay(EGL_DEFAULT_DISPLAY) on Linux.

9 years agoAdd the OGLES2HelloTriangle sample to the Linux build.
Nicolas Capens [Fri, 14 Nov 2014 22:38:33 +0000 (17:38 -0500)]
Add the OGLES2HelloTriangle sample to the Linux build.

Change-Id: Ia58a554b682fa9a6ce87a4a4274013ee1a7d0b50

9 years agoFix the Linux build.
Nicolas Capens [Fri, 14 Nov 2014 19:51:03 +0000 (14:51 -0500)]
Fix the Linux build.

Change-Id: I2c06dbe89f8e079f690242cd97af6638087af593
Reviewed-on: https://swiftshader-review.googlesource.com/1394
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdded glTestFenceNV implementation
Alexis Hetu [Wed, 12 Nov 2014 22:06:43 +0000 (17:06 -0500)]
Added glTestFenceNV implementation

BUG=18355839

Change-Id: Icbded1017d98099a500d43fb8c02349a2412ddfd
Reviewed-on: https://swiftshader-review.googlesource.com/1380
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
9 years agoFixing some trivial warnings in the SwiftShader build.
Alexis Hetu [Thu, 13 Nov 2014 15:56:20 +0000 (10:56 -0500)]
Fixing some trivial warnings in the SwiftShader build.

BUG=18368388

Change-Id: I89038818164e04f9ae4a7e1c4526781654e83c7a
Reviewed-on: https://swiftshader-review.googlesource.com/1390
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFix test sample launch environment.
Nicolas Capens [Tue, 11 Nov 2014 15:14:22 +0000 (10:14 -0500)]
Fix test sample launch environment.

BUG=18313324

Change-Id: I21c2ec40eb9f3a12691b68d3d3bb3df9a2e2b58c
Reviewed-on: https://swiftshader-review.googlesource.com/1358
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoDelete EGL images only after eglDestroyImageKHR.
Nicolas Capens [Mon, 10 Nov 2014 21:22:07 +0000 (16:22 -0500)]
Delete EGL images only after eglDestroyImageKHR.

BUG=18316605

Change-Id: I85944b87642664c6202bacdfc852e9cedabc79a9
Reviewed-on: https://swiftshader-review.googlesource.com/1357
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoSupport GL_TEXTURE_2D targets in glEGLImageTargetTexture2DOES.
Nicolas Capens [Mon, 10 Nov 2014 21:16:39 +0000 (16:16 -0500)]
Support GL_TEXTURE_2D targets in glEGLImageTargetTexture2DOES.

BUG=18316605

Change-Id: I46cf8b97fcb2d7606a94570ef1d742ce0f973dfb
Reviewed-on: https://swiftshader-review.googlesource.com/1356
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoExport extensions.
Nicolas Capens [Mon, 10 Nov 2014 21:12:28 +0000 (16:12 -0500)]
Export extensions.

BUG=18316605

Change-Id: Iafcbb312e075746111783dc5f6da7dffe3a271ba
Reviewed-on: https://swiftshader-review.googlesource.com/1354
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdding separate paths for each different library build configurations
Alexis Hetu [Mon, 10 Nov 2014 19:01:27 +0000 (14:01 -0500)]
Adding separate paths for each different library build configurations

Resolved conflicts.

Change-Id: I6ddad7de9e3047fc9ed93b44367f7f633831e3ea
Reviewed-on: https://swiftshader-review.googlesource.com/1350
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdd the glEGLImageTargetRenderbufferStorageOES entry function.
Nicolas Capens [Wed, 5 Nov 2014 22:07:53 +0000 (17:07 -0500)]
Add the glEGLImageTargetRenderbufferStorageOES entry function.

BUG=18316605

Change-Id: If9f7ecef4391d2bfbe8c09046305225d8dea9d80

9 years agoAvoid resetting the EGL error code on client context retrieval.
Nicolas Capens [Wed, 5 Nov 2014 21:05:12 +0000 (16:05 -0500)]
Avoid resetting the EGL error code on client context retrieval.

BUG=18208531

Change-Id: I0246a6fcfdeefd8c84a28c3d86723d50d3f0cbac

9 years agoLoad libraries from a list of possible names.
Nicolas Capens [Wed, 5 Nov 2014 14:34:52 +0000 (09:34 -0500)]
Load libraries from a list of possible names.

BUG=18208440

Change-Id: Ie57bf7c6fa40ec1f9d0c3780c360d281d84a8c56

9 years agoAdd stubs for RAD entry functions.
Nicolas Capens [Mon, 3 Nov 2014 16:11:08 +0000 (11:11 -0500)]
Add stubs for RAD entry functions.

BUG=18218488

Change-Id: I9b69d2f8fdb64b9e91877bd4f506fc30a2bcd33c
Reviewed-on: https://swiftshader-review.googlesource.com/1224
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoInitialize RAD using EGL instead of GLUT.
Nicolas Capens [Mon, 3 Nov 2014 19:05:28 +0000 (14:05 -0500)]
Initialize RAD using EGL instead of GLUT.

BUG=18218488

Change-Id: I6d96b9259e528c822a8232cac31e4e7528ac53d8
Reviewed-on: https://swiftshader-review.googlesource.com/1324
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdded HelloRAD test sample.
Nicolas Capens [Fri, 17 Oct 2014 16:42:08 +0000 (12:42 -0400)]
Added HelloRAD test sample.

BUG=18218488

Change-Id: Iab4432360de4f3ac6921e4ed84790bcd772d147d
Reviewed-on: https://swiftshader-review.googlesource.com/1222
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoRename libGLESv2 references to libRAD. Rename the es2 namespace to rad.
Nicolas Capens [Mon, 3 Nov 2014 19:27:01 +0000 (14:27 -0500)]
Rename libGLESv2 references to libRAD. Rename the es2 namespace to rad.

BUG=18218488

Change-Id: Iaf64c9a42328c54f763db53a0830e3ceb45cb09c
Reviewed-on: https://swiftshader-review.googlesource.com/1323
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoRemove libGLES_CM and rename libGLESv2 to libRAD.
Nicolas Capens [Mon, 3 Nov 2014 18:44:14 +0000 (13:44 -0500)]
Remove libGLES_CM and rename libGLESv2 to libRAD.

BUG=18218488

Change-Id: I790ed12fb4e2e38196fb88e2bc17a43ef8bfadbb
Reviewed-on: https://swiftshader-review.googlesource.com/1322
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoCopy the OpenGL folder to Radiance.
Nicolas Capens [Mon, 3 Nov 2014 14:15:33 +0000 (09:15 -0500)]
Copy the OpenGL folder to Radiance.

BUG=18218488

Change-Id: I561dab264540dabaf479f5acc9265e83941f51f0
Reviewed-on: https://swiftshader-review.googlesource.com/1321
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoRename the GLES2 folder to OpenGL.
Nicolas Capens [Mon, 3 Nov 2014 18:24:34 +0000 (13:24 -0500)]
Rename the GLES2 folder to OpenGL.

BUG=18218488

Change-Id: I162a3a80a8e098a2a52b02ea56d746074dfb938d
Reviewed-on: https://swiftshader-review.googlesource.com/1320
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAutomatically close the attach debugger dialog.
Nicolas Capens [Fri, 31 Oct 2014 20:43:16 +0000 (16:43 -0400)]
Automatically close the attach debugger dialog.

BUG=15759123

Change-Id: I03e363eadf437527aae406107111e93bd3cc6e4e
Reviewed-on: https://swiftshader-review.googlesource.com/1304
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFix crash on eglDestroyContext.
Nicolas Capens [Sun, 2 Nov 2014 17:00:43 +0000 (12:00 -0500)]
Fix crash on eglDestroyContext.

BUG=18211761

Change-Id: I7baf09e59330aad390c1fab37d7d3f1321faa3fc
Reviewed-on: https://swiftshader-review.googlesource.com/1310
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFix comparing GL texture target against the GL enum (not EGL enum).
Nicolas Capens [Fri, 31 Oct 2014 18:32:49 +0000 (14:32 -0400)]
Fix comparing GL texture target against the GL enum (not EGL enum).

BUG=18203563

Change-Id: If308293d51f7c2bbec4ee805b7efcdda3e2227b8
Reviewed-on: https://swiftshader-review.googlesource.com/1303
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFix setting the number of matching configs for an unknown attribute.
Nicolas Capens [Fri, 31 Oct 2014 18:25:10 +0000 (14:25 -0400)]
Fix setting the number of matching configs for an unknown attribute.

BUG=18201982

Change-Id: I638fc7b666490ab7109058b4db31d942013f98a5
Reviewed-on: https://swiftshader-review.googlesource.com/1302
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoImplement texturing.
Nicolas Capens [Thu, 30 Oct 2014 13:17:58 +0000 (09:17 -0400)]
Implement texturing.

BUG=18110152

Change-Id: I100cdd6975f6ff3d54edd65586ce2d95395af166
Reviewed-on: https://swiftshader-review.googlesource.com/1285
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoImplement attribute pointers.
Nicolas Capens [Wed, 29 Oct 2014 19:25:19 +0000 (15:25 -0400)]
Implement attribute pointers.

BUG=18110152

Change-Id: I83302f1a2e258b767865447f34bc00051a9080e8
Reviewed-on: https://swiftshader-review.googlesource.com/1284
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoTrack active texture.
Nicolas Capens [Thu, 30 Oct 2014 13:12:36 +0000 (09:12 -0400)]
Track active texture.

BUG=18110152

Change-Id: Ie4da7c33e8b84490e0986a1c505caed17049e9d4
Reviewed-on: https://swiftshader-review.googlesource.com/1283
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoImplement texture enable.
Nicolas Capens [Thu, 30 Oct 2014 13:10:57 +0000 (09:10 -0400)]
Implement texture enable.

BUG=18110152

Change-Id: I47b38cb10ea0b73c522817f9dbe5a5d118f3c599
Reviewed-on: https://swiftshader-review.googlesource.com/1282
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoImplement the fixed-function matrix stacks.
Nicolas Capens [Wed, 29 Oct 2014 18:46:44 +0000 (14:46 -0400)]
Implement the fixed-function matrix stacks.

BUG=18110152

Change-Id: I0769c446e20eaf52cc84d957de16bfba4254a5f1
Reviewed-on: https://swiftshader-review.googlesource.com/1244
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoImplement fixed-function lighting.
Nicolas Capens [Wed, 29 Oct 2014 18:08:46 +0000 (14:08 -0400)]
Implement fixed-function lighting.

BUG=18110152

Change-Id: I14539562fbc4f292c965287972da580c98fb1ba9
Reviewed-on: https://swiftshader-review.googlesource.com/1281
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoMatch the exports ordinals to PowerVR.
Nicolas Capens [Wed, 29 Oct 2014 15:27:55 +0000 (11:27 -0400)]
Match the exports ordinals to PowerVR.

BUG=18110152

Change-Id: I6152faa4c5717fdb34e10b9d8f5b531683886910
Reviewed-on: https://swiftshader-review.googlesource.com/1280
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdd the BasicTnL PowerVR sample.
Nicolas Capens [Wed, 29 Oct 2014 05:40:58 +0000 (01:40 -0400)]
Add the BasicTnL PowerVR sample.

BUG=18110152

Change-Id: I83792f8235663a6f59c08ad874f743a8b59ac337
Reviewed-on: https://swiftshader-review.googlesource.com/1256
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoCall any available function for creating frame buffers.
Nicolas Capens [Wed, 29 Oct 2014 03:51:52 +0000 (23:51 -0400)]
Call any available function for creating frame buffers.

BUG=18110152

Change-Id: I08f5b87a409cd0f788b2eb0648b7efa5ab05fada
Reviewed-on: https://swiftshader-review.googlesource.com/1278
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoName the namespaces logically.
Nicolas Capens [Wed, 29 Oct 2014 03:48:41 +0000 (23:48 -0400)]
Name the namespaces logically.

BUG=18110152

Change-Id: Ib9959d5a3d993048e61887254f42e7de342ec4fd
Reviewed-on: https://swiftshader-review.googlesource.com/1255
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoDelegate extensions to the right implementation based on client version.
Nicolas Capens [Tue, 28 Oct 2014 19:54:46 +0000 (15:54 -0400)]
Delegate extensions to the right implementation based on client version.

BUG=18110152

Change-Id: I3e7ccef4b466e3980210ce931ae9c1f0ff411a5b
Reviewed-on: https://swiftshader-review.googlesource.com/1272
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoReturn the requested GL context version.
Nicolas Capens [Tue, 28 Oct 2014 17:50:01 +0000 (13:50 -0400)]
Return the requested GL context version.

BUG=18110152

Change-Id: Ia2a04777e6303cd9f2e53a735455c8c7921b1b13

9 years agoRetrieve the current context and display from EGL.
Nicolas Capens [Tue, 28 Oct 2014 06:53:50 +0000 (02:53 -0400)]
Retrieve the current context and display from EGL.

BUG=18110152

Change-Id: Iedddab96b5958b1daef6a41bb968af358afd6561
Reviewed-on: https://swiftshader-review.googlesource.com/1254
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoRename the GLES2 namespace to gl2.
Nicolas Capens [Tue, 28 Oct 2014 05:55:27 +0000 (01:55 -0400)]
Rename the GLES2 namespace to gl2.

BUG=18110152

Change-Id: Ia1ec422b26b7f8d5edf856d3b625a0e9ebd5d31b
Reviewed-on: https://swiftshader-review.googlesource.com/1250
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoMove common image implementations to EGL.
Nicolas Capens [Tue, 28 Oct 2014 16:07:06 +0000 (12:07 -0400)]
Move common image implementations to EGL.

BUG=18110152

Change-Id: Ic3bf93d61682985e56b1b22c9fafd8c6e63cf442
Reviewed-on: https://swiftshader-review.googlesource.com/1253
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoShare the EGL image interface between implementations.
Nicolas Capens [Tue, 28 Oct 2014 03:56:02 +0000 (23:56 -0400)]
Share the EGL image interface between implementations.

BUG=18110152

Change-Id: Ia36cc97c0f1b6609382ebaed7ef55231d22d9519
Reviewed-on: https://swiftshader-review.googlesource.com/1252
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoUpdate to the latest Khronos headers.
Nicolas Capens [Tue, 28 Oct 2014 15:54:43 +0000 (11:54 -0400)]
Update to the latest Khronos headers.

BUG=18110152

Change-Id: Ie623104ccf7ca8d8a7646a8563cf79f17762e137
Reviewed-on: https://swiftshader-review.googlesource.com/1270
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoRemove tracing for the Device interface.
Nicolas Capens [Fri, 24 Oct 2014 17:42:23 +0000 (13:42 -0400)]
Remove tracing for the Device interface.

Only exported functions should need tracing for debugging purposes.

BUG=18110152

Change-Id: I66c25db3954ef5e1aab5769b79a61336e8d95e73
Reviewed-on: https://swiftshader-review.googlesource.com/1243
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate unnecessary getDevice() calls.
Nicolas Capens [Mon, 27 Oct 2014 21:59:26 +0000 (17:59 -0400)]
Eliminate unnecessary getDevice() calls.

BUG=18110152

Change-Id: Ib915aa01aa555e739d4c068ca845943057312fdb
Reviewed-on: https://swiftshader-review.googlesource.com/1265
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate the createDevice() dependency.
Nicolas Capens [Mon, 27 Oct 2014 21:29:04 +0000 (17:29 -0400)]
Eliminate the createDevice() dependency.

BUG=18110152

Change-Id: I70182caebeb645d89c222782354ee8a48272893f
Reviewed-on: https://swiftshader-review.googlesource.com/1264
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoCreate the depth/stencil buffer independently from the device.
Nicolas Capens [Mon, 27 Oct 2014 20:47:02 +0000 (16:47 -0400)]
Create the depth/stencil buffer independently from the device.

BUG=18110152

Change-Id: Ie500fbac3697f877b30c38acfc68004e711c6e0f
Reviewed-on: https://swiftshader-review.googlesource.com/1263
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoMove the EGL shared image creation implementation to the context.
Nicolas Capens [Mon, 27 Oct 2014 20:46:31 +0000 (16:46 -0400)]
Move the EGL shared image creation implementation to the context.

BUG=18110152

Change-Id: I21aece83756f033f579f11c0fb2e9e3d21f93703
Reviewed-on: https://swiftshader-review.googlesource.com/1262
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAbstract the use of textures in EGL.
Nicolas Capens [Mon, 27 Oct 2014 18:15:37 +0000 (14:15 -0400)]
Abstract the use of textures in EGL.

BUG=18110152

Change-Id: I02e85817532de599109a9e3938badc5e48bb29c0
Reviewed-on: https://swiftshader-review.googlesource.com/1261
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoRemove unnecessary getDevice() calls.
Nicolas Capens [Fri, 24 Oct 2014 04:14:42 +0000 (00:14 -0400)]
Remove unnecessary getDevice() calls.

BUG=18110152

Change-Id: I22bb194164271ba8319a01d6cfc5843382ea9f6e
Reviewed-on: https://swiftshader-review.googlesource.com/1238
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFix setting the EGL context.
Nicolas Capens [Sun, 26 Oct 2014 19:26:12 +0000 (15:26 -0400)]
Fix setting the EGL context.

BUG=18121988

Change-Id: If0072d742a8d3d0bd872d9d60f9e68ad7eda4d1a
Reviewed-on: https://swiftshader-review.googlesource.com/1251
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>