Commit Graph

452 Commits

Author SHA1 Message Date
Jeff Gilbert
6d7820531a Bug 1356540 - Remove unused TextureGarbageBin. - r=daoshengmu
MozReview-Commit-ID: 3EON2kNdEBh
2017-04-19 17:03:03 -07:00
Jeff Gilbert
a06569578f Bug 1347679 - Determine ContextProfile from driver and simplify version parsing. - r=daoshengmu
MozReview-Commit-ID: 4mBdJmsxQvD
2017-03-17 17:02:01 -07:00
Jeff Gilbert
b64a9ec335 Bug 1339256 - Don't assert on unrecognized context reset strategy - r=daoshengmu
MozReview-Commit-ID: CITo6W0FLQS
2017-03-09 18:57:49 -08:00
Jeff Gilbert
55623f032a Bug 1339256 - Double-check robustness. - r=daoshengmu
MozReview-Commit-ID: 20csUTf7q6e
2017-03-09 18:57:45 -08:00
Jeff Gilbert
510704a2da Bug 1339256 - Detect robust_buffer_access_behavior. - r=daoshengmu
MozReview-Commit-ID: 4w5D9bOQbY8
2017-03-09 18:57:41 -08:00
Tomislav Jurin
9ff3007b90 Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj 2016-12-02 13:46:53 -08:00
Jeff Gilbert (:jgilbert)
8f0b095b8c Bug 1250077 - Implement WEBGL_compressed_texture_astc. - r=ethlin
MozReview-Commit-ID: J2jB4tOJrTs
2016-11-28 18:12:32 -08:00
Chih-Yi Leu
f531e9cf46 Bug 1304291 - Move driver workaround code into fReadPixels and remove alpha check. r=jgilbert 2016-10-27 23:23:00 -04:00
Mason Chang
df57a440db Bug 1314338 - Disable OES_EGL_image extension on ATI drivers. r=jgilbert 2016-11-01 15:35:51 -07:00
Jamie Nicol
371656dc2a Bug 1026404 - Disable OES_EGL_image and OES_EGL_image_external on SGX 544 MP devices. r=eflores
EGLImageTargetTexture2D crashes on SGX 544 MP GPUs on Kit Kat with
either GL_TEXTURE_2D or GL_TEXTURE_EXTERNAL as the texture target. This
means that both OES_EGL_image and OES_EGL_image_external extensions do
not work and must be avoided.

MozReview-Commit-ID: DJmtUL6kexC
2016-10-26 15:28:08 +01:00
Jamie Nicol
501e16fcf9 Bug 1130739 - Disable OES_EGL_image_external on Mali 450. r=eflores
MozReview-Commit-ID: 2xx4zRYWlNu
2016-09-21 11:12:52 +01:00
Jamie Nicol
044e3bbf59 Bug 1288446 - Call glCheckFramebufferStatus after glFramebufferTexture2D to avoid driver crash; r=jrmuizel
Some PowerVR SGX540 devices running Android 4.0 were crashing when
uploading texture data with glTexSubImage2D. This was unearthed by a
Skia upgrade which removed what should have been an unnecessary OpenGL
call. This reinstates the OpenGL call which prevents the crash, but at a
GLContext level rather than in Skia.

MozReview-Commit-ID: Dub8VSs2Dzd
2016-09-08 15:29:44 +01:00
Jeff Gilbert
51e9b0b1e4 Bug 1287653 - Spew VENDOR/RENDERER. - r=mtseng
MozReview-Commit-ID: AVeY7hyqmgV
2016-08-18 14:07:03 -07:00
Jeff Gilbert
f1f5745751 Bug 1289655 - Add prim_restart and prim_restart_fixed GLFeatures. - r=mtseng
MozReview-Commit-ID: 7uXZkyZTvKW
2016-08-01 01:20:12 -07:00
Jamie Nicol
5dfe6a1dcc Bug 1289005 - Handle GL_BGRA_EXT in GetBytesPerTexel; r=snorp
Also, do not MOZ_CRASH for unknown types and formats. The
gfxCriticalError will assert in debug builds and provide the values of
unknown types or formats.

MozReview-Commit-ID: 46sWBdOdqiE
2016-07-25 14:24:34 +01:00
Jamie Nicol
8393234a92 Bug 1164027 - Use MAP_ANONYMOUS instead of opening /dev/zero. r=jrmuizel
MozReview-Commit-ID: 5GeNG5Tm1GS
2016-07-22 14:16:22 +01:00
Jamie Nicol
46b55780eb Bug 1164027 - Do not call glTexImage2D if likely to fail on Adreno 3xx devices; r=jrmuizel,snorp
There is a bug in the graphics driver for Adreno 3xx GPUs on android
versions up to 4.4 which segfaults if a texture allocation fails due to
virtual memory exhaustion.

On affected devices, guess whether an allocation would succeed and avoid
calling glTexImage2D where we believe it would fail. As the texture will
not be allocated this will likely cause problems such as black
rectangles appearing on the screen, but that is preferable to crashing.

MozReview-Commit-ID: 7xVI22pAdwb
2016-07-15 16:58:58 +01:00
Edwin Flores
3425f6909b Bug 1264505 - Disable OES_EGL_image_external extension on Mali-400 MP - r=jgilbert 2016-07-13 11:16:54 +01:00
e7d6c78a32 Bug 1280827 - Remove some obsolete OS X version checks in gfx/. r=jrmuizel. 2016-07-10 13:11:33 +02:00
Jeff Gilbert
288eafd7b9 Bug 1267879 - Fix logic.
MozReview-Commit-ID: JiZUQZYhrj1
2016-07-01 12:01:42 -07:00
Jeff Gilbert
f837383509 Bug 1267879 - Only check robustness if it's supported. - r=jrmuizel
MozReview-Commit-ID: 4RNjnWFccID
2016-07-01 12:01:39 -07:00
Sebastian Hengst
318228fe0d Backed out changeset ebf87300031f (bug 1267879) 2016-07-01 00:34:55 +02:00
Jeff Gilbert
a1f5b87c32 Bug 1267879 - Only check robustness if it's supported. - r=jrmuizel
MozReview-Commit-ID: 4RNjnWFccID
2016-06-30 13:51:53 -07:00
Jeff Gilbert
fb8ac21c34 Bug 1279657 - Star to left against type. - r=jrmuizel
MozReview-Commit-ID: IAuzZp4qcRX
2016-06-21 14:04:00 -07:00
Jeff Gilbert
24a32f90a4 Bug 1278403 - Choose GLContext::DebugFlags based on ContextCreateFlags. - r=jrmuizel
MozReview-Commit-ID: KSjIhu8I20C
2016-06-21 13:47:30 -07:00
Jeff Gilbert
143b18d9e0 Bug 1278403 - Spread CreateContextFlags to GLContext::ctor. - r=jrmuizel
MozReview-Commit-ID: 4rPitIpn60l
2016-06-21 13:47:30 -07:00
Carsten "Tomcat" Book
549e097eb2 Backed out changeset dfe70885c37c (bug 1279657) 2016-06-17 13:33:08 +01:00
Jeff Gilbert
f4d0e22d0d Bug 1279657 - Star to left against type. - r=jrmuizel
MozReview-Commit-ID: IAuzZp4qcRX
2016-06-17 05:10:55 -07:00
Phil Ringnalda
ce3bf57799 Back out 2 changesets (bug 1267879) for webgl crashes
CLOSED TREE

Backed out changeset 4f3df5eadf59 (bug 1267879)
Backed out changeset 4c2a18cac92b (bug 1267879)
2016-06-10 19:17:17 -07:00
Jeff Gilbert
a8e0ec9ead Bug 1267879 - Only check robustness if it's supported. - r=jrmuizel
MozReview-Commit-ID: 4RNjnWFccID
2016-06-10 17:47:18 -07:00
eyim
e2c2b0b56c Bug 1277027 - fix MOZ_CRASH to have GFX prefix in webGL code r=BenWa,milan
MozReview-Commit-ID: FjLA9xNH3zD
2016-06-06 11:17:23 -04:00
Kearwood (Kip) Gilbert
79c8d58f58 Bug 1111689 - Part 1: Let EXT_shader_texture_lod play when ARB_shader_texture_lod can play. r=jgilbert 2016-06-08 17:28:49 -07:00
Markus Stange
3cbf28a2c3 Bug 1265112 - Add support for NV_texture_barrier to GLContext. r=jrmuizel
MozReview-Commit-ID: 95j0YBKN1P1
2016-05-01 19:37:42 -04:00
Sebastian Hengst
362d54cb97 Backed out changeset 7d87fa0dc7ed (bug 1265112) for build bustage. r=backout 2016-04-30 00:52:25 +02:00
Markus Stange
ed55743b71 Bug 1265112 - Add support for NV_texture_barrier to GLContext. r=jrmuizel
MozReview-Commit-ID: 95j0YBKN1P1
2016-01-16 15:27:18 +01:00
Jeff Gilbert
990dcb9670 Bug 1266262 - Remove nearly-unused GLContext::mGLFormats. - r=jrmuizel 2016-04-25 13:17:25 -07:00
Jeff Gilbert
a8da4becf9 Bug 1262265 - Cleanup GLContext symbol init. - r=jrmuizel 2016-04-21 16:32:18 -07:00
Daniel Holbert
f10cb853d6 Backed out changeset d3aab3c4eb5f (Bug 1262265) for fatal GL-related assertion failures in debug reftest runs
MozReview-Commit-ID: BBmMY1dd1s7
2016-04-19 18:03:17 -07:00
Jeff Gilbert
18793c7422 Bug 1262265 - Cleanup GLContext symbol init. - r=jrmuizel 2016-04-19 16:19:31 -07:00
Jeff Gilbert
ad8d28d3f0 Bug 1224199 - Destroy SharedSurfaces before ~GLContext(). - r=jrmuizel 2016-04-14 13:50:04 -07:00
Wes Kocher
c2caf240a3 Backed out changeset 9438150c5258 (bug 1262265) for mass android test bustage CLOSED TREE
MozReview-Commit-ID: FsPsAyGT3Vi
2016-04-11 15:42:37 -07:00
Jeff Gilbert
6fba3caaa3 Bug 1262265 - Cleanup InitWithPrefix. - r=jrmuizel 2016-04-11 15:01:35 -07:00
Jeff Gilbert
b43e8b0916 Bug 1259811 - Require FBO support for GLContexts. - r=jrmuizel 2016-03-25 14:19:21 -07:00
Lee Salzman
78bd7f57d9 Bug 1229946 - report GL_ARB_texture_rg extension to SkiaGL to avoid using GL_ALPHA render targets. r=jgilbert 2016-03-29 22:54:09 -04:00
Lee Salzman
51e4baaff2 Back out changeset 7431c1300d28 (bug 1189715) 2016-03-29 22:52:21 -04:00
Lee Salzman
1f12384bf8 Bug 1189715 - report GL_ARB_texture_rg extension to SkiaGL to avoid using GL_ALPHA render targets. r=jgilbert 2016-03-29 22:45:02 -04:00
Nicholas Nethercote
1cac109990 Bug 1255655 - Const-ify sExtensionNames. r=mattwoodrow. 2016-03-11 13:52:13 +11:00
Jeff Gilbert
bfe1d1c089 Bug 1247804 - Enable seamless cubemaps where available. - r=jrmuizel 2016-02-11 17:57:25 -08:00
Milan Sreckovic
1cb47f47f3 Bug 1247706 - "Please don't disable WebGL if crashed on WebGL context". r=dvander 2016-02-15 12:53:00 +01:00
Jeff Gilbert
95b6cba548 Bug 1239187 - Use the GLFeature instead. - r=jrmuizel 2016-01-21 14:18:44 -08:00