OSDN Git Service
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>
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>
Nicolas Capens [Wed, 5 Nov 2014 22:07:53 +0000 (17:07 -0500)]
Add the glEGLImageTargetRenderbufferStorageOES entry function.
BUG=
18316605
Change-Id: If9f7ecef4391d2bfbe8c09046305225d8dea9d80
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
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Nicolas Capens [Tue, 28 Oct 2014 17:50:01 +0000 (13:50 -0400)]
Return the requested GL context version.
BUG=
18110152
Change-Id: Ia2a04777e6303cd9f2e53a735455c8c7921b1b13
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Nicolas Capens [Mon, 16 Jun 2014 20:46:23 +0000 (16:46 -0400)]
Fix S3TC compilation on Linux.
BUG=
14602552
Change-Id: Ie2488d4301ed119ff9cc0105954f875f7e3050fd
Reviewed-on: https://swiftshader-review.googlesource.com/1120
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Fri, 13 Jun 2014 21:13:17 +0000 (17:13 -0400)]
Implement constructing vectors from matrices and matrices from scalars.
BUG=
15415045
Change-Id: I97355dab2890bcf3c1bf39d149960e53e4fed325
Reviewed-on: https://swiftshader-review.googlesource.com/1115
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Thu, 12 Jun 2014 23:28:57 +0000 (19:28 -0400)]
Eliminate conversion operations.
They've been replaced by using constructor nodes, so any code handling conversion operators
can be removed.
BUG=
15415045
Change-Id: Ibf277f3014800b6e9503d65f102f8d8b6013a2d7
Reviewed-on: https://swiftshader-review.googlesource.com/1114
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Thu, 12 Jun 2014 16:18:44 +0000 (12:18 -0400)]
Produce constructors instead of conversions.
GLSL only supports explicit conversion through constructors. Therefore the conversion
nodes are redundant.
BUG=
15415045
Change-Id: Ia6bd93c9c4a69d013a4ec82f81826e6ff5c18eb2
Reviewed-on: https://swiftshader-review.googlesource.com/1113
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Thu, 12 Jun 2014 15:45:17 +0000 (11:45 -0400)]
Add constant casting support.
BUG=
15415045
Change-Id: I35b27fec33aede0fedde892cd9379ca19fdb6f08
Reviewed-on: https://swiftshader-review.googlesource.com/1112
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Thu, 12 Jun 2014 18:05:19 +0000 (14:05 -0400)]
Implement implicit casting support for constructors.
BUG=
15415045
Change-Id: Ib6ec56f545ff37b5711bdf22bca1b33429521937
Reviewed-on: https://swiftshader-review.googlesource.com/1111
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Thu, 12 Jun 2014 22:33:27 +0000 (18:33 -0400)]
Fix creating external textures from EGL images.
BUG=
14610416
Change-Id: Ice828f206630a1e9a92af2139ef38a3a7a8e835a
Reviewed-on: https://swiftshader-review.googlesource.com/1110
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Thu, 29 May 2014 02:46:43 +0000 (22:46 -0400)]
Implement GL_OES_EGL_image_external support.
BUG=
14610416
Change-Id: I9ca6d1779c7b6f1b28d5d5665264815881ee01b5
Reviewed-on: https://swiftshader-review.googlesource.com/1071
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Wed, 28 May 2014 23:23:55 +0000 (19:23 -0400)]
Remove intrinsic parameter names.
BUG=
14610416
Change-Id: I8d6ce04e78d4ca222c87cd992ac75a17982d6b4c
Reviewed-on: https://swiftshader-review.googlesource.com/1070
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Thu, 12 Jun 2014 04:13:37 +0000 (00:13 -0400)]
Implement EGL_KHR_gl_renderbuffer_image support.
BUG=
14610416
Change-Id: I406d356a70c2c3b2a2b6861b7a8c00a01fe5c8cf
Reviewed-on: https://swiftshader-review.googlesource.com/1061
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Thu, 12 Jun 2014 04:09:18 +0000 (00:09 -0400)]
Implement EGL_KHR_gl_texture_cubemap_image support.
BUG=
14610416
Change-Id: I1e236333c8fb7a6870bdd1ef8abaea4c6e9e4d4e
Reviewed-on: https://swiftshader-review.googlesource.com/1052
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Tue, 27 May 2014 21:23:07 +0000 (17:23 -0400)]
Implement EGL_KHR_gl_texture_2D_image support.
BUG=
14610416
Change-Id: I78b958709f92bf41a15a8e85260d09de9c2385e1
Reviewed-on: https://swiftshader-review.googlesource.com/1051
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Tue, 27 May 2014 19:05:36 +0000 (15:05 -0400)]
Implement the EGL_KHR_image_base interface.
BUG=
14610416
Change-Id: I9df43e50ac3160dbfb5deda90a7c1b618c9e91b4
Reviewed-on: https://swiftshader-review.googlesource.com/1021
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Thu, 5 Jun 2014 04:23:27 +0000 (00:23 -0400)]
Add the DisplacementMap PowerVR sample.
BUG=
14598298
Change-Id: Ie155538dac9395021b5a69b9aa553a8c7e85aa8f
Reviewed-on: https://swiftshader-review.googlesource.com/1100
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Thu, 5 Jun 2014 02:51:10 +0000 (22:51 -0400)]
Add the ChameleonMan PowerVR sample.
BUG=
14598298
Change-Id: Id6dcaebe793cf3d3a10af571348f461023d2a9d2
Reviewed-on: https://swiftshader-review.googlesource.com/1090
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Tue, 3 Jun 2014 04:05:08 +0000 (00:05 -0400)]
Add the HelloAPI PowerVR sample.
BUG=
14598298
Change-Id: I9b730fb1b8fbcd5bdb2f0d8ecab3981e7dab2003
Reviewed-on: https://swiftshader-review.googlesource.com/1082
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Nicolas Capens [Wed, 28 May 2014 17:47:24 +0000 (17:47 +0000)]
Merge "Optimize culling."
Nicolas Capens [Wed, 7 May 2014 05:14:21 +0000 (01:14 -0400)]
Optimize culling.
BUG=
14625629
Change-Id: Iafe3d2db66d4f7e1a0597ffdaf865a781a015216
Nicolas Capens [Tue, 27 May 2014 18:25:33 +0000 (14:25 -0400)]
Make available EGL surface parameters queryable.
BUG=
14959041
Change-Id: I0447c512554e3da98c3b5b0f7a88cdadb96ef4d4
Nicolas Capens [Tue, 13 May 2014 14:34:00 +0000 (10:34 -0400)]
Implement GL_EXT_blend_minmax support
BUG=
14852910
Change-Id: I0ade7db0284370d91fbb3c35c8ca6ed040bdba1e
Nicolas Capens [Thu, 8 May 2014 19:37:17 +0000 (15:37 -0400)]
Upgrade Windows projects to Visual Studio 2013.
BUG=
14625486
Change-Id: I6a29ec3294f34136209d991b37d6b4d80723d3a7
Nicolas Capens [Wed, 7 May 2014 14:19:36 +0000 (10:19 -0400)]
Enable S3TC texture formats on Windows.
BUG=
14602552
Change-Id: I0dcd77bf3869ecd3a5ebbfe2dde724187f2082d3
Nicolas Capens [Wed, 7 May 2014 04:17:20 +0000 (00:17 -0400)]
Use the full format to specify frame buffer blits.
Nicolas Capens [Wed, 7 May 2014 04:13:29 +0000 (00:13 -0400)]
Check for X11 window resizes.
crbug.com/336438
Nicolas Capens [Wed, 7 May 2014 04:10:55 +0000 (00:10 -0400)]
Avoid writing any pixels outside of the frame buffer.
crbug.com/336438
Nicolas Capens [Wed, 7 May 2014 04:07:57 +0000 (00:07 -0400)]
Avoid reading or writing the configuration file if we don't have access to it. In particular this helps prevent the seccomp-bpf sandbox from shutting things down.
crbug.com/336438
Nicolas Capens [Wed, 7 May 2014 04:03:25 +0000 (00:03 -0400)]
Only open an X11 display when not provided by the application through eglGetDisplay().
Nicolas Capens [Wed, 7 May 2014 03:50:46 +0000 (23:50 -0400)]
Fix projected texture mapping with lod or bias.
Nicolas Capens [Wed, 7 May 2014 03:48:15 +0000 (23:48 -0400)]
Defer worker thread creation until the first draw call.
crbug.com/336438
Nicolas Capens [Wed, 7 May 2014 03:42:15 +0000 (23:42 -0400)]
Install a custom error handler to catch BadAccess errors from XShmAttach so we can fall back to not using MIT-SHM.
crbug.com/336438
Nicolas Capens [Wed, 7 May 2014 03:34:44 +0000 (23:34 -0400)]
Use versioned shared library names.
crbug.com/336438
Nicolas Capens [Wed, 7 May 2014 03:31:07 +0000 (23:31 -0400)]
Only apply the enable mask on instructions requiring predication.
Nicolas Capens [Wed, 7 May 2014 03:25:11 +0000 (23:25 -0400)]
Update the version number of release.
Nicolas Capens [Tue, 6 May 2014 20:45:31 +0000 (16:45 -0400)]
Enhanced the sampling precision of 88 texture formats.