http://bugs.winehq.org/show_bug.cgi?id=28875
Bug #: 28875 Summary: NullDC 1.0.4 r450: NullDC starts but graphics fail to load. Product: Wine Version: 1.1.31 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dredgingthelake@gmail.com Classification: Unclassified
Created attachment 37099 --> http://bugs.winehq.org/attachment.cgi?id=37099 NullDC terminal output
The Dreamcast emulator, NullDC 1.0.4 r450, starts but shortly crashes with the wine popup error message. Application continues with audio running in background, but no graphics can be seen.
Requires vcrun2010 to get to this point. Also tested with and without "winetricks d3dx9". Audio doesn't run in background without d3dx9 (strangely enough) but no change in graphical output. The older nulldc-1.0.3 version works fine.
System: Gentoo ~AMD64 Nvidia GTX275 (290.03 drivers) Wine 1.3.31 and wine 1.2 tested
http://bugs.winehq.org/show_bug.cgi?id=28875
DL dredgingthelake@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://code.google.com/p/nu | |lldc/downloads/list Summary|NullDC 1.0.4 r450: NullDC |NullDC 1.0.4 r136: NullDC |starts but graphics fail to |starts but graphics fail to |load. |load.
--- Comment #1 from DL dredgingthelake@gmail.com 2011-10-23 22:41:42 CDT --- Correc
http://bugs.winehq.org/show_bug.cgi?id=28875
--- Comment #2 from DL dredgingthelake@gmail.com 2011-10-23 22:42:43 CDT --- Delete previous comment. Just wanted to state that the revision was actually r136 and not r450. Bug title was changed to reflect this.
http://bugs.winehq.org/show_bug.cgi?id=28875
--- Comment #3 from DL dredgingthelake@gmail.com 2011-10-26 20:39:27 CDT --- Okay, installing the direct X sdk works around the bug. winetricks d3dx9 is not enough to work around the issue, however.
http://bugs.winehq.org/show_bug.cgi?id=28875
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine-bugs@winehq.org Component|-unknown |directx-d3dx9
https://bugs.winehq.org/show_bug.cgi?id=28875
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |focht@gmx.net Summary|NullDC 1.0.4 r136: NullDC |NullDC 1.0.4 (Dreamcast |starts but graphics fail to |emulator) crashes when |load. |starting system (shader | |'register' keyword used at | |global scope) Ever confirmed|0 |1
--- Comment #4 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming. Your crash was likely related to the d3d compiler stub at that time:
--- snip --- fixme:d3dcompiler:D3DCompile data 0x1c6700, data_size 3215, filename "vs_hlsl.fx", defines 0x1c61d0, include 0x2e3e650, entrypoint "VertexShader_main", target "vs_3_0", sflags 0, eflags 0, shader 0x2e3e860, error_messages 0x2e3e864 stub! wine: Unhandled page fault on read access to 0x00000000 at address 0x1f380dd (thread 0029), starting debugger... --- snip ---
I got some DC BIOS files from here: http://www.theisozone.com/downloads/dreamcast/emulators/nulldc-104-final-wit...
and put them into 'data' folder.
1) click 'start' in 'system' menu. 2) select 'no disk' -> crashes shortly after
--- snip --- $ wine ./nullDC_Win32_Release-NoTrace.exe ... shil generation status : 81% cpu done[149 of 182] , 100% fpu done[31 of 31] Sh4 Init Dynarec cache : size is 32.00MB recSh4 Init Sh4 Reset recSh4 Reset LoadFileToSh4Mem: can't load file "Z:\home\focht\Downloads\data\syscalls.bin" to memory , file not found LoadFileToSh4Mem: can't load file "Z:\home\focht\Downloads\data\IP.bin" to memory , file not found fixme:win:EnumDisplayDevicesW ((null),0,0x2cee3b0,0x00000000), stub! Device Supports D24FS8 Device caps... VS : FFFE0300 ; PS : FFFF0300 Will use Float Z Buffering (D24FS8) Will use Vertex Shaders drkpvr: Initialising windowed AA:0x0 drkpvr: Render target size 640x480 Using Vertex Shaders/vs_3_0 Using Pixel Shaders/ps_3_0 fixme:d3d:resource_check_usage Unhandled usage flags 0x8. err:d3dcompiler:compile_shader HLSL shader parsing failed. vs_hlsl.fx:44:22: error: syntax error, unexpected KW_REGISTER, expecting VAR_IDENTIFIER or TYPE_IDENTIFIER or NEW_IDENTIFIER
wine: Unhandled page fault on read access to 0x00000000 at address 0x1da86cd (thread 002b), starting debugger... --- snip ---
This is the snippet of shader code:
--- snip --- //Vertex Shader :) //_HW_INT_ -> Intesity needs to be calculated , the factors are stored in z/w of texcoords //scale_type_1 -> use old way of scaling , needs W_min/W_max to have valid values //RES_X -> x resolution //RES_Y -> y resolution //ZBufferMode -> z buffer mode :p //ZBufferMode : 0 -> fp fixup //ZBufferMode : 1 -> nothing //ZBufferMode : 2 -> non linear rescale //ZBufferMode : 3 -> non linear rescale //ZBufferMode : 4 -> linear rescale //FixedFunction : 0 if ps, 1 if fixed function #ifndef FLT_MIN #define FLT_MIN 1.17549435e-38f #endif
#ifndef FLT_MAX #define FLT_MAX 3.40282347e+38f #endif
struct vertex_in { float4 pos : POSITION; float4 col : COLOR0; float4 spc : COLOR1; float2 uv : TEXCOORD0; };
struct vertex_out { float4 pos : POSITION;
#if FixedFunction == 1 float4 col : COLOR0; float4 spc : COLOR1; float4 uv : TEXCOORD0; #else float4 uv : TEXCOORD0; float4 col : TEXCOORD1; float4 spc : TEXCOORD2; #endif };
float W_min: register(c0); float W_max: register(c1); float4 res_scale: register(c2); float4 texture_size: register(c3); float4 res_align_offset: register(c4); // float2((-1.0/res.x)-1.0,(1.0/res.y)+1.0); --- snip ---
It doesn't like 'register' keyword here. Refining summary.
MSDN: http://msdn.microsoft.com/en-us/library/windows/desktop/dd607359%28v=vs.85%2...
$ sha1sum nullDC_104_r136.7z 05e25f3d63904f8333aa10c4bb478ef97d4bac73 nullDC_104_r136.7z
$ du -sh nullDC_104_r136.7z 896K nullDC_104_r136.7z
$ wine --version wine-1.7.13-118-g0eb6265
Regards
https://bugs.winehq.org/show_bug.cgi?id=28875
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rcaridade145@gmail.com
--- Comment #5 from Matteo Bruni matteo.mystral@gmail.com --- *** Bug 32932 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=28875
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
--- Comment #6 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- This should be fixed by http://source.winehq.org/git/wine.git/?a=commit;h=bd7e83f2920ece2c388ada1e2e...
https://bugs.winehq.org/show_bug.cgi?id=28875
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |bd7e83f2920ece2c388ada1e2e5 | |fb76256b956c9 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #7 from Ken Sharp imwellcushtymelike@gmail.com --- Marking fixed. Reopen if the SAME ISSUE still occurs in Wine 1.7.46 or later.
https://bugs.winehq.org/show_bug.cgi?id=28875
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.47.
https://bugs.winehq.org/show_bug.cgi?id=28875
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #9 from Matteo Bruni matteo.mystral@gmail.com --- *** Bug 40889 has been marked as a duplicate of this bug. ***