Commit Graph

64 Commits

Author SHA1 Message Date
Ehsan Akhgari
478ad1a412 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Christoph Diehl
00189075e7 Bug 686732 - Implement minimal-capabilities WebGL mode - r=bjacob 2011-10-13 08:09:22 -04:00
Benoit Jacob
41696c3210 Bug 684882 - on Macs with Intel GPUs, limit cube map size to 512 - r=jrmuizel 2011-09-29 10:13:49 -04:00
Michael Wu
0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Doug Sherk
c94579c29d Bug 683710: added stripping of comments from shader sources before compiling and check for illegal characters, mostly from webkit code r=bjacob
This code is copied mostly from WebKit. It strips out comments from shader source code before actually compiling it, so that the comments can have illegal characters. It was benchmarked and it was noted that a test attached to the bug ticket took about twice as long with these changes.

This includes the patch from bug 680722 to check for illegal characters.
2011-09-07 17:17:44 -04:00
Phil Ringnalda
409f208c61 Back out d333f4021aaf, 5e90688c720e and bdb0bff93ce8 for Windows build redness 2011-09-07 15:20:26 -07:00
Doug Sherk
3951b26eb3 Bug 683710: added stripping of comments from shader sources before compiling and check for illegal characters, mostly from webkit code r=bjacob
This code is copied mostly from WebKit. It strips out comments from shader source code before actually compiling it, so that the comments can have illegal characters. It was benchmarked and it was noted that a test attached to the bug ticket took about twice as long with these changes.

This includes the patch from bug 680722 to check for illegal characters.
2011-09-07 17:17:44 -04:00
Benoit Jacob
e59d72eaed back out 1b09c80c46c3 (bug 680722, WebGL shader validation) because of regression, see bug 684312 and 683710 2011-09-02 15:43:03 -04:00
Doug Sherk
326f7ebb13 Bug 680722: added invalid character checks to WebGL functions r=bjacob 2011-08-25 14:27:52 -04:00
Benoit Jacob
5af7130aff Bug 674042 - WebGL: crash in getUniformLocation with too long uniform identifiers - r=jrmuizel
This limits the length of uniform and attrib identifiers to 4095 characters, to steer clear GL implementation bugs with too long identifiers. The 4095 is totally arbitrary, all we know is that crashes happen after 2^22 chars.
2011-07-28 17:12:31 -04:00
Michael Wu
8d598fd0bb Bug 671185 - Incorrect return of NS_ERROR_* codes in functions returning PRBool, r=mak,ehsan,taras,biesi,pike,khuey,dholbert,josh,bjacob,bsmith 2011-07-25 21:57:58 -07:00
Benoit Jacob
f8357d23cf Bug 665070 - part 4: rename mSynthesizedGLError to mWebGLError - r=jrmuizel 2011-07-07 20:01:16 -04:00
Benoit Jacob
588f2a000e Bug 665070 - part 2: use GetAndClearError in WebGL initialization - r=jrmuizel 2011-07-07 20:01:16 -04:00
Benoit Jacob
1e8d92889e Bug 638549 - WebGL about:memory - part 1: initial implementation accounting for WebGLContexts and WebGLTextures - r=jrmuizel 2011-07-07 20:01:12 -04:00
Masayuki Nakano
0b9db0f2e6 Bug 663039 content should use mozilla::Preferences r=roc+jwatt+chris.double+bjacob 2011-07-07 11:00:02 +09:00
Benoit Jacob
8a1b1774c4 Bug 664066 - Initialize GL values - r=karlt
This patch initializes by zero the GL max values before we query them, just in case a buggy OpenGL implementation's glGetIntegerv function would fail to set them.

This patch also manually sets the initial values of mPixelStorePackAlignment and mPixelStoreUnpackAlignment as per the spec, rather than querying them from the GL.
2011-06-27 13:27:04 -04:00
Benoit Jacob
001a8b8107 Bug 664066 - remove useless C casts in WebGL code - r=karlt
Just to make the code a little more robust.
2011-06-27 13:27:04 -04:00
Dominic Fandrey
532ec73933 Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
Benoit Jacob
b99aeb3a4b Bug 636942 - stencil separate param validation must now occur on draw calls - r=jrmuizel
We were validating these params when they're set, and that was non-conformant behavior.
2011-05-20 15:53:53 -04:00
Benoit Jacob
c0ac4771c6 Bug 636913 - state tracking needed for WebGL clear semantics - r=joedrew
We needed to remember more values instead of just passing them to the GL.
2011-05-20 15:53:53 -04:00
Vladimir Vukicevic
04380376c8 Bug 630672 - implement WebGL OES_texture_float extension - r=bjacob
This implements floating-point textures in WebGL
2011-05-20 15:53:53 -04:00
Benoit Jacob
246c25f502 Bug 635068 - WebGL test array-unit-tests.html fails - r=jag, a=blocking2.0 2011-03-03 11:02:35 -05:00
Benoit Jacob
6602209cd0 Bug 636002 - better messages about attrib index validation - r=jrmuizel, a=joe 2011-02-24 17:17:34 -05:00
Benoit Jacob
351a1331ff Bug 631643 - Check for ARB_ES2_compatibility before using it, fix MAX_VARYING_VECTORS emulation, clean up getParameters - r=vlad, a=jrmuizel 2011-02-11 18:11:30 -05:00
Kyle Huey
97155bd027 Backout 2011-02-11 23:08:16 -05:00
Benoit Jacob
7f5f157af1 Bug 631643 - Check for ARB_ES2_compatibility before using it, fix MAX_VARYING_VECTORS emulation, clean up getParameters - r=vlad, a=jrmuizel 2011-02-11 18:11:30 -05:00
Benoit Jacob
ea6c5880f0 Bug 569431 - Optimization in DrawElements - followup: fix warning - r=vlad, a=blocking2.0 2011-01-29 22:31:20 -05:00
Benoit Jacob
3a4de143dd Bug 569431 - Optimization in DrawElements - r=vlad, a=joe 2011-01-25 22:19:46 -05:00
Benoit Jacob
361d15cc99 Bug 616608 - Pass the rest of webgl-specific.html test - part 2/3: implement section 6.5 on separate parameters - r=vlad 2010-12-06 06:34:35 -05:00
Benoit Jacob
9c89792a33 Bug 615013 - Implement section 6.8 on mutually incompatible blend factors - r=vlad 2010-12-06 06:34:35 -05:00
Benoit Jacob
a637a05a8d Bug 607774 - Implement the spec on Renderbuffers and Framebuffers - r=vladimir 2010-11-05 15:57:58 -04:00
Benoit Jacob
87e07899cb Bug 598838 - Fix WebGL messages (were printing uninitialized values) - r=vladimir 2010-10-15 17:50:15 -04:00
Benoit Jacob
db0cbcb824 Bug 593496 - Fix WebGL textures: conversions, flipping, premultiplication, unpack alignment - r=vladimir 2010-10-15 17:50:15 -04:00
Benoit Jacob
30d593376d fix compilation on windows. r+a=fixing-bustage 2010-10-06 17:07:16 -04:00
Benoit Jacob
886b0e33f3 Bug 602183 - Crash [@ atioglxx.dll@0x15a1d3 ] on certain site - r=joe, a=blocking2.0-b7 2010-10-06 16:43:21 -04:00
Benoit Jacob
18ac6a895f Bug 596034 - make sure gl_PointCoord is available in the shader language - r=vladimir, a=blocking-beta7 2010-09-27 16:20:15 -04:00
Benoit Jacob
b8c3128eb4 Bug 596032 - check and clear GL error flag after WebGL initialization - r=vladimir, a=blocking2.0 2010-09-16 12:45:01 -04:00
Vladimir Vukicevic
61bab74272 b=593720; make webgl less verbose; r=bjacob 2010-09-13 08:40:01 -07:00
Benoit Jacob
2fb9fe75d4 Bug 571054 - emulate vertex attrib 0 on desktop GL - r=vladimir 2010-09-02 10:34:08 -04:00
Vladimir Vukicevic
1942bfc84b b=589011; always check if webgl shader validator is enabled; r=joe, a=blocking 2010-08-19 19:50:38 -07:00
Vladimir Vukicevic
b46deb0d6b b=585502; WebGL shader validation crash; r=bjacob 2010-08-09 23:51:56 -07:00
Vladimir Vukicevic
d54f2d293e b=580345; fix up some GLESv2 vs. desktop GL differences; r=joe 2010-07-28 14:24:09 -07:00
Vladimir Vukicevic
e67272d20c b=573720; some small fixes to make OSMesa work; r=bjacob 2010-07-18 22:01:14 -07:00
Vladimir Vukicevic
a99bd4a093 b=571831; use the new CreateOffscreen API in WebGL; r=bjacob 2010-07-18 22:01:14 -07:00
Benoit Jacob
26d4e83470 b=578164; better invalid enum messages; r=vladimir 2010-07-16 10:31:48 -04:00
Vladimir Vukicevic
fde15dcb06 b=571172; disable ANGLE compilation on Linux-x86_64, until build slaves are fixed 2010-07-14 20:52:37 -07:00
Vladimir Vukicevic
99aabdb614 b=571172; import and use ANGLE GLSL ES shader validator (disabled by default for now); r=joe 2010-07-14 20:52:34 -07:00
Benoit Jacob
6a6a0e6068 b=576620; fix bufferData parameter validation; r=vladimir 2010-07-03 18:34:07 -04:00
Benoit Jacob
62eb94f239 b=576067; Let WebGL use CheckedInt; r=vladimir 2010-07-03 18:32:19 -04:00
Benoit Jacob
5f9003d078 b=573705; fix computation of texel sizes and refactor WebGLenum validation functions; r=vladimir 2010-06-30 11:49:59 -04:00