OSDN Git Service

android-x86/external-swiftshader.git
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>
9 years agoEliminate the glBindTexImage dependency.
Nicolas Capens [Fri, 24 Oct 2014 15:59:19 +0000 (11:59 -0400)]
Eliminate the glBindTexImage dependency.

BUG=18110152

Change-Id: I7c7e8aa5ff52de794aacef557769f130d039c1a5
Reviewed-on: https://swiftshader-review.googlesource.com/1242
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate the getCurrentContext() dependency.
Nicolas Capens [Fri, 24 Oct 2014 14:40:41 +0000 (10:40 -0400)]
Eliminate the getCurrentContext() dependency.

BUG=18110152

Change-Id: Ic1e502cdd1392c16d6f53a139f57bc224b338cc4
Reviewed-on: https://swiftshader-review.googlesource.com/1241
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoEliminate the destroyContext() dependency.
Nicolas Capens [Fri, 24 Oct 2014 05:32:00 +0000 (01:32 -0400)]
Eliminate the destroyContext() dependency.

BUG=18110152

Change-Id: I288dca5fa10e6c53e02089f9c618fe2e44889493
Reviewed-on: https://swiftshader-review.googlesource.com/1239
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdvertise GL_OES_EGL_image support.
Nicolas Capens [Fri, 24 Oct 2014 03:37:17 +0000 (23:37 -0400)]
Advertise GL_OES_EGL_image support.

BUG=18110152

Change-Id: I3f35293133868c6b3bebe521b0b169babeb8f937
Reviewed-on: https://swiftshader-review.googlesource.com/1237
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdvertise EGL configs as ES1 renderable.
Nicolas Capens [Fri, 24 Oct 2014 14:15:02 +0000 (10:15 -0400)]
Advertise EGL configs as ES1 renderable.

BUG=18110152

Change-Id: Ie69340a202f1e62eb453b8aad7952711325b2cc4
Reviewed-on: https://swiftshader-review.googlesource.com/1240
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdd ES1 stubs and remove ES2-only functions.
Nicolas Capens [Fri, 24 Oct 2014 03:00:29 +0000 (23:00 -0400)]
Add ES1 stubs and remove ES2-only functions.

BUG=18110152

Change-Id: Iecebf951fe708d3f47ca6c821f448d6bbbfe0abc
Reviewed-on: https://swiftshader-review.googlesource.com/1235
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFix a Khronos extension function prototype.
Nicolas Capens [Fri, 24 Oct 2014 02:46:59 +0000 (22:46 -0400)]
Fix a Khronos extension function prototype.

BUG=18110152

Change-Id: I9e7141646a6f911b004cf15813ed6b4339e04e5b
Reviewed-on: https://swiftshader-review.googlesource.com/1236
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoDon't include libGLESv2 headers in libEGL headers.
Nicolas Capens [Thu, 23 Oct 2014 20:03:51 +0000 (16:03 -0400)]
Don't include libGLESv2 headers in libEGL headers.

BUG=18110152

Change-Id: Idf21c48b1fa154382e1056b8340d5ab777358755
Reviewed-on: https://swiftshader-review.googlesource.com/1234
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdd the Khronos GLES headers.
Nicolas Capens [Thu, 23 Oct 2014 18:13:35 +0000 (14:13 -0400)]
Add the Khronos GLES headers.

BUG=18110152

Change-Id: Ib6875c72bf28e6227ddb24ddffc00cf2c9216534
Reviewed-on: https://swiftshader-review.googlesource.com/1233
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoAdd the libGLES_CM project to the solution and fix up file references.
Nicolas Capens [Thu, 23 Oct 2014 17:44:08 +0000 (13:44 -0400)]
Add the libGLES_CM project to the solution and fix up file references.

BUG=18110152

Change-Id: Icf8a3351ed36090f1c7101a09d44f5e6aa2991ed
Reviewed-on: https://swiftshader-review.googlesource.com/1232
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoRename libGLESv2 files to libGLES_CM.
Nicolas Capens [Thu, 23 Oct 2014 17:36:27 +0000 (13:36 -0400)]
Rename libGLESv2 files to libGLES_CM.

BUG=18110152

Change-Id: I8edde80796fdd677dab3c5b8289b852c12329f55
Reviewed-on: https://swiftshader-review.googlesource.com/1231
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoCopy libGLESv2 to libGLES_CM.
Nicolas Capens [Thu, 23 Oct 2014 17:33:20 +0000 (13:33 -0400)]
Copy libGLESv2 to libGLES_CM.

BUG=18110152

Change-Id: Ibf9b8c47e2d7c145d844ac4e69d6a20a7342d5db
Reviewed-on: https://swiftshader-review.googlesource.com/1230
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoUse unsigned enum base types to use them as state bitfields.
Nicolas Capens [Wed, 22 Oct 2014 18:35:30 +0000 (14:35 -0400)]
Use unsigned enum base types to use them as state bitfields.

BUG=17878699

Change-Id: Ib112ddf399ebd22676a775cdb6e6927e8f8ce25f
Reviewed-on: https://swiftshader-review.googlesource.com/1202
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 unused min/max definitions.
Nicolas Capens [Thu, 16 Oct 2014 04:07:21 +0000 (00:07 -0400)]
Remove unused min/max definitions.

BUG=17878699

Change-Id: If48ef9b43e140e9f43687edf55928d932247d513
Reviewed-on: https://swiftshader-review.googlesource.com/1201
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoMove current register to register set.
Nicolas Capens [Thu, 16 Oct 2014 04:16:01 +0000 (00:16 -0400)]
Move current register to register set.

Change-Id: I4c3e3e22c51613d8d87078fc196f647a485ca28f
Reviewed-on: https://swiftshader-review.googlesource.com/1200
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoRemove unused shader compiler code.
Nicolas Capens [Fri, 17 Oct 2014 18:36:08 +0000 (14:36 -0400)]
Remove unused shader compiler code.

BUG=14600811

Change-Id: I09f18c61e94b46592e2c0bd1905a668c94ed1c16
Reviewed-on: https://swiftshader-review.googlesource.com/1080
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
9 years agoFix the write mask of indirect struct accesses.
Nicolas Capens [Fri, 17 Oct 2014 09:13:46 +0000 (05:13 -0400)]
Fix the write mask of indirect struct accesses.

BUG=17987645

Change-Id: Ie33767573f0994635343b0d0f441c3ebb2462881
Reviewed-on: https://swiftshader-review.googlesource.com/1210
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
9 years agoUpdate the release version.
Nicolas Capens [Wed, 15 Oct 2014 18:15:52 +0000 (14:15 -0400)]
Update the release version.

Change-Id: Ie9b4d9fd7f9c0814c839bdf5dbb53d7fd4cd8a8f
Reviewed-on: https://swiftshader-review.googlesource.com/1192
Reviewed-by: <capn@google.com>
Tested-by: <capn@google.com>
9 years agoFix crash caused by missing shader function definition and report the error.
Nicolas Capens [Wed, 15 Oct 2014 14:28:29 +0000 (10:28 -0400)]
Fix crash caused by missing shader function definition and report the error.

BUG=17956386

Change-Id: I89f243b557b70401052b1f7db237fbc410386f64
Reviewed-on: https://swiftshader-review.googlesource.com/1190
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: <nicolascapens@google.com>
Reviewed-by: <nicolascapens@google.com>
10 years agoDelete routines on demand.
Nicolas Capens [Thu, 26 Jun 2014 17:59:15 +0000 (13:59 -0400)]
Delete routines on demand.

BUG=15907357

Change-Id: I1aebdaa2aa17a88c7de6b181662fb86617b3dc55
Reviewed-on: https://swiftshader-review.googlesource.com/1145
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
10 years agoSplit off Routine into its own file.
Nicolas Capens [Thu, 26 Jun 2014 15:31:08 +0000 (11:31 -0400)]
Split off Routine into its own file.

BUG=15907357

Change-Id: I7a16ab35e8013d8457c482b06220b755a9f79745
Reviewed-on: https://swiftshader-review.googlesource.com/1144
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
10 years agoEstimate the function size based on the average instruction size.
Nicolas Capens [Thu, 26 Jun 2014 14:53:42 +0000 (10:53 -0400)]
Estimate the function size based on the average instruction size.

BUG=15907357

Change-Id: I75c30a62d4a935a66ab25b4f7d581dbd0dff12a8
Reviewed-on: https://swiftshader-review.googlesource.com/1143
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
10 years agoUpdate the RoutineManager interface.
Nicolas Capens [Thu, 26 Jun 2014 14:18:14 +0000 (10:18 -0400)]
Update the RoutineManager interface.

BUG=15907357

Change-Id: Icbd1148c81fa71c31405330eb45294d0186ba6c6
Reviewed-on: https://swiftshader-review.googlesource.com/1142
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
10 years agoRename MemoryManager to RoutineManager.
Nicolas Capens [Thu, 26 Jun 2014 14:11:50 +0000 (10:11 -0400)]
Rename MemoryManager to RoutineManager.

BUG=15907357

Change-Id: I3aeffd19952f6b3d3c35d0dbdb6720a229824cd0
Reviewed-on: https://swiftshader-review.googlesource.com/1141
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
10 years agoSeparate memory page size determination into a function.
Nicolas Capens [Thu, 26 Jun 2014 14:02:27 +0000 (10:02 -0400)]
Separate memory page size determination into a function.

BUG=15907357

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