Commit Graph

267 Commits

Author SHA1 Message Date
Jeff Muizelaar
1db153eb6f Bug 1113291. Reenable DisplayLink blocking on Windows. r=bas
Bug 1107299 broke this blocking because it assumed that DoesD3D11DeviceWork()
only described whether texture sharing works. However we were also checking for
broken DisplayLink drivers in that function. This splits out that part and uses
it appropriately.

--HG--
extra : rebase_source : 895d2da6297a48d0a2cbef2d149c27471c788484
2014-12-22 00:41:57 -05:00
Jeff Muizelaar
4c7c42ba33 Bug 1112281. Add notes to the crash reporter when the D3D11Device does not work.
--HG--
extra : rebase_source : 9932b05493a8a5c54f671044d40c9a1092d5c55b
2014-12-16 15:50:45 -05:00
Bas Schouten
3eaeba266b Bug 1102499: Use WARP by default when D3D11 is available. r=BenWa
This will cause us to use WARP for composition on systems with Direct3D 11 when hardware acceleration is blacklisted or we're unable to find a powerful enough graphics card. It also allows us to force WARP on, in that situation WARP will also be used for Direct2D content rendering if Direct2D is enabled. Essentially this will ensure all systems running Windows 7 or higher always use D3D11 as their composition backend.
2014-12-06 00:02:19 +00:00
Jeff Muizelaar
94f253f798 Bug 1097321. Reduce the amount of dual AMD/intel blacklisting. r=Bas
Instead detect the broken shared surfaces and only black list then.

--HG--
extra : rebase_source : 8ea9b50bd1329132574de88860c694cdedccc069
2014-12-04 23:03:31 -08:00
Jacek Caban
d07ffd53a9 Bug 1102804 - Fixed -Wparentheses warnings found in mingw build (gfx and widget part). r=jmathies 2014-11-27 10:58:41 +01:00
Jacek Caban
b565b9b163 Bug 1026893 - mingw fixup. 2014-11-27 10:58:26 +01:00
neil@parkwaycc.co.uk
bece8444a3 Bug 1103868 - "'SupportsD2D1' : is not a member of 'mozilla::gfx::Factory'". r=bas 2014-11-26 01:33:00 +01:00
Bas Schouten
1777de4ad9 Bug 1026893 - Followup: Address review comment. r=me 2014-11-24 21:11:24 +00:00
Bas Schouten
45cf1ecfed Bug 1026893 - Catch exceptions during D3D11 initialization. r=jmuizelaar 2014-11-24 15:40:29 -05:00
Bas Schouten
95cd1d27f9 Bug 1103176: Block Direct2D when D3D11 layers is blacklisted. r=BenWa
When the D3D11 compositor is blocked through blacklisting, we have no way of using Direct2D in a fast manner and do not want it to be used in any situation.
2014-11-24 19:44:52 +00:00
Jonathan Watt
fe181325e2 Bug 1100448 - Protect against null cairo_surface_t when getting the underlying surface from DrawTargetCairo. r=Bas 2014-11-17 21:41:41 +00:00
Jeff Muizelaar
5b9dfb3684 Bug 1092260. Use PREVENT_INTERNAL_THREADING_OPTIMIZATIONS with D3D11. r=bas
Using this seems to avoid the AMD frame delay bug.

--HG--
extra : rebase_source : 1b867ebfef30d1c1a426c7510591770f362d2b28
2014-11-18 17:29:57 -05:00
Jeff Muizelaar
ad91c2690e Bug 1088414. Backout "Use a single synchronized texture for d3d11"
https://hg.mozilla.org/mozilla-central/rev/e2efedec2d60
2014-11-17 14:20:05 -05:00
Matt Woodrow
3a89ba9be0 Bug 1088414. Use a single synchronized texture for d3d11. r=bas,f=jrmuizel
Calling AcquireSync on textures created with
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX appears to be really slow, this really
bites us with the number of textures involved when tiling.

I've also tested using ID3D11Query to check when work is completed, this also
appears to be pretty slow.

This instead just uses a single texture with a keyedmutex, and makes sure we
draw to it last and lock it first. It's pretty hacky, but seems to work really
well so far.

--HG--
extra : rebase_source : bf5f56751f993e507fcd1e5c386fb1fc9a3f73af
2014-10-22 15:37:00 +13:00
Bas Schouten
16558048b6 Bug 1097803: Report succesful Direct2D 1.1 usage. r=jrmuizel 2014-11-12 18:44:31 +00:00
Benoit Jacob
5a82bddd3a Bug 1095575 - DoesD3D11DeviceWork() should be overridable by force-enable prefs - r=bas 2014-11-12 11:48:01 -05:00
Michael Wu
cb9a6592db Bug 1082827: Allow D2D 1.1 to be selected for the canvas backend. r=bas 2014-11-12 15:05:14 +00:00
Jonathan Watt
6b10bf2102 Bug 1093806 - Convert DCFromContext to DCFromDrawTarget. r=Bas 2014-11-10 21:41:40 +00:00
Jeff Muizelaar
2d5dbdb879 Bug 1021265. Fix DisplayLink version expansion code. r=Bas,a=lawrence
GFX_DRIVER_VERSION(8,6,..) expands to 8.0006....
but ParseVersion(8.6,...) gives 8.5000...
This was an unfortunate error. Having better static typing
of versions would have helped here.

--HG--
extra : rebase_source : 8eb9fc7d337a017b350e6ef1935f99fd4383114d
2014-11-10 16:11:42 -05:00
Wes Kocher
26ed578115 Backed out changeset dc2e15a7df8d (bug 1096535) for bustage on a CLOSED TREE 2014-11-10 12:53:34 -08:00
Jeff Muizelaar
6020bfbf29 Bug 1096535. Add more DisplayLink logging. r=bas
--HG--
extra : rebase_source : 6569641159d6e89abcbf677b38df449333714db3
2014-11-10 15:18:10 -05:00
Benoit Jacob
2844fab51e Bug 1093863 - Blacklist D3D on dual Intel/AMD not advertised as such in the registry - r=jrmuizel CLOSED TREE 2014-11-05 17:43:33 -05:00
Benoit Jacob
f3eefd4544 Bug 1021265 - Add AppNotes about blacklisting DisplayLink - r=jrmuizel 2014-11-04 18:17:11 -05:00
Benoit Jacob
ac0f0151ea Bug 1021265 - Fix bustage - no review on a CLOSED TREE 2014-11-04 14:47:15 -05:00
Benoit Jacob
0f37492ba9 Bug 1021265 - regard d3d11 as broken with displaylink on versions <= 8.6.1.36484, and fall back to basic layers - r=jrmuizel 2014-11-03 17:55:00 -05:00
Benoit Jacob
2c679eef1b Bug 1089413 - Only test resource sharing on d3d feature level >= 10. r=jmuizelaar, a=sledru 2014-10-27 10:36:00 -04:00
Benoit Jacob
8ff28f5932 Bug 1083071 - Avoid touching D3D11 at all, even to test if it works, if D3D11 layers are blacklisted. r=Bas, r=jmuizelaar 2014-10-26 18:46:09 -04:00
Ryan VanderMeulen
07a4bc9d5e Backed out changeset 4d4abe4bee7f (bug 1083071) for bustage. 2014-10-26 18:44:40 -04:00
Benoit Jacob
00c7a6d832 Bug 1083071 - Avoid touching D3D11 at all, even to test if it works, if D3D11 layers are blacklisted. r=Bas, r=jmuizelaar 2014-10-26 08:01:00 -04:00
Jeff Muizelaar
e465ca9f83 Bug 1083071 - Disable D3D11 and D3D9 layers on broken drivers. r=bjacob
This will hopefully prevent black screen problems that people are seeing.
2014-10-23 00:15:22 -04:00
Ryan VanderMeulen
5dca9bcabc Backed out changeset 2b05d4e71d11 (bug 1083071) for Win7 mochitest-1 leaks. 2014-10-23 12:53:13 -04:00
Jeff Muizelaar
d09b5b8702 Bug 1083071. Disable D3D11 and D3D9 layers on broken drivers.
This will hopefully prevent black screen problems that people are seeing.

--HG--
extra : rebase_source : 8ba080a4a9a81a1124020cd5ed5395bf262c5d4a
2014-10-22 21:38:18 -04:00
Vladimir Vukicevic
a5902d45bc Bug 912196. Add support for ANGLE D3D11 path. r=jgilbert
There are currently problems with the color format chosen
which breaks MSAA resolution. But we might as well land this
now.

--HG--
extra : rebase_source : 1287e5c059e263d03b0d612ce5cf17e93bc5b033
2014-04-03 13:29:22 +08:00
Jonathan Kew
0d2cfaf334 Bug 1064737 pt 2 - Support for WOFF2 as a webfont format. r=jdaggett 2014-10-04 11:36:05 +01:00
Bas Schouten
20ab143e76 Bug 1074272: Use exception mode 0 for our D3D11 devices. r=jrmuizel 2014-09-30 17:51:09 +02:00
Jonathan Kew
87cc3a2642 Bug 727276 - Use emoji-style variation selector to help GetCommonFallbackFonts make an appropriate choice. r=roc 2014-09-30 07:27:55 +01:00
Bas Schouten
983d188140 Bug 1072404: Firefox may crash when the D3D device is removed while rendering. r=mattwoodrow 2014-09-24 17:12:10 +00:00
Robert Longson
5a0cd66f24 Bug 1068590 - gfxWindowsPlatform does not build on WinXP. r=bas 2014-09-17 18:35:00 +01:00
Jonathan Kew
50b0ff2a5d bug 1066043 - split gfxFont.cpp and .h into more manageably-sized pieces. r=jdaggett
--HG--
rename : gfx/thebes/gfxFont.cpp => gfx/thebes/gfxFontEntry.cpp
rename : gfx/thebes/gfxFont.h => gfx/thebes/gfxFontEntry.h
rename : gfx/thebes/gfxFont.cpp => gfx/thebes/gfxGlyphExtents.cpp
rename : gfx/thebes/gfxFont.h => gfx/thebes/gfxGlyphExtents.h
rename : gfx/thebes/gfxFont.cpp => gfx/thebes/gfxTextRun.cpp
rename : gfx/thebes/gfxFont.h => gfx/thebes/gfxTextRun.h
2014-09-16 10:58:12 +01:00
Matt Woodrow
b1adcf8934 Bug 1046550 - Part 3: Use Direct2D 1.1 when preffed on. r=bas 2014-09-14 23:51:27 +02:00
Bas Schouten
00d3edd7d3 Bug 1046550 - Part 1: Add content device to gfxWindowsPlatform. r=mattwoodrow 2014-09-14 23:51:27 +02:00
John Daggett
6f2c0ee7ec Bug 1062058 part 1 - avoid passing around proxy font entry object. r=heycam 2014-09-08 16:23:19 +09:00
John Daggett
780497e3ca Bug 1059691. Cleanup tabs in gfx/thebes source files. r=mkato 2014-08-29 13:18:28 +09:00
Nicholas Nethercote
a7cf4142b4 Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
* * *
imported patch rm-dummy-params

--HG--
extra : rebase_source : c25987eb11bae197218d5fc53b77def19afa36ac
2014-08-06 06:31:21 -07:00
Bas Schouten
6624d1aefe Bug 947781 - Part 2: Add the ability to readback texture data to TextureClient. r=nical 2014-07-30 15:38:46 +02:00
Ed Morley
46d9238c0a Backed out changeset c4ecea1452e9 (bug 947781) 2014-07-30 14:54:08 +01:00
Bas Schouten
7dae46766a Bug 947781 - Part 2: Add the ability to readback texture data to TextureClient. r=nical 2014-07-30 15:38:46 +02:00
Ehsan Akhgari
26fcf30ef7 Bug 1040038 - Give GfxD2DSurfaceReporter a private destructor; r=bjacob
--HG--
extra : rebase_source : caa4478e14cd1d526978700e3d0cfe28a3af0068
2014-07-17 16:47:19 -04:00
Ehsan Akhgari
52b3213404 Bug 1038156 - Give GPUAdapterReporter a private destructor; r=bjacob 2014-07-15 16:41:50 -04:00
Ehsan Akhgari
035c5837f3 Bug 1038155 - Give GfxD2DVramReporter a private destructor; r=bjacob 2014-07-14 21:49:53 -04:00