• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Site › Dolphin Patches (Archive) v
« Previous 1 … 3 4 5 6 7 Next »

[PATCH] Mario Galaxy 2 DX11 EFB crash fix
View New Posts | View Today's Posts

Pages (2): 1 2 Next »
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
[PATCH] Mario Galaxy 2 DX11 EFB crash fix
09-30-2010, 08:18 PM (This post was last modified: 10-01-2010, 05:33 AM by pico554.)
#1
pico554 Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Sep 2010
This quick (and very simple) patch will resolve the Super Mario Galaxy 2 crash with CPU->EFB Access enabled, while using the DX11 plugin.

All things, such as picking up star bits, and yoshie's tongue work as expected, plus my existing games do not show any issues with this patch, however my library is quite limited.

Patched against SVN 6239, however it should be able to be applied to any revision really.

Enjoy.

The patch has been updated.


Attached Files
.patch   nvidia-dx11-efb.patch (Size: 1.05 KB / Downloads: 516)
Find
09-30-2010, 08:57 PM (This post was last modified: 09-30-2010, 08:58 PM by neobrain.)
#2
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
Nice catch, although I'm not quite sure where the problem is.

Could you try the attached patch as well? It should be the more correct one if I understand the issue right.

EDIT: The patch is to be applied from inside the Video_DX11/Src directory.


Attached Files
.patch   efb-dx11-nb.patch (Size: 1.21 KB / Downloads: 337)
My blog
Me on Twitter
My wishlist on Amazon.de
Find
09-30-2010, 11:15 PM
#3
pico554 Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Sep 2010
Unfortunately, the issue remains with the new patch. I will investigate further. This is a good break from my normal job that typically consumes my free time. (embedded software engineer)
Find
09-30-2010, 11:33 PM
#4
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
Hm, alright you seem to have some clue of what you're doing then, could you check where exactly smg is crashing and give me the value of RectToLock (and possibly other stuff which might be interesting)?
fwiw, smg works fine for me which is why I can't fix the issue myself..
My blog
Me on Twitter
My wishlist on Amazon.de
Find
09-30-2010, 11:59 PM
#5
pico554 Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Sep 2010
Gotcha. To tell you the truth, it never started crashing until I got my new 465 GTX. It worked fine with my previous ATI HD5670. I also don't believe my older 9600GT had any issues either.

Find
10-01-2010, 12:09 AM
#6
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
yeah, I don't have any issues on my laptop (ati 4200) nor on my pc (ati 3850)...
Anyway, thanks for your efforts Wink
My blog
Me on Twitter
My wishlist on Amazon.de
Find
10-01-2010, 05:28 AM (This post was last modified: 10-01-2010, 05:34 AM by pico554.)
#7
pico554 Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Sep 2010
This patch should resolve everything. It is concise, and to the point.

I have done a lot of troubleshooting, and found that the nvidia cards will fail if RectToLock is more than a 1x1 region. (driver bug?) It seems all we need is a 1x1 pixel to sample from anyhow, so this should not cause any problems, if I understand things correctly.

The error will be generated by D3D::context->Map(read_tex, 0, D3D11_MAP_READ, 0, &map);

The resulting map.pData will be NULL, and will cause a crash in PEEK_COLOR.


Attached Files
.patch   nvidia-dx11-efb.patch (Size: 1.05 KB / Downloads: 269)
Find
10-01-2010, 06:29 AM
#8
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
Well that actually makes sense, since read_tex is only a 1x1 texture...
Will commmit the fix soon, thanks Smile
My blog
Me on Twitter
My wishlist on Amazon.de
Find
10-01-2010, 11:04 PM
#9
pico554 Offline
Junior Member
**
Posts: 6
Threads: 1
Joined: Sep 2010
Not a problem. Smile
Find
10-02-2010, 10:10 PM
#10
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
Committed in r6247. I hope I got it right Wink
My blog
Me on Twitter
My wishlist on Amazon.de
Find
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma