Commit Graph

62 Commits

Author SHA1 Message Date
sotaro
76aef326b1 Bug 1490528 - do not preload attachments for D3D11 Non-WR compositor when WR is used r=mattwoodrow 2018-09-13 13:23:38 +09:00
Daosheng Mu
a0fe81c1da Bug 1430038 - Part 3: Construct IPC connection for VR/GPU process; r=kip, jimm, jgilbert
Summary: MozReview-Commit-ID: 2kOyfC4TFZP

Tags: #secure-revision

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

MozReview-Commit-ID: 17O2xbRMOFJ

--HG--
extra : rebase_source : fdf55e8542dd5487868cfe36fc27f447d95528de
2018-08-06 22:47:18 -07:00
Gabriele Svelto
15adf94f4d Bug 1348273 - Convert crash annotations into a machine-readable list of constants; r=ted.mielczarek,njn,dholbert,mak,cpearce,mcmanus,froydnj,Dexter,jrmuizel,jchen,jimm,bz,surkov
This introduces the machinery needed to generate crash annotations from a YAML
file. The relevant C++ functions are updated to take a typed enum. JavaScript
calls are unaffected but they will throw if the string argument does not
correspond to one of the known entries in the C++ enum. The existing whitelists
and blacklists of annotations are also generated from the YAML file and all
duplicate code related to them has been consolidated. Once written out to the
.extra file the annotations are converted in string form and are no different
than the existing ones.

All existing annotations have been included in the list (and some obsolete ones
have been removed) and all call sites have been updated including tests where
appropriate.

--HG--
extra : source : 4f6c43f2830701ec5552e08e3f1b06fe6d045860
2018-07-05 15:42:11 +02:00
sotaro
b0fbe12bd3 Bug 1465306 - Make D3D11YCbCrRecycleAllocator handle device reset r=nical 2018-05-31 09:35:24 +09:00
sotaro
19a32411ca Bug 1191971 part 2 - Add capatiblity to enable DComp r=bas 2018-03-29 11:23:31 +09:00
Andrew Osmond
f9a6aed383 Bug 1432472 - Do not assume CompositorBridgeChild is available for FlushAsyncPaints. r=rhunt
CompositorBridgeChild may be lost at any time due to a GPU process
crash. Additionally it may be already destroyed due to shutdown being
initiated. For FlushAsyncPaints, we can safely ignore the missing child
because the subsequent operations will generally fail and we will
recover when the GPU process is respawned (or switched to the UI
process).
2018-01-24 10:01:33 -05:00
Kearwood "Kip" Gilbert
c22612d2ce Bug 1404534 - Create new D3D11Device for WebVR r=dvander,jgilbert
- As we are creating a separate VR process in Bug 1362578,
  we will need our own D3D11Device.
- Eventually, we will be allowing the VR device runtimes to
  help select the appropriate adapter / device based on the
  physical connection.  This function will be updated at that
  time.

MozReview-Commit-ID: EewUkNxU3BI

--HG--
extra : rebase_source : d89dd4dcc71f2b0dc54711f50628ee3bc494b73e
2017-08-28 15:56:43 -07:00
Gabriele Svelto
9a1d2f50d2 Bug 1402519 - Remove MOZ_CRASHREPORTER directives from gfx; r=jrmuizel
MozReview-Commit-ID: 7S8AJ18cCx0

--HG--
extra : rebase_source : 983387883dd0feabf8e4e6b1b7335403645470af
2017-10-10 15:11:07 +02:00
shindli
fb855aa7ba Backed out 16 changesets (bug 1402519) for conflicts during merge r=backout on a CLOSED TREE
Backed out changeset 07fcf163241a (bug 1402519)
Backed out changeset c6d2ad45d8e2 (bug 1402519)
Backed out changeset 8a3caca61294 (bug 1402519)
Backed out changeset 01425eae2c48 (bug 1402519)
Backed out changeset cf298d3815de (bug 1402519)
Backed out changeset e1964f4389cd (bug 1402519)
Backed out changeset f405337f3569 (bug 1402519)
Backed out changeset a76356fd3359 (bug 1402519)
Backed out changeset d3bb350d1c34 (bug 1402519)
Backed out changeset 9d3bfd9f932c (bug 1402519)
Backed out changeset e3dd6e5b073f (bug 1402519)
Backed out changeset e801b0c00134 (bug 1402519)
Backed out changeset 8a4139fa5dca (bug 1402519)
Backed out changeset 8d01c14ac1ca (bug 1402519)
Backed out changeset 24e0dcd01898 (bug 1402519)
Backed out changeset f8fdf450613f (bug 1402519)
2017-11-23 00:11:44 +02:00
Gabriele Svelto
6fc7fdc557 Bug 1402519 - Remove MOZ_CRASHREPORTER directives from gfx; r=jrmuizel
MozReview-Commit-ID: 7S8AJ18cCx0

--HG--
extra : rebase_source : 5fb4dbbd0416adeaf1796845e808b053ed029de4
2017-10-10 15:11:07 +02:00
Tom Ritter
a08e595f4b Bug 1404035 Address an unused result warning in gfx/thebes/DeviceManagerDx.cpp r=dvander
There's no way to handle this failure, so pass it to Unused.

MozReview-Commit-ID: 37PS9TsPqx7

--HG--
extra : rebase_source : f385f4c50d5407b1929abed7dae123f9570d2205
2017-09-28 12:53:24 -05:00
Jean-Yves Avenard
66188b449c Bug 1352016 - P3. Check if NV12 rendering is usable when allocating D3D11 surface. r=mattwoodrow
MozReview-Commit-ID: EgA6lEeIyBj

--HG--
extra : rebase_source : cb3c4e5e864085fe76514096d6d9aa9b49d0a334
2017-09-10 17:54:31 +02:00
Wes Kocher
7a8b3e02a0 Backed out 4 changesets (bug 1352016) for gfx crashes in test_TelemetryEnvironment.js a=backout CLOSED TREE
Backed out changeset dd7342e18e67 (bug 1352016)
Backed out changeset ebc7c92e8dc0 (bug 1352016)
Backed out changeset e79e512f803f (bug 1352016)
Backed out changeset 9eed6a69298c (bug 1352016)

MozReview-Commit-ID: CYDuqu0Hmtb
2017-09-12 17:09:40 -07:00
Jean-Yves Avenard
cf367ef0c5 Bug 1352016 - P2. Check if NV12 rendering is usable when allocating D3D11 surface. r=mattwoodrow
MozReview-Commit-ID: EgA6lEeIyBj

--HG--
extra : rebase_source : 7b8a8f1669d268a5e1512320b891b35722fe4c14
2017-09-10 17:54:31 +02:00
David Anderson
b05dbf58c2 Add helpers for debugging Advanced Layers with RenderDoc. (bug 1381666 part 1, r=mattwoodrow) 2017-07-31 12:28:26 -07:00
Carsten "Tomcat" Book
0738c08d98 Merge mozilla-central to mozilla-inbound 2017-07-26 11:16:03 +02:00
David Anderson
4ccde3c049 Silence spurious Advanced Layers warnings in the D3D11 debug layer. (bug 1383326, r=bas) 2017-07-25 22:34:29 -07:00
Milan Sreckovic
ebe72eb0d5 Bug 1359416: Allow blocklisting of D3D11 keyed mutex and block it for Intel Gen 6. r=bas,dvander
MozReview-Commit-ID: 2u7N5qhHhD1

--HG--
extra : rebase_source : 3a8ccc658d1b83d470f1bbeef4520779c1766919
2017-07-25 14:02:36 -04:00
Wes Kocher
529c00b394 Backed out changeset 4d83b498dc00 (bug 1359416) for assertions in ServoStyleSet a=backout CLOSED TREE
MozReview-Commit-ID: 6vOIMVR5616
2017-07-21 17:18:20 -07:00
Milan Sreckovic
ab1db465bb Bug 1359416: Allow blocklisting of D3D11 keyed mutex and block it for Intel Gen 6. r=bas
MozReview-Commit-ID: 5O5SPvHsT67

--HG--
extra : rebase_source : 42ec8b985a239035b9ca7217e465b5ec9685bfc0
2017-07-21 12:46:40 -04:00
Kevin Chen
91dc0db35c Bug 1364563 - Add a path for content process only device reset. r=dvander 2017-07-18 23:09:00 -04:00
Ehsan Akhgari
6bc10c105a Backout changeset bc5d9e5f1c02 (bug 1364563) because of build failures
This reverts commit a5224fd3910ee5116669728fcd5b154e051371fd.
2017-07-19 00:27:36 -04:00
David Anderson
7db58ae2a1 Flush async paints before revoking device singletons. (bug 1380922 part 3, r=mchang)
--HG--
extra : rebase_source : 34d90c80b8cc99d0679db03cf2ac1ca21ffbc5d3
2017-07-18 12:16:13 -07:00
Kevin Chen
563c00da4d Bug 1364563 - Add a path for content process only device reset. r=dvander 2017-07-17 00:13:00 -04:00
Bas Schouten
52157b54ec Bug 1380142: Add a pref to enable the D3D11 debug layer and to break on errors. r=milan
MozReview-Commit-ID: 2FrQGXdgJrD

--HG--
extra : rebase_source : 74b42a35dbf8ab3851a3e441c655862f152ce482
2017-07-11 22:53:04 +02:00
David Anderson
77b5b91a68 Rebuild configuration info when a device reset occurs. (bug 1377866 part 4, r=kechen) 2017-07-10 19:30:58 -07:00
Bill McCloskey
f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
David Anderson
000ab020c2 Add Telemetry environment and failure tracking for Advanced Layers. (bug 1365879 part 23, r=milan, data_r=bsmedberg) 2017-06-23 14:23:13 -07:00
David Anderson
7df9b05034 Add MLGPU feature bits and compositor initialization. (bug 1365879 part 21, r=mattwoodrow) 2017-06-23 14:23:12 -07:00
Carsten "Tomcat" Book
1f871b61e4 Backed out changeset 9d0048e04446 (bug 1365879) 2017-06-23 12:15:32 +02:00
Carsten "Tomcat" Book
e2e4b940e9 Backed out changeset 35129e4e204b (bug 1365879) 2017-06-23 12:15:28 +02:00
David Anderson
3e221849c1 Add Telemetry environment and failure tracking for Advanced Layers. (bug 1365879 part 23, r=milan, data_r=bsmedberg)
--HG--
extra : rebase_source : 607bda151930c9c24e3ce7b89ca585606e8bb44d
2017-06-22 21:12:20 -07:00
David Anderson
0505938414 Add MLGPU feature bits and compositor initialization. (bug 1365879 part 21, r=mattwoodrow)
--HG--
extra : rebase_source : 3d8d1a9619d997a2de9eea4e734a0457cd326e91
2017-06-22 21:12:19 -07:00
Jean-Yves Avenard
1dd0cb03fa Bug 1373229: P3. Ensure that the retrieval operation succeeded. r=bas
Retrieving ID3D10Multithread can fail (and will do so on Win7 try box). We must check for null before using the object.

MozReview-Commit-ID: LTeBgDwR2EF

--HG--
extra : rebase_source : d108452fd87fe0e231adee471347df52a67a6c92
2017-06-21 11:53:38 +02:00
Ryan VanderMeulen
5da6eebcc8 Bug 1364433 - Add MOZ_CRASHREPORTER ifdefs to DeviceManagerDx.cpp to fix --disable-crashreporter bustage. r=dvander 2017-05-14 15:54:53 -04:00
David Anderson
1118ca109b Add crash annotations before handling device resets. (bug 1363126 part 4, r=milan) 2017-05-11 22:44:28 -07:00
David Anderson
30e1319799 Wait for CreateCompositorDevices to finish before creating DeviceAttachmentsD3D11. (bug 1362145, r=bas) 2017-05-05 01:04:19 -07:00
Bas Schouten
76892628f3 Bug 1348320: Use UpdateSubResource on crashy intel device/OS version combinations. r=jrmuizel
MozReview-Commit-ID: EdDn4qy1ajP

--HG--
extra : rebase_source : fadec88a9586bc40e44d2f91aae5c9c5f8f59a5c
2017-05-01 01:11:24 +00:00
David Anderson
413ea1b941 Pre-initialize DeviceAttachmentsD3D11 on the compositor thread, immediately after the GPU process initializes. (bug 1360766 part 3, r=bas) 2017-04-30 11:38:59 -07:00
David Anderson
dab415165b Store DeviceAttachmentsD3D11 on DeviceManagerDx instead of ID3D11Device. (bug 1360766 part 2, r=bas) 2017-04-30 11:38:59 -07:00
Jeff Gilbert
4cce4a821f Bug 1345648 - Add BREAK_ON_D3D_ERROR to DeviceManagerDx - r=kvark
MozReview-Commit-ID: DgHPXgjOi3f
2017-03-09 12:55:01 -08:00
Bas Schouten
4c289030c1 Bug 1335971: Allow uploading on the client side on Intel hardware. r=mattwoodrow
MozReview-Commit-ID: GeVYccWK7xY

--HG--
extra : rebase_source : 77964a98ecd94305628322a479ff5012e2e57e2d
2017-02-02 13:24:57 +00:00
David Anderson
193097c072 Add missing null check in DeviceManagerDx::HasDeviceReset. (bug 1317513, r=rhunt) 2016-11-14 16:38:26 -08:00
David Anderson
3b0070b2d1 Handle forced device resets in the GPU process. (bug 1316690 part 3, r=rhunt)
--HG--
extra : rebase_source : b06040dbfa8ab6d1e3cb693ed45750abebdf5efb
2016-11-11 11:58:51 -08:00
David Anderson
d7f8e40664 Move device reset detection from gfxPlatform to DeviceManagerDx. (bug 1316690 part 1, r=rhunt)
--HG--
extra : rebase_source : 0b950fb1fe798e5a6ec8ef2163759a5eedce62fc
2016-11-11 11:57:06 -08:00
Ryan Hunt
8ee59ed7da Bug 1313199 - Sync a device reset from GPU process to main process. r=dvander
--HG--
extra : rebase_source : 4daf0427fee802cd986d7439c0e27eddbf671311
2016-11-06 13:01:52 -06:00
Matt Woodrow
a39fee1d93 Bug 1313883 - Allow using multiple decoder devices on non-AMD hardware since they seem to crash less that way. r=dvander 2016-11-04 13:28:28 +13:00
David Anderson
3cd2f0c9ea Only use the GPU process when we expect a working Direct3D 11 compositor. (bug 1297822, r=mattwoodrow) 2016-10-27 19:21:34 -07:00
David Anderson
0017f30b66 Don't create remote D3D11 devices when remote presentation is broken. (bug 1310443, r=rhunt) 2016-10-25 18:42:20 -07:00
Matt Woodrow
11cd1c4662 Bug 1292923 - Don't upload to textures during creation on Intel cards as it frequently crashes. r=dvander 2016-10-06 14:32:55 +02:00