Hard Reset Demo doesn't render textures

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Mateusz Stachowski
Level 3
Level 3
Posts: 71
Joined: Mon Apr 18, 2011 3:49 am

Hard Reset Demo doesn't render textures

Post by Mateusz Stachowski »

I've tried to run demo of Hard Reset and it has two big problems on Wine. First is that mouse isn't working. You get input only from keyboard but that can be solved with raw input patch. I used the one that is working with Deus Ex: Human Revolution:

http://dl.dropbox.com/u/6901628/raw2.patch

but second is much worse. Basically almost all of the textures aren't rendered. It starts right in the menu and follows to the in-game where you get to see some of the HUD and weapon model rendered (but also not properly).

I've tried multiple versions of Wine. The newest ones 1.3.27 and 1.3.28 are hanging the demo on the Flying Wild Hog logo (that's the developer). Other versions that I tested were 1.3.25 and 1.3.24 and with those I'm able to get to the gameplay.

Setting UseGLSL to disabled didn't changed anything. I have installed d3dx9_36 and vcrun2008 with winetricks.

This is output from the terminal (wine.log):

Code: Select all

fixme:dbghelp_dwarf:compute_location Only supporting one reg (edx/19 -> -2)
fixme:dbghelp_dwarf:compute_location Only supporting one breg (ecx/18 -> edx/19)
fixme:xinput:XInputGetState (0 0xc0b848)
fixme:win:EnumDisplayDevicesW ((null),0,0x32f234,0x00000000), stub!
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000001 not handled
fixme:wbemprox:wbem_locator_ConnectServer 0x4f7ae20, L"\\\\.\\root\\cimv2", (null), (null), (null), 0x00000000, (null), (nil), 0x32f274)
fixme:d3d:debug_d3dformat Unrecognized 0x5a574152 (as fourcc: RAWZ) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x5a574152) in the format lookup table
fixme:d3d:debug_d3dformat Unrecognized 0x31495441 (as fourcc: ATI1) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x31495441) in the format lookup table
fixme:d3d:debug_d3dformat Unrecognized 0x5a534552 (as fourcc: RESZ) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x5a534552) in the format lookup table
fixme:d3d:swapchain_init Add OpenGL context recreation support to context_validate_onscreen_formats
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:process:GetLogicalProcessorInformation ((nil),0x32faf0): stub
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:thread:SetThreadIdealProcessor (0x164): stub
fixme:thread:SetThreadIdealProcessor (0x170): stub
err:d3d_surface:surface_set_texture_name Surface has SFLAG_INTEXTURE set, but no texture name.
err:d3d_surface:surface_modify_location Surface 0x4ebdf18 does not have any up to date location.
err:d3d_surface:surface_modify_location Surface 0x4ebdf18 does not have any up to date location.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:thread:SetThreadIdealProcessor (0x164): stub
fixme:thread:SetThreadIdealProcessor (0x170): stub
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:state_zfunc D3DCMP_NOTEQUAL and D3DCMP_EQUAL do not work correctly yet.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:StencilOp Unrecognized stencil op 0
fixme:d3d:StencilOp Unrecognized stencil op 0
fixme:d3d:StencilOp Unrecognized stencil op 0
those last ones are spaming console much furthermore.

I think that it indicates shortcomings of Wine but I do not know what.

You can download demo from Steam or GamersHell:

http://www.gamershell.com/download_79104.shtml
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Hard Reset Demo doesn't render textures

Post by dardack »

On Wed, Sep 14, 2011 at 3:26 PM, Mateusz Stachowski <
[email protected]> wrote:
I've tried to run demo of Hard Reset and it has two big problems on Wine.
First is that mouse isn't working. You get input only from keyboard but that
can be solved with raw input patch. I used the one that is working with Deus
Ex: Human Revolution:

http://dl.dropbox.com/u/6901628/raw2.patch

but second is much worse. Basically almost all of the textures aren't
rendered. It starts right in the menu and follows to the in-game where you
get to see some of the HUD and weapon model rendered (but also not
properly).

I've tried multiple versions of Wine. The newest ones 1.3.27 and 1.3.28 are
hanging the demo on the Flying Wild Hog logo (that's the developer). Other
versions that I tested were 1.3.25 and 1.3.24 and with those I'm able to get
to the gameplay.

Setting UseGLSL to disabled didn't changed anything. I have installed
d3dx9_36 and vcrun2008 with winetricks.

This is output from the terminal (wine.log):


Code:
fixme:dbghelp_dwarf:compute_location Only supporting one reg (edx/19 -> -2)
fixme:dbghelp_dwarf:compute_location Only supporting one breg (ecx/18 ->
edx/19)
fixme:xinput:XInputGetState (0 0xc0b848)
fixme:win:EnumDisplayDevicesW ((null),0,0x32f234,0x00000000), stub!
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000001 not handled
fixme:wbemprox:wbem_locator_ConnectServer 0x4f7ae20, L"\\\\.\\root\\cimv2",
(null), (null), (null), 0x00000000, (null), (nil), 0x32f274)
fixme:d3d:debug_d3dformat Unrecognized 0x5a574152 (as fourcc: RAWZ)
WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x5a574152) in
the format lookup table
fixme:d3d:debug_d3dformat Unrecognized 0x31495441 (as fourcc: ATI1)
WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x31495441) in
the format lookup table
fixme:d3d:debug_d3dformat Unrecognized 0x5a534552 (as fourcc: RESZ)
WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x5a534552) in
the format lookup table
fixme:d3d:swapchain_init Add OpenGL context recreation support to
context_validate_onscreen_formats
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:process:GetLogicalProcessorInformation ((nil),0x32faf0): stub
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:thread:SetThreadIdealProcessor (0x164): stub
fixme:thread:SetThreadIdealProcessor (0x170): stub
err:d3d_surface:surface_set_texture_name Surface has SFLAG_INTEXTURE set,
but no texture name.
err:d3d_surface:surface_modify_location Surface 0x4ebdf18 does not have any
up to date location.
err:d3d_surface:surface_modify_location Surface 0x4ebdf18 does not have any
up to date location.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:thread:SetThreadIdealProcessor (0x164): stub
fixme:thread:SetThreadIdealProcessor (0x170): stub
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:state_zfunc D3DCMP_NOTEQUAL and D3DCMP_EQUAL do not work
correctly yet.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:StencilOp Unrecognized stencil op 0
fixme:d3d:StencilOp Unrecognized stencil op 0
fixme:d3d:StencilOp Unrecognized stencil op 0



those last ones are spaming console much furthermore.

I think that it indicates shortcomings of Wine but I do not know what.

You can download demo from Steam or GamersHell:

http://www.gamershell.com/download_79104.shtml





I'll check it out when I get home and let you know how I make out.
--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
Mateusz Stachowski
Level 3
Level 3
Posts: 71
Joined: Mon Apr 18, 2011 3:49 am

Post by Mateusz Stachowski »

In my previous post I didn't include my configuration so here it goes:

AMD Athlon 64 X2 4400+ @ 2,3GHZ
GeForce 9600 GT OC 512MB
NVIDIA driver 285.03
GeIL Ultra DDRII 2GB/800 (2 x 1GB)
Mateusz Stachowski
Level 3
Level 3
Posts: 71
Joined: Mon Apr 18, 2011 3:49 am

Results on vanilla Wine

Post by Mateusz Stachowski »

I should also noted that I also ran this demo on vanilla Wine 1.3.17 with the same results. Mouse isn't working in the menu or in-game but you can navigate with keyboard.

This is what I get in terminal on 1.3.17 http://pastebin.com/gDUHkzj9

The test on 1.3.28 is also for vanilla Wine and as I mentioned earlier with that version I wasn't even able to get to the menu.

I'm wondering does any of the Wine developers or more techy people know what is causing those problems.
Berillions
Level 4
Level 4
Posts: 230
Joined: Sat Mar 28, 2009 12:55 pm

Post by Berillions »

Try to put this option in Regedit (Direct3D key) ;
"AlwaysOffscreen"="enabled" (without "")

With it, i haven't graphic problem in the demo.
Mateusz Stachowski
Level 3
Level 3
Posts: 71
Joined: Mon Apr 18, 2011 3:49 am

What version of Wine?

Post by Mateusz Stachowski »

Could you please specify on what version of Wine did you run it and did you put also "UseGLSL"="disabled" in to wine registry. Did you used any dll overrides or a patch for Wine.

I'm asking those questions beacuse it didn't help. I know that this option was provided with the release of Wine 1.3.27 but on that the game just hangs (on the logo of developer Flying Wild Hog).
Berillions
Level 4
Level 4
Posts: 230
Joined: Sat Mar 28, 2009 12:55 pm

Post by Berillions »

I use a clean wineprefix with wine 1.3.28.
I didn't install apps like d3dx9, vcrun200x, i didn't put UseGLSL=disabled and i didn't patch wine.

Can you put a screen with your graphic problem ?
Mateusz Stachowski
Level 3
Level 3
Posts: 71
Joined: Mon Apr 18, 2011 3:49 am

Post by Mateusz Stachowski »

I think that I know what is causing my problems. I'm using Open Sound System (OSS-v4.2-build2005) and when I run Hard Reset on Wine 1.3.28 there is this error in terminal:

Code: Select all

fixme:dbghelp_dwarf:compute_location Only supporting one reg (edx/19 -> -2)
fixme:dbghelp_dwarf:compute_location Only supporting one breg (ecx/18 -> edx/19)
fixme:xinput:XInputGetState (0 0xc0b848)
fixme:win:RegisterRawInputDevices (pRawInputDevices=0x32fb30, uiNumDevices=1, cbSize=12) stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f234,0x00000000), stub!
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000001 not handled
fixme:wbemprox:wbem_locator_ConnectServer 0x4edea60, L"\\\\.\\root\\cimv2", (null), (null), (null), 0x00000000, (null), (nil), 0x32f274)
fixme:d3d:debug_d3dformat Unrecognized 0x5a574152 (as fourcc: RAWZ) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x5a574152) in the format lookup table
fixme:d3d:debug_d3dformat Unrecognized 0x31495441 (as fourcc: ATI1) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x31495441) in the format lookup table
fixme:d3d:debug_d3dformat Unrecognized 0x5a534552 (as fourcc: RESZ) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x5a534552) in the format lookup table
fixme:d3d:swapchain_init Add OpenGL context recreation support to context_validate_onscreen_formats
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:process:GetLogicalProcessorInformation ((nil),0x32faf0): stub
err:winmm:WOD_PushData ReleaseBuffer failed: 80004005
err:winmm:WOD_PushData GetBuffer failed: 88890007
err:winmm:WOD_PushData GetBuffer failed: 88890007
fixme:thread:SetThreadIdealProcessor (0x15c): stub
err:winmm:WOD_PushData GetBuffer failed: 88890007
fixme:thread:SetThreadIdealProcessor (0x168): stub
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
err:winmm:WOD_PushData GetBuffer failed: 88890007
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
err:winmm:WOD_PushData GetBuffer failed: 88890007
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
err:winmm:WOD_PushData GetBuffer failed: 88890007
err:winmm:WOD_PushData GetBuffer failed: 88890007
err:winmm:WOD_PushData GetBuffer failed: 88890007
I've searched for it and found this bug report:

http://bugs.winehq.org/show_bug.cgi?id=28056

FreeBSD uses it's own implementation of Open Sound System but it probably isn't to different of that from 4Front Technologies. To bad that this prevents the demo to run.


I aslo found the footage of working demo on Linux (by 2m42hy he's making many such vids):

http://www.youtube.com/watch?v=JvnRUxoW ... ideo_title

be aware of unbelievably annoying music that he likes to attach to videos.
Mateusz Stachowski
Level 3
Level 3
Posts: 71
Joined: Mon Apr 18, 2011 3:49 am

"wined3d_main.c: wined3d_cs" wait timed out

Post by Mateusz Stachowski »

After some more investigations it seems that it is not sound that's causing the hang ups. I've run this app on multiple versions of wine and there is always this error message in the output of terminal:

Code: Select all

err:ntdll:RtlpWaitForCriticalSection section 0x686d8bd8 "wined3d_main.c: wined3d_cs" wait timed out in thread 0021, blocked by 0020, retrying (60 sec)
I have looked upon commits submitted to the wined3d.dll and found that:

http://repo.or.cz/w/wine.git/commit/f9c ... 8a53ba04f7

It's commit by Henri Verbeet from August of 2009, so it's very old. I tried to revert it but it's not possible with:

Code: Select all

git revert -n f9c791f9ca6ecbf14cda12c1c946a48a53ba04f7
and with:

Code: Select all

git checkout f9c791f9ca6ecbf14cda12c1c946a48a53ba04f7 && git reset --hard HEAD^
I ended up with wine reverted to verion 1.1.38.

I have also run regression test on the dlls/wined3d and in one of them I got result pointing to commit that aded the "AlwaysOffScreen"="enabled" functionality.

http://repo.or.cz/w/wine.git/commit/620 ... 5d451ed790

Maybe the combination of those two results in lock up of the Hard Reset Demo. Although it seems that for now I'm the only one having that problem.
Mateusz Stachowski
Level 3
Level 3
Posts: 71
Joined: Mon Apr 18, 2011 3:49 am

"x11drv_main.c: X11DRV_CritSection" wait timed out

Post by Mateusz Stachowski »

I've looked again on the wine.log contents and found another error message that is always there:

Code: Select all

err:ntdll:RtlpWaitForCriticalSection section 0x690882c0 "x11drv_main.c: X11DRV_CritSection" wait timed out in thread 0035, blocked by 0034, retrying (60 sec)
I decided to run a regression test on wine-git (on version 1.3.29). I have set the start to dlls/winex11.drv and this was the result:

Code: Select all

40957d025df468c1693b2c259a76466a857b6d1a is the first bad commit
commit 40957d025df468c1693b2c259a76466a857b6d1a
Author: Alexandre Julliard <[email protected]>
Date:   Mon Sep 12 11:39:17 2011 +0200

    winex11: Create a separate graphics driver for XRender.

:040000 040000 e4a746270bcfd323388eb43d41f14447b5395faa 2b684c018cd203101f052bc993fd53c8bc6553e2 M	dlls
Unfortunately I didn't figure out how to revert that commit. Git gives me messages about unmerged changes and I'm not that experienced about control version systems.
Locked