Commit Graph

198 Commits

Author SHA1 Message Date
Jeff Gilbert
bc6bfa1f21 Bug 621036 - Remove printfs from GLContextProviderCGL - r=bjacob 2012-04-09 19:51:29 -07:00
Jeff Gilbert
120971cba5 Bug 739421 - Implement/expose ARB_sync in GLContext - r=bjacob 2012-04-06 16:57:55 -07:00
Jeff Gilbert
e23d500463 Bug 741689 - Disable poorly implemented GL extensions on load - r=bjacob 2012-04-04 18:44:55 -07:00
Oleg Romashin
de66385f16 Bug 742544 - Don't change global shared context multiple times. r=jgilbert 2012-04-04 17:53:02 -07:00
Oleg Romashin
d56314193f Bug 742091 - Texture format detection broken by 740372. r=gwright 2012-04-04 14:32:21 -07:00
Ali Juma
8ac74e4ada Bug 741984 - Prevent tiled texture upload from going into an infinite loop. r=Cwiiis 2012-04-04 10:26:05 -04:00
Ali Juma
4d213a94dc Bug 740313 - Initialize TextureImage::mFilter. r=bgirard 2012-03-29 17:44:11 -04:00
Jeff Gilbert
66aaf4ba47 Bug 732765 - Fail gracefully when we lack GL functionality - r=bjacob 2012-03-29 13:47:20 -07:00
Ali Juma
7317da0f57 Bug 735230 - Part 4: Don't call MakeCurrent with a context and without a surface. r=gw280 2012-03-28 18:00:41 -04:00
Chris Lord
b250302b14 Bug 739604 - Don't leave mCurrentImage in an inconsistent state. r=ajuma
Setting MOZ_DUMP_PAINT_LIST when using tiled textures was causing crashes, one
of which was due to TextureImage function calls happening outside of tile
iteration and accessing invalid memory.

Fix this crash by reverting NextTile behaviour to never leave mCurrentImage
point to an invalid tile, as was the case prior to bug 732917.
2012-03-28 19:10:10 +01:00
Oleg Romashin
6b5cad0bce Bug 703155 - Port Mozilla Qt to Qt5. r=mark.finkle,mh+mozilla,dougt 2012-03-22 16:24:40 -07:00
Benoit Jacob
37c7455bdd Bug 737182 - limit max texture size on Mac Intel driver - r=bgirard 2012-03-26 12:15:53 -04:00
Oleg Romashin
fc68786498 Bug 738865 - Use Small Tiles should not be Android only. r=chrislord.net,bgirard 2012-03-24 18:08:06 -04:00
Oleg Romashin
f3f84a0f52 Bug 735602 - Add possibility to choose EGL backend on Non-Maemo Linux/Qt/Gtk builds instead ofo GLX. r=jgilbert 2012-03-23 14:43:52 -04:00
Chris Lord
16ce512a67 Bug 738740 - Fix handling of parameters in nsTArray::ReplaceElementAt. r=bz
Handle the parameters given to ReplaceElementAt the same way as those given to
other methods in the class. This allows removal of the & in GLContext.cpp that
was taking the address of a temporary, and causing a build error when using
clang, or when using GCC with particular parameters.
2012-03-23 19:27:25 +00:00
Chris Lord
4805acc58c Bug 737434 - Reuse tiles when resizing tiled textures. r=bgirard
Instead of scrapping all tiles when a tiled texture is resized, reuse as many
tiles as possible. Strictly speaking, more tiles could be reused, but the
selected reuse strategy maintains the spacial structure of the texture, and we
don't often resize in such a way as to make this inefficient.
2012-03-23 11:30:57 +00:00
Oleg Romashin
befc15b38e Bug 738137 - Try to create PBuffer offscreen context on NON-X11 builds always. r=jgilbert 2012-03-22 13:25:03 -07:00
Andreas Gal
7f4f170ffe Use BGRX shader for RGB24 image surfaces (bug 738178, r=joe). 2012-03-22 11:37:47 -07:00
Oleg Romashin
f482422c84 Bug 735164 - Handle properly WebGL offscreen context in Platform context environment. r=jgilbert 2012-03-21 17:16:31 -07:00
Oleg Romashin
814ef7ec72 Bug 736802 - Qt EGL Maemo compilation broken. r=joe 2012-03-21 16:14:14 -07:00
Oleg Romashin
75467d166c Bug 733562 - Offscreen FBO must not be created for Global Shared context. r=bjacob 2012-03-21 16:13:59 -07:00
Jeff Muizelaar
73b17dfe33 Bug 737686. Avoid glTexSubImage2D on PowerVR hardware. r=gwright
glTexSubImage causes a readback on PowerVR hardware if the texture
has already been uploaded. Disabling CanUploadSubTextures() brings
the median upload speed from 26ms to 10ms.
2012-03-20 19:13:50 -04:00
Hessam Salehi
7d69570885 Bug 474505 - Replace uses of nsVoidPtrHashkey with nsPtrHashKey<T>; r=bsmedberg 2012-03-21 14:07:31 -04:00
Michael Wu
81e7f68936 Bug 736902 - Remove support for unused SetSwapRectangleANDROID symbol, r=gal 2012-03-18 22:49:37 -04:00
Dão Gottwald
feaf15543e Backed out changeset 57d368003eb8 2012-03-20 13:13:24 +01:00
Oleg Romashin
24dca68145 Bug 733562 - Offscreen FBO must not be created for Global Shared context. r=bjacob 2012-03-20 12:23:14 +01:00
Chris Lord
018b526b78 Bug 732917 - Use tile iteration functions in DirectUpdate. r=ajuma
So that the tile iteration callback remains useful, use the public iteration
functions when iterating over tiles in TiledTextureImage::DirectUpdate.
2012-03-17 12:06:29 +00:00
Chris Lord
42c647aeae Bug 732917 - Add a callback function for tile iteration. r=ajuma
Add the ability to set a callback function to be called on tile iteration.
2012-03-17 12:06:29 +00:00
George Wright
ba2b96d27a Bug 732865 - Clean up the GLContext* classes. r=bgirard,joe
--HG--
extra : rebase_source : f4f057f354772ff38d37fbc6e179f3cde9e218d1
2012-03-16 18:24:12 -04:00
George Wright
01dbfa3c85 Backed out changeset aad5bc8b3433 2012-03-16 15:02:01 -04:00
George Wright
817530eb8d Bug 732865 - Clean up the GLContext* classes. r=bgirard,joe 2012-03-16 14:30:09 -04:00
Phil Ringnalda
807c91234e Back out 243cd4db5edd and 4175fc853e16 (bug 712716) for OS X 10.6 and 10.7 assertions 2012-03-15 23:21:54 -07:00
Benoit Girard
26f5681f0b Bug 712716 - Fix AndroidGraphicBuffer resource management. r=snorp,jmuizelaar 2012-03-12 16:28:02 -04:00
Benoit Girard
32745d1cc3 Merge mc->Maple 2012-03-13 11:05:28 -04:00
Ehsan Akhgari
dfa138382a Backout changeset b52bae0250f7 because of test failures 2012-03-12 18:51:17 -04:00
Benoit Girard
803f0eba61 Bug 712716 - Fix AndroidGraphicBuffer resource management. r=snorp,jmuizelaar 2012-03-12 16:28:02 -04:00
Kartikaya Gupta
12d4a57946 Merge m-c to maple 2012-03-12 10:41:42 -04:00
Oleg Romashin
72f8c34f42 Bug 734667 - Compilation fail on some toolchains due extra semicolon in EGL Provider. r=joe 2012-03-11 22:41:03 +01:00
Jeff Gilbert
1c94bfeca7 Bug 729702 - Use ReadPixelsIntoImageSurface in CopyToTarget instead of duplicating functionality - r=BenWa 2012-03-12 18:42:02 -07:00
Benoit Girard
c8515d0999 Merge mc->maple 2012-03-09 18:16:26 -05:00
Benoit Girard
fb79343e79 Merge mc->Maple 2012-03-09 11:13:30 -05:00
Chris Lord
45c6424900 Bug 734175 - Fix uploading all tiles when subtextures are unsupported. r=bgirard
The check for sub-texture support happens before iterating over tiles in
TiledTextureImage, and forces the bounds to the boundaries of the
TiledTextureImage. This causes any upload on a TiledTextureImage to re-upload
every single tile, regardless of whether it intersects with the upload region.

Fix this by moving this check inside of the tile iteration loop, and expanding
individual tile upload regions to tile boundaries.
2012-03-09 10:22:59 +00:00
Benoit Girard
0f0612ce47 Merge mc->Maple 2012-03-07 11:10:45 -05:00
Benoit Girard
7de784afd9 Bug 733113 - Maple: Remove debug logging. r=ajuma 2012-03-05 16:10:43 -05:00
Benoit Girard
392ef78337 Merge latest green changeset from mozilla-central to maple
--HG--
rename : dom/base/nsDOMMemoryReporter.cpp => dom/base/nsWindowMemoryReporter.cpp
rename : dom/base/nsDOMMemoryReporter.h => dom/base/nsWindowMemoryReporter.h
2012-03-05 13:41:15 -05:00
Benoit Girard
18b1521f00 Restore merge changeset 39a3044823b0, regression fixed upstream in mc 2012-03-05 13:09:05 -05:00
George Wright
74f1d29f5d Bug 674753 - Ensure that sApitraceLibrary is static so that we only load the library once - r=bjacob 2012-03-04 21:43:51 -05:00
Michael Wu
d82046881d Bug 734081 - Check pixel depth when choosing config on egl, r=cjones 2012-03-08 19:01:12 -05:00
Ryan VanderMeulen
4d57056b4d Back out 2175db811fad (bug 734081) due to Android reftest failures. 2012-03-08 18:41:28 -05:00
Michael Wu
d78d9dfe0a Bug 734081 - Check pixel depth when choosing config on egl, r=cjones 2012-03-08 17:06:54 -05:00
Matt Woodrow
80365647a2 Bug 732598 - Optionally load glGetTexLevelParameteriv - r=bjacob 2012-03-03 13:12:57 +13:00
Benoit Girard
b24e1949c2 Backed out changeset 39a3044823b0 because of bad interaction with maple. 2012-03-02 18:32:46 -05:00
Benoit Girard
77a9a7b782 Merge mc->Maple, resolved conflicts 2012-03-02 14:27:05 -05:00
Benoit Girard
08f33710af Merge mc->maple 2012-03-01 10:44:44 -05:00
Joe Drew
180a1da805 Bug 728625 - Add support for vertically flipping textured quads generated with RectTriangles and DecomposeIntoNoRepeatTriangles. r=bjacob,gw280
--HG--
extra : rebase_source : f42bd3c951651339d2ecb1286a6ac5c9e65ddd7d
2012-02-29 14:15:12 -08:00
George Wright
ed99bd0ed3 Bug 674753 - Add support for loading apitrace explicitly on Android - r=jrmuizel,bjacob 2012-02-29 16:55:46 -05:00
Benoit Jacob
adca3ded7f Bug 713305 - Force staying on discrete GPU while any WebGL context is live - r=jrmuizel 2012-02-29 15:49:55 -05:00
Benoit Girard
1038211c5c Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=joe 2012-02-24 18:17:27 -05:00
Joe Drew
78cc4e1443 Bug 729132 - Correctly handle the case that we try to draw a texture with x = width. r=mattwoodrow
--HG--
extra : rebase_source : 02d84bf78ef60d84dfb96832cd39267f5d99aa38
2012-02-24 15:08:31 -08:00
George Wright
b8ae25fc32 Bug 728041 - Only release the surface and not the context. r=ajuma 2012-02-24 16:20:15 -05:00
Doug Turner
df4f53ea90 Merge with mozilla-central 2012-02-24 11:57:27 -08:00
Benoit Girard
852a5157de Backout f8b7cca3297f, our leaktool can't handle statics :( 2012-02-23 20:10:23 -05:00
Benoit Girard
7f155d2527 Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=ajuma 2012-02-23 17:51:57 -05:00
Benoit Girard
1370d60bff backout 6ae546e8bc55 2012-02-23 17:53:40 -05:00
Benoit Girard
0d3e4904d9 Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=ajuma 2012-02-23 16:04:38 -05:00
Florian Boesch
ada0d9ea9e Bug 728354 - Implement WebGL EXT_texture_filter_anisotropic extension *proposal* - r=bjacob
The spec proposal for this extension is at
  https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/extensions/proposals/EXT_texture_filter_anisotropic/index.html

This adds a conformance test as well, that will have to be merged upstream.
2012-02-23 08:43:57 -05:00
Doug Turner
0aea58f84d merge with mozilla-central: 2012-02-22 09:30:09 -08:00
Oleg Romashin
bbcbbad700 Bug 733506 - WebGL FBO offscreen texture not initialized properly. r=bjacob 2012-03-06 23:29:38 +01:00
Daniel Holbert
035a95b9cf backout 29ee49bff6a1 (Bug 726396) due to webgl test failures 2012-02-22 16:37:36 -08:00
Jeff Gilbert
657e792781 Bug 726396 - Repair ANGLE d3d share handle fetching an PBuffer creation behavior - r=bjacob 2012-02-22 14:08:24 -08:00
Joe Drew
f0820375b8 Bug 728631 - remove a bunch of accidentally-committed debug code. 2012-02-21 13:15:39 -08:00
Joe Drew
f392e297d3 Bug 728631 - Don't disable blending inside our Java rendering code, because we rely on it remaining set from LayerManagerOGL. r=dougt
--HG--
extra : rebase_source : 9fe18ddb4582455fe428f14acb8a931e1b1e4661
2012-02-20 14:48:36 -08:00
George Wright
7382e27ea3 Bug 721489 - Older Adreno 200 drivers intermittently crash when uploading RGB565 textures with glTexImage2D - r=jrmuizel 2012-02-18 21:23:06 -05:00
Joe Drew
db776ab0d8 Bug 727311 - Disable BGRA readback support in GLES 2. r=bjacob 2012-02-18 18:12:33 -08:00
Brad Lassey
9e55996669 merge from mozilla-central 2012-02-18 17:29:33 -05:00
Brad Lassey
95697a85f1 backing out e45688c8531c because it broke the build 2012-02-18 14:21:48 -05:00
Patrick Walton
ce3f178378 Stub untested gralloc support, disabled for now 2012-02-17 23:53:21 -08:00
Ehsan Akhgari
4250f71ab1 Remove the warning because it's not useful, r=joe
--HG--
extra : rebase_source : 43086e16e842a602479e69d983107cedb8649aea
2012-02-17 15:12:06 -05:00
Patrick Walton
223d94e4a3 Bug 727688 - Disable tiles on SGX 540 to fix tearing 2012-02-17 13:33:37 -08:00
Doug Turner
b66a0f8126 Merge with mozilla-central 2012-02-16 18:06:54 -08:00
Oleg Romashin
39eb4f8ce1 Bug 732143 - WebGL on maemo6 N9 does not work anymore after FBO switch 720467. r=joe 2012-03-02 11:28:06 -06:00
Benoit Jacob
13c6322c74 Bug 713305 - fix copyright year - r=joedrew 2012-03-02 12:00:12 -05:00
Matt Woodrow
a7e5ef01f1 Bug 725209 - Mark TextureImage as valid when self copying, and correctly mark the region needing to be redrawn. r=joe 2012-02-15 16:03:05 -05:00
Benoit Girard
ec511777c5 Bug 727497 - Don't call CreateSurfaceForWindow in MakeCurrent in EGL. r=ajuma 2012-02-15 16:02:39 -05:00
Benoit Girard
1bd206dd9b Bug 727497 - Don't call CreateSurfaceForWindow in MakeCurrent in EGL. r=ajuma 2012-02-15 15:09:15 -05:00
Matt Woodrow
9fbf1226cb Bug 725209 - Mark TextureImage as valid when self copying, and correctly mark the region needing to be redrawn. r=joe 2012-02-15 22:28:21 +13:00
Benoit Girard
d6be33551c Change tilesize to 256x256 for progressive upload and adreno POT uploads 2012-02-14 13:19:46 -05:00
Mike Hommey
4ac4ed2ad7 Bug 728656 - Avoid crashing when there are no GL extensions reported by the GL implementation. r=bjacob 2012-02-20 08:04:38 +01:00
Benoit Girard
ece165b571 Bug 721489 - Backout changeset 0cb6641ab21a for a more desirable fix.
--HG--
extra : rebase_source : b8100a07f626c3cc51e019911a3b023b482d23b9
2012-02-10 15:12:35 -05:00
Joe Drew
566095dd27 Bug 725747 - Immediately translate setting the default FBO into our offscreen FBO, rather than setting it and unsetting it before and after GL draw commands. r=jgilbert 2012-02-09 20:57:26 -05:00
Jeff Gilbert
962319a6ca Bug 728724 - Check for BGRA read support correctly - r=bjacob 2012-03-12 15:21:16 -07:00
Jeff Gilbert
634df94f8d Bug 726396 - Repair ANGLE d3d share handle fetching an PBuffer creation behavior - r=bjacob 2012-03-12 15:10:38 -07:00
Benoit Girard
f778b545b3 Bug 721489 - Allocate a PoT Shmem for the Adreno. This replaces segfaults by visual artifacts
--HG--
extra : rebase_source : 400e392843cf2d15b941e7e94b736106e6b447e2
2012-02-09 17:52:03 -05:00
Ali Juma
c1890c2bfc Code cleanup. 2012-02-09 17:39:04 -05:00
Benoit Girard
7dc71cdb8d Merge m-c into maple 2012-02-08 16:43:22 -05:00
Benoit Girard
e26a5814c6 Undo accidental mq push (no commit hooks for mq) 2012-02-08 12:14:20 -05:00
Benoit Girard
407fd25478 imported patch TexSize256 2012-02-08 10:50:48 -05:00
Benoit Girard
b6054c170b Fix includes 2012-02-07 18:02:47 -05:00
Benoit Girard
3245650126 Bug 730079 - Move sCurrentGLContext to TLS to support off main thread GLDebug. r=joe 2012-02-24 18:17:27 -05:00
George Wright
3cc3396023 Bug 674753 - Ensure that sApitraceLibrary is static so that we only load the library once - r=bjacob 2012-03-04 21:43:51 -05:00