OSDN Git Service
Maxime Gregoire [Fri, 13 Feb 2015 16:29:13 +0000 (11:29 -0500)]
LibGL Simple cube test modification.
Added display lists initialization and calls as well as a scaling operation, making the cube shrink then grow.
Change-Id: I861e35443d9b8bda86f3ca6b64ddad40916b221e
Reviewed-on: https://swiftshader-review.googlesource.com/2270
Tested-by: Maxime Grégoire <mgregoire@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Alexis Hetu [Wed, 11 Feb 2015 21:11:07 +0000 (16:11 -0500)]
Texture3D copy to level
Bug
19126833
Change-Id: I6da0f1a3d09ab8f510f6f5b2600d911095e02a43
Reviewed-on: https://swiftshader-review.googlesource.com/2200
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Maxime Gregoire [Thu, 12 Feb 2015 21:52:54 +0000 (16:52 -0500)]
wglSwapBuffers signature fix
Change-Id: I5db85ef3d850582aa0134074f7e6fc873402f334
Reviewed-on: https://swiftshader-review.googlesource.com/2261
Tested-by: Maxime Grégoire <mgregoire@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Thu, 12 Feb 2015 20:27:55 +0000 (15:27 -0500)]
Fix supporting samplers in structs passed down as function arguments.
Bug
19354873
Change-Id: Ic21a36eefcdef4d9fcce1952fa15425da8858200
Reviewed-on: https://swiftshader-review.googlesource.com/2260
Tested-by: Nicolas Capens <capn@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Thu, 12 Feb 2015 19:05:44 +0000 (14:05 -0500)]
Always wait for the debugger.
Bug
19354873
Change-Id: I2f39ccdd6c5ce10fb583eda500e9da7a6c111d9b
Reviewed-on: https://swiftshader-review.googlesource.com/2250
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Thu, 12 Feb 2015 21:53:27 +0000 (16:53 -0500)]
Fix the Code::Blocks builds.
Change-Id: Ic505bc34e41f5c6a5f6d223f6ea6189edc748e7c
Reviewed-on: https://swiftshader-review.googlesource.com/2262
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Tue, 10 Feb 2015 21:27:49 +0000 (16:27 -0500)]
Eliminate the ShaderLang interface.
Bug
19331817
Change-Id: I6f5e0c1130974a16cec9575f0fefdd81707b648b
Reviewed-on: https://swiftshader-review.googlesource.com/2153
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Tue, 10 Feb 2015 21:02:55 +0000 (16:02 -0500)]
Eliminate the abstract shader compiler interface.
Bug
19331817
Change-Id: I13bc44264ac8727aa246f25960e054ab2875ecec
Reviewed-on: https://swiftshader-review.googlesource.com/2152
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Tue, 10 Feb 2015 20:42:31 +0000 (15:42 -0500)]
Eliminate TShHandleBase.
Bug
19331817
Change-Id: I3dc11a3e4eaea734ae86e2722d2565ce136fe335
Reviewed-on: https://swiftshader-review.googlesource.com/2151
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Tue, 10 Feb 2015 20:35:11 +0000 (15:35 -0500)]
Rename ShHandle to Compiler.
Bug
19331817
Change-Id: I0e7b1da2663ccc86e9f9c3501a7fa7567880d3bb
Reviewed-on: https://swiftshader-review.googlesource.com/2150
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Tue, 10 Feb 2015 18:58:40 +0000 (13:58 -0500)]
Safely promote uninitialized constants.
Bug
19331817
Change-Id: Ia0e032301f360b7d866c3d64ee6cf41c2e481bf3
Reviewed-on: https://swiftshader-review.googlesource.com/2120
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Tue, 10 Feb 2015 18:55:57 +0000 (13:55 -0500)]
Ignore constants that have not been initialized.
Bug
19331817
Change-Id: Ib2d41e072306e4fb64a6e074705982982c08cdd4
Reviewed-on: https://swiftshader-review.googlesource.com/2111
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Tue, 10 Feb 2015 18:54:19 +0000 (13:54 -0500)]
Provide safer and more convenient constant union accessors.
Bug
19331817
Change-Id: Ia2dccfbc983750fc484a578013c90a1dd501eb6d
Reviewed-on: https://swiftshader-review.googlesource.com/2110
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Maxime Gregoire [Wed, 11 Feb 2015 15:13:20 +0000 (10:13 -0500)]
OpenGL 2.1 Simple test cube application
Change-Id: I6609158f6b675082591ebe0f198e43e3218ffc34
Reviewed-on: https://swiftshader-review.googlesource.com/2170
Tested-by: Maxime Grégoire <mgregoire@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Wed, 11 Feb 2015 20:29:25 +0000 (15:29 -0500)]
Add OpenGL ES 3.0 entry function stubs.
Bug
19353461
Change-Id: Ib48ae3263a1a570067dc0bc9a3dd2252f5a282a3
Reviewed-on: https://swiftshader-review.googlesource.com/2191
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Wed, 11 Feb 2015 20:11:41 +0000 (15:11 -0500)]
Add OpenGL ES 3.0 headers.
Bug
19353461
Change-Id: I8fddcb3afec4382029a638077e92c90df2f1b5b5
Reviewed-on: https://swiftshader-review.googlesource.com/2190
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Tue, 10 Feb 2015 16:41:49 +0000 (11:41 -0500)]
Predefine GL_FRAGMENT_PRECISION_HIGH.
Bug
19331817
Change-Id: Ic0182a2413b6eee5343cde63f4655327bdc1d479
Reviewed-on: https://swiftshader-review.googlesource.com/2092
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Fri, 30 Jan 2015 05:33:26 +0000 (00:33 -0500)]
Implement an OpenGL 2.1 prototype.
Bug
18962347
Change-Id: I9a7b07647b1b3f561dd9e4597670e63641b155a8
Reviewed-on: https://swiftshader-review.googlesource.com/1810
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Thu, 29 Jan 2015 20:10:09 +0000 (15:10 -0500)]
Share the name space implementation between all GL versions.
Bug
18962347
Change-Id: Ifd7ca4142d90798d0bbe2defa9337bac17e20daf
Reviewed-on: https://swiftshader-review.googlesource.com/1881
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Fri, 30 Jan 2015 04:46:44 +0000 (23:46 -0500)]
Access binding pointer objects through operators.
Bug
18962347
Change-Id: Ia28555a8b3e8923309e3a760d78fa276bd7b8c8d
Reviewed-on: https://swiftshader-review.googlesource.com/1890
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Thu, 29 Jan 2015 19:44:24 +0000 (14:44 -0500)]
Make the Object class independent of the GL version.
Bug
18962347
Change-Id: Ica99629bf58e799d6552d4a92ce3ae3eff57da27
Reviewed-on: https://swiftshader-review.googlesource.com/1880
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Thu, 29 Jan 2015 09:48:40 +0000 (04:48 -0500)]
Optimize fixed-function states.
Bug
18962347
Change-Id: I63dcba43c7c8383e5fcb5d2c817f1c2fb52f0e86
Reviewed-on: https://swiftshader-review.googlesource.com/1862
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Thu, 29 Jan 2015 09:07:10 +0000 (04:07 -0500)]
Fix passthru of non-float texture coordinates.
Bug
18962347
Change-Id: I8976c11ef5cc0b8aeb902414b2d36e0375c57747
Reviewed-on: https://swiftshader-review.googlesource.com/1861
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Tue, 27 Jan 2015 06:52:41 +0000 (01:52 -0500)]
Add support for quad primitives.
Bug
18962347
Change-Id: Id13ef61a8aaacd88afb0b3e634ae971d44e39cd7
Reviewed-on: https://swiftshader-review.googlesource.com/1860
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Tue, 27 Jan 2015 06:46:53 +0000 (01:46 -0500)]
Implement support for wide lines.
Bug
18962347
Change-Id: I673610bfd50bc0e09aedd764336c7e10cfa11e08
Reviewed-on: https://swiftshader-review.googlesource.com/1831
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Mon, 26 Jan 2015 05:23:01 +0000 (00:23 -0500)]
Make OutputASM header independent of GL headers.
Bug
18962347
Change-Id: I90e3179b8b6e1ff8c8ac4c856c632252f098b95e
Reviewed-on: https://swiftshader-review.googlesource.com/1830
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Alexis Hetu [Tue, 10 Feb 2015 20:44:19 +0000 (15:44 -0500)]
Fixed depth test for 3D texture test
Change-Id: I80a735a614a132319903298594f1990c49efdee4
Reviewed-on: https://swiftshader-review.googlesource.com/2140
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Alexis Hetu [Mon, 19 Jan 2015 20:56:12 +0000 (15:56 -0500)]
Adding Texture3D support.
Bug
19126833
Added Texture3D argument verifications.
Added the basic API and functions. A few are still unimplemented:
- Image::loadCompressedData() (for depth other than 1)
- Texture3D::copyImage()
- Texture3D::generateMipmaps()
Added colour grading test for 3D texture
Change-Id: I9e52afa7213999f94c5916c2f301fc6fa4b42c0d
Reviewed-on: https://swiftshader-review.googlesource.com/1730
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Maxime Gregoire [Tue, 27 Jan 2015 18:34:25 +0000 (13:34 -0500)]
OpenGL ES environment texture partial implementation
Change-Id: I0dcce9f2659cfdde8cc4d5a0a541bea7728b3f97
Reviewed-on: https://swiftshader-review.googlesource.com/1850
Tested-by: Maxime Grégoire <mgregoire@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Thu, 29 Jan 2015 18:20:27 +0000 (13:20 -0500)]
Provide missing OpenGL ES 1.x extension for implementation read format/type.
Bug
14643416
Change-Id: Ie710b76fcf1f64849a4f0556c3f0db587304000e
Reviewed-on: https://swiftshader-review.googlesource.com/1870
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Tue, 27 Jan 2015 19:58:57 +0000 (14:58 -0500)]
Work around a GCC miscompilation issue.
Bug
18470793
Change-Id: Idac85c738810db112e7af56f5e1635c2ac6d325c
Reviewed-on: https://swiftshader-review.googlesource.com/1841
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Alexis Hetu [Tue, 27 Jan 2015 19:09:34 +0000 (14:09 -0500)]
Fix for the Linux build
Bug
19162574
Change-Id: I22a3630104d22c52683f326ad1dd1a0ed334ff93
Reviewed-on: https://swiftshader-review.googlesource.com/1840
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
Maxime Gregoire [Thu, 22 Jan 2015 22:36:47 +0000 (17:36 -0500)]
OpenGL ES 1.1 colorPointer function implementation
Change-Id: I3ebc7fe90ced42f43c8adb4b69205dc26096d963
Reviewed-on: https://swiftshader-review.googlesource.com/1800
Tested-by: Maxime Grégoire <mgregoire@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Mon, 26 Jan 2015 03:29:07 +0000 (22:29 -0500)]
Initialize texture stage alpha modifiers.
Bug
18962347
Change-Id: I3e9e89d82f61b2d129b5209d877234a6e5ac8c96
Reviewed-on: https://swiftshader-review.googlesource.com/1820
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Thu, 22 Jan 2015 21:51:44 +0000 (16:51 -0500)]
Add desktop OpenGL headers.
Bug
18962347
Change-Id: Icf55a2dae3c0974174c514cc148e8fbe0d2f5200
Reviewed-on: https://swiftshader-review.googlesource.com/1792
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Maxime Gregoire [Thu, 22 Jan 2015 21:16:14 +0000 (16:16 -0500)]
OpenGL ES 1.1 fog implementation
Change-Id: I983552d8bc251a62ddab99386273c1d5e34fd812
Reviewed-on: https://swiftshader-review.googlesource.com/1780
Tested-by: Maxime Grégoire <mgregoire@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Alexis Hetu [Thu, 22 Jan 2015 21:49:40 +0000 (16:49 -0500)]
Templated loadImageData functions to make 3D integration easier
Change-Id: I552a040e7ff8bb1b869766788b386efd578fe010
Reviewed-on: https://swiftshader-review.googlesource.com/1791
Reviewed-by: Nicolas Capens <capn@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
Nicolas Capens [Thu, 22 Jan 2015 16:10:37 +0000 (11:10 -0500)]
Rename the desktop OpenGL namespace to gl.
Bug
18962347
Change-Id: I0bb263b749d3af3362b2fdc02d81ab856e0f46b4
Reviewed-on: https://swiftshader-review.googlesource.com/1770
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Thu, 22 Jan 2015 14:33:04 +0000 (09:33 -0500)]
Rename the GLSL shader compiler namespace to glsl.
Bug
18962347
Change-Id: I28d001045cf43eed2d92cb0007330dffa620025b
Reviewed-on: https://swiftshader-review.googlesource.com/1760
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Thu, 22 Jan 2015 14:31:59 +0000 (09:31 -0500)]
Make the GLSL compiler independent of the API shader class.
Bug
18962347
Change-Id: I1a45c5572a45a16ae04ab77e7029ab31905ac702
Reviewed-on: https://swiftshader-review.googlesource.com/1750
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Mon, 19 Jan 2015 21:50:58 +0000 (16:50 -0500)]
Add libGL to the Visual Studio solution.
Bug
18962347
Change-Id: Ife807755d9f30aaf8b7b5591254fdeead25b3fbc
Reviewed-on: https://swiftshader-review.googlesource.com/1725
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Fri, 9 Jan 2015 22:38:27 +0000 (17:38 -0500)]
Rename libGLESv2 to libGL.
Bug
18962347
Change-Id: Ia6c6c07f79a076ef836d60a3809614bcb16add32
Reviewed-on: https://swiftshader-review.googlesource.com/1724
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Fri, 9 Jan 2015 22:21:17 +0000 (17:21 -0500)]
Copy libGLESv2 to libGL.
Bug
18962347
Change-Id: I1864755cac7f009119d0efb5278d7dfe3e669354
Reviewed-on: https://swiftshader-review.googlesource.com/1723
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Wed, 21 Jan 2015 20:50:55 +0000 (15:50 -0500)]
Remove the Radiance compiler copy and use OpenGL's instead.
Bug
18591036
Change-Id: I17158acfa126490e28076052e5937d1deafd96c1
Reviewed-on: https://swiftshader-review.googlesource.com/1691
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Nicolas Capens [Tue, 20 Jan 2015 15:20:46 +0000 (10:20 -0500)]
Increment the version number.
Change-Id: I4ff0039b29da0afeb77198aeabbcc5a5403b283b
Reviewed-on: https://swiftshader-review.googlesource.com/1731
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
Maxime Gregoire [Wed, 14 Jan 2015 13:41:26 +0000 (08:41 -0500)]
Added architecture details to DLL's descriptions
Bug
18999966
Change-Id: If5efde5dfb6ae30f43b63358cf4f2e0ebfda38cc
Reviewed-on: https://swiftshader-review.googlesource.com/1703
Tested-by: Maxime Grégoire <mgregoire@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Nicolas Capens [Mon, 17 Nov 2014 04:28:38 +0000 (23:28 -0500)]
Fix eglGetDisplay(EGL_DEFAULT_DISPLAY) on Linux.
Nicolas Capens [Fri, 14 Nov 2014 22:38:33 +0000 (17:38 -0500)]
Add the OGLES2HelloTriangle sample to the Linux build.
Change-Id: Ia58a554b682fa9a6ce87a4a4274013ee1a7d0b50
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>