Граф коммитов

91 Коммитов

Автор SHA1 Сообщение Дата
Jeff Gilbert 35f892e782 Bug 1607940 - Stand up webgl.out-of-process:true path. r=handyman,nika,froydnj
* Use clearer pref names.
* Default (and only support) IPDL dispatching.
* Make DispatchCommands async-only.
* Sync ipdl command per sync webgl entrypoint.
  * Eat the boilerplate cost, since there's not too many.
* Run SerializedSize off same path as Serialize.
* All shmem uploads go through normal DispatchCommands.
* Defer pruning of dead code for now so we can iterate quickly.
* Use Read/Write(begin,end) instead of (begin,size).
  * This would have prevented a bug where we read/wrote N*sizeof(T)*sizeof(T).

Differential Revision: https://phabricator.services.mozilla.com/D81495
2020-07-21 22:56:52 +00:00
Jeff Gilbert 0dfd1a2a0d Bug 1477756 - Fix all webgl regression tests according to CI. r=handyman
(This is a combination of 31 commits)

* Fix Linux compilation.

* Fix mac compilation.

* CI compile fixes.

* printf's size_t is %zu. %tu would be unsigned ptrdiff_t.

* No non-ref Maybe args.

* MOZ_CRASH for noreturn

* Handle implied texture sizes, rewrite comment stripping.

* Replace e.g. WebGLProgramInner with simpler webgl::ProgramKeepAlive.

* Bounce ValidateProgram call off driver.

* Uniform name length limit, cubemap fb-attach, non-array uniforms, undersized texImage views.

* alignas for uint8_t[sizeof(float)*N] pun buffers.

* CC fixes?

* Fill attrib0Active.

* Repair max-warnings limit.

* This is basically required in order for CI's logging to not explode.

* Don't cache WebGLMemoryTracker.

* Deleted prog/shader error, no texSubImage(null), client-side fingerprint resist for exts.

* Fix GetUniformIndices and MakeRangeFromView.

* CC Traverse base class from within derived class to fix leaking the world. :(

* PauseTransformFeedback
* TexImage video fastpath
* GetFragLocation for arrays
* Forbid BindBufferRange during TF

* Mark tests and fix RBAB query and test.

* Change(!) query deletion behavior to match spec.
* Mark conformance2/query/query.html failing for now.

* Implicitly EndQuery on DeleteQuery while spec is in flux.

* Fix error code for test.

* RAII LruPosition for WebGL context limit.

* Include std::list.

* Mark CompileResult and LinkResult.pending as false when retrieved.

* Hold strong-ref to NotLostData during Run<> to prevent LoseContext=>UAF.

* Don't assume GetUniformLocation(foo+'[0]') means foo is an array.
* Don't assume !mCanvasElement means !!mOffscreenCanvas.

* Handle composition while context-lost.

* All non-value-init members must be const or have inline init.

* Mark passing tests on Linux.

Depends on D54019

Differential Revision: https://phabricator.services.mozilla.com/D55739

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:23 +00:00
Jeff Gilbert e1d0fe64bb Bug 1477756 - Client-side bindings mirror for precise CC, and merge similar codepaths. r=handyman
* Context loss using RAII
* Move Program reflection Client-side

Depends on D54018

Differential Revision: https://phabricator.services.mozilla.com/D54019

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:16 +00:00
David Parks 198fa063c2 Bug 1477756 - Initial out-of-process WebGL implementation. r=mccr8,handyman
Splits WebGLContext into ClientWebGLContext and HostWebGLContext.  The Client enables the JS-control of a WebGL context in a content procecss while the Host executes the WebGL graphics operations (via a WebGLContext that maintains much of the existing code) in the compositor process.  At this point, the cross-process behavior is disabled -- this series of patches is an incremental step toward that final goal.

Differential Revision: https://phabricator.services.mozilla.com/D54018

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:14 +00:00
Jeff Gilbert 047e98938e Bug 1536672 - Implement WebGL OVR_multiview2 behind draft flag. r=lsalzman,qdot
Also disable clang-format for gfx/gl/GLConsts.h.

Differential Revision: https://phabricator.services.mozilla.com/D28168

--HG--
extra : moz-landing-system : lando
2019-05-23 20:48:21 +00:00
Mihai Alexandru Michis 354eec452c Backed out changeset a649f69f29df (bug 1536672) for failing crashtest at WebGLContextValidate.cpp. CLOSED TREE 2019-05-23 10:57:29 +03:00
Jeff Gilbert fb7050f9bf Bug 1536672 - Implement WebGL OVR_multiview2 behind draft flag. r=lsalzman,qdot
Also disable clang-format for gfx/gl/GLConsts.h.

Differential Revision: https://phabricator.services.mozilla.com/D28168

--HG--
extra : moz-landing-system : lando
2019-05-23 02:43:11 +00:00
Jeff Gilbert 156c882fc3 Bug 1533525 - Don't freely convert WebGL(int|sizei)ptr to GL(int|sizei)ptr. r=lsalzman 2019-04-11 20:28:06 -07:00
Narcis Beleuzu f12656eec3 Backed out changeset bdc40c000b29 (bug 1533525) for build bustages on WebGLTypes.h . CLOSED TREE 2019-04-10 03:17:41 +03:00
Jeff Gilbert a513ab4d25 Bug 1533525 - Don't freely convert WebGL(int|sizei)ptr to GL(int|sizei)ptr. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D26631
2019-04-09 16:41:16 -07:00
Tooru Fujisawa 7983faeb5d Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Ehsan Akhgari 6099c9f67b Bug 1508472 - Part 1: First batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13046

--HG--
extra : moz-landing-system : lando
2018-11-27 10:08:58 +00:00
Jeff Gilbert b5299cdebb Bug 1478909 - Make funcName implicit for WebGL calls. - r=kvark
MozReview-Commit-ID: Gv77SnHZcGb
2018-08-09 14:35:01 -07:00
Dorel Luca 5ef9c6f716 Backed out changeset e8023a02b6c2 (bug 1478909) on dev's request 2018-08-09 04:58:04 +03:00
Jeff Gilbert 8e0436b208 Bug 1478909 - Make funcName implicit for WebGL calls. - r=kvark
MozReview-Commit-ID: Gv77SnHZcGb
2018-08-08 16:15:12 -07:00
dmu@mozilla.com 280b27a0fb Bug 1359055 - Part 1: PBO offset for WebGL compressedTexImage; r=baku,jgilbert
MozReview-Commit-ID: LN2diy41A2Z

--HG--
extra : rebase_source : d77ee2b289348e0609bac248dfab670c72623fa0
2017-07-18 18:02:57 +00:00
Jeff Gilbert a719834c77 Bug 1330022 - Remove trivial ValidateUniformMatrixTranspose virtual. - r=kvark
Removing a file reshuffled our unified builds, so this includes the fixes that required as well.
MozReview-Commit-ID: 7ZIoG2xIlS9
2017-02-13 15:37:57 -08:00
Jeff Gilbert 5a028b1063 Bug 1330022 - Centralize VertexAttrib[I]Pointer calls to improve perf. - r=kvark
MozReview-Commit-ID: IcGNZhJTU5K
2017-02-13 15:37:54 -08:00
Sebastian Hengst e430d3ec19 Backed out changeset 0528322db042 (bug 1330022) for failing test_conformance__more__functions__vertexAttribPointerBadArgs.htm. r=backout 2017-02-10 23:32:32 +01:00
Sebastian Hengst 2e61c07a59 Backed out changeset cd91d6b1b500 (bug 1330022) 2017-02-10 23:31:47 +01:00
Jeff Gilbert 19c60a97a2 Bug 1330022 - Remove trivial ValidateUniformMatrixTranspose virtual. - r=kvark
Removing a file reshuffled our unified builds, so this includes the fixes that required as well.
MozReview-Commit-ID: 7ZIoG2xIlS9
2017-02-10 13:31:10 -08:00
Jeff Gilbert ef8ebd3d10 Bug 1330022 - Centralize VertexAttrib[I]Pointer calls to improve perf. - r=kvark
MozReview-Commit-ID: IcGNZhJTU5K
2017-02-10 13:31:08 -08:00
Jeff Gilbert 0b065a7b71 Bug 1325301 (flattened) - Validate attribute base types match data base types. - r=bz,daoshengmu
Flattened with:
* Clean up generic vertex attribs. - r=bz,daoshengmu
* Remove EnsureAttrib() and friends. - r=daoshengmu
* Simplify EnumName behavior and usage and add ErrorInvalidEnumArg(). - r=daoshengmu
2016-12-29 02:46:46 -08:00
Jeff Gilbert f74960ccbf Bug 1325333 - Check type of buffer to be cleared by Clear[Buffer]. - r=daoshengmu
MozReview-Commit-ID: 8A37aTeW25t
2016-12-29 02:45:08 -08:00
Jeff Gilbert 798acabef4 Bug 1325500 (flattened) - Fix DrawRangeElements impl and require size=4 for packed int types. - r=daoshengmu
MozReview-Commit-ID: B3YpgZn48Nl
2016-12-25 13:44:47 -08:00
Boris Zbarsky 7607f4c0dd Bug 1324543 - Fix inheritance in our webidl. - r=jgilbert,bz
MozReview-Commit-ID: 7W95FqqfBuE
2016-12-20 15:48:20 -08:00
Jeff Gilbert cd75194b2c Bug 1202427 - Stub DrawRangeElements into DrawElements. - r=daoshengmu
MozReview-Commit-ID: 2rlnPFcvfEd
2016-12-20 13:20:09 -08:00
Jeff Gilbert 63439e0683 Bug 1324626 - Pick a MAX_CLIENT_WAIT_TIMEOUT_WEBGL. - r=lenzak800
MozReview-Commit-ID: L4gaasXZYFb
2016-12-20 13:20:07 -08:00
Jeff Gilbert 51d744aa93 Bug 1320030 - Simplify marking and deletion checks. - r=ethlin 2016-12-07 01:35:28 -08:00
Jeff Gilbert (:jgilbert) 43a63d8e17 Bug 1310247 - Use pointers instead of references to prevent taking the address of temporary integers. - r=ethlin
MozReview-Commit-ID: FG1NsAs3iG0
2016-11-23 13:19:11 -08:00
Jeff Gilbert (:jgilbert) 1a57a7121a Bug 1318507 - Update implementation. - r=ethlin 2016-11-22 23:59:24 -08:00
Jeff Gilbert (:jgilbert) b054199751 Bug 1308057 - Merge WebGLTimerQuery into WebGLQuery. - r=ethlin
MozReview-Commit-ID: 88b8DLd2uJ6
2016-11-14 14:04:41 -08:00
Jeff Gilbert (:jgilbert) 851bd95543 Bug 1313541 - Fix compressedTexImage size validation. - r=ethlin
MozReview-Commit-ID: 4o83xIMyYMD
2016-10-31 15:03:31 -07:00
Jeff Gilbert (:jgilbert) cafb4ccac4 Bug 1313541 - Rewrite TexImageSource glue. - r=ethlin
MozReview-Commit-ID: 4zwNrobTcUf
2016-10-31 15:03:24 -07:00
Jeff Gilbert (:jgilbert) 4b2a875e8b Bug 1313541 - Reimplement glue in accordance to webidl deviation minimization. - r=ethlin
MozReview-Commit-ID: 6w56cfegTz5
2016-10-31 15:03:22 -07:00
Jeff Gilbert (:jgilbert) 4d5bc96887 Bug 1313541 - ClearBuffer impl. - r=ethlin
MozReview-Commit-ID: BcniOSuYh6O
2016-10-31 15:03:17 -07:00
Jeff Gilbert (:jgilbert) ec29704197 Bug 1313541 - Uniform impl. - r=ethlin
MozReview-Commit-ID: DN8sUfRR0z7
2016-10-31 15:03:09 -07:00
Jeff Gilbert (:jgilbert) b9f6f1e47e Bug 1313541 - Texture impl. - r=ethlin
MozReview-Commit-ID: DEyr93aD3IF
2016-10-31 15:03:05 -07:00
Jeff Gilbert (:jgilbert) ab4d2d1cc5 Bug 1313541 - Texture impl. - r=ethlin
MozReview-Commit-ID: GEYMTnqC9Q3
2016-10-31 15:03:00 -07:00
Jeff Gilbert (:jgilbert) 6ffdc434af Bug 1313541 - GetBufferSubData impl. - r=ethlin
MozReview-Commit-ID: BOQYxIAqsDN
2016-10-31 15:02:56 -07:00
Jeff Gilbert (:jgilbert) 820fc3c54a Bug 1313541 - ReadPixels impl. - r=ethlin
MozReview-Commit-ID: HInjyzjTdEY
2016-10-31 15:02:44 -07:00
Jeff Gilbert 6b423ece44 Bug 1300946 - Implement transform feedback. - r=jrmuizel
MozReview-Commit-ID: 1xrEX4Srij1
2016-09-22 19:13:21 -07:00
Jeff Gilbert 5ca4e283fa Bug 1303878 - Fix todos in WebGL. - r=mtseng
MozReview-Commit-ID: D15kLfHERAI
2016-09-22 19:13:16 -07:00
Jeff Gilbert 34aa7ab5f7 Bug 1293845 - Repair texture bindings->internals glue. - r=mtseng
MozReview-Commit-ID: CUDQGwhPTuU
2016-08-15 16:42:25 -07:00
Sebastian Hengst 765223d123 Backed out changeset ca7b62d9efb7 (bug 1293845) 2016-08-13 12:38:25 +02:00
Jeff Gilbert fb75e3bc05 Bug 1293845 - Repair texture bindings->internals glue. - r=mtseng
MozReview-Commit-ID: CUDQGwhPTuU
2016-08-12 18:07:54 -07:00
Jeff Gilbert 407bc3c38c Bug 1288649 - Fix non-unified-build errors. - r=ethlin
MozReview-Commit-ID: EI7FtmuEBl7
2016-07-25 14:46:20 -07:00
Jeff Gilbert 3b7adaea8f Bug 1280499 - Add stubs and forwards. - r=ethlin
MozReview-Commit-ID: BZUAGCjnINM
2016-07-25 13:52:41 -07:00
Jeff Gilbert b13a015811 Bug 1136494 - Update uniform setters. - r=mtseng
MozReview-Commit-ID: 4jZrqgu4qQm
2016-07-18 00:19:19 -07:00