Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3112)

Issue 1951044: Fixed crash on context lost....

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by apatrick1
Modified:
13 years, 8 months ago
CC:
angleproject-review_googlegroups.com, VangelisK, hbridge_google.com, gav
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Fixed crash on context lost. This fixes the crash on lost context for vista and windows 7 if suitable drivers are available. It now uses D3D9Ex when available and this only reports lost contexts for hardware failures and suchlike. Testing procedure was: - run simple_vertex_shader without this change. - ctrl+alt+del to lock machine. - return to desktop. - observe that simple_vertex_shader crashes. - repeat with this change and check that simple_vertex_shader is still animating. - simulate the code path that an XP machine would take using the debugger and check that old behavior is preserved. I decided to load D3D9.DLL at runtime for a couple of reasons. First, I didn't want to assume that older implementations of D3D9 would have the Direct3DCreate9Ex entry point. Second, it might be advantageous for some applications to not have a load time dependency on D3D9. I didn't address this for D3DX9 because it's a little harder - there's no clear way to determine which D3DX9_x.DLL library to open. At least D3DX9_x.DLL does not seem to import D3D9.DLL and D3DX is separately redistributable so there is still some advantage to be had.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -5 lines) Patch
M src/build_angle.gyp View 1 chunk +4 lines, -1 line 0 comments Download
M src/libEGL/Display.h View 1 chunk +4 lines, -1 line 0 comments Download
M src/libEGL/Display.cpp View 3 chunks +47 lines, -1 line 0 comments Download
M src/libEGL/libEGL.vcproj View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5
apatrick1
Hi Daniel, This fixes our lost context / crash issue at least for Vista and ...
13 years, 8 months ago (2010-08-16 21:18:09 UTC) #1
apatrick1
+gav Hi Gav, I found a way to work around the lost context issues on ...
13 years, 8 months ago (2010-08-16 23:07:10 UTC) #2
gav
Hi al, I'll forward this along to one of our ANGLE developers; it looked good ...
13 years, 8 months ago (2010-08-17 01:46:24 UTC) #3
gav
Hi Al, Nicolas looked this over as well, and it seems good to him too. ...
13 years, 8 months ago (2010-08-17 22:17:38 UTC) #4
apatrick
13 years, 8 months ago (2010-08-17 22:21:21 UTC) #5
On Tue, Aug 17, 2010 at 3:17 PM, Gavriel State <gav@transgaming.com> wrote:
> Hi Al,
>
> Nicolas looked this over as well, and it seems good to him too.

Thanks Gav,

I landed it as r384. Let me know if you have any problems.

Al
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b