protonscr

unexpected KW_DEPTHSTENCILSTATE in City Car Driving

dxvkclosed not our bug
doitsujin/dxvk#2580 · opened 2022-04-02 by mikhailnov · updated 2022-11-30 · 3 comments · github
Mmikhailnov 2022-04-02 github

Hello.

I am trying to run 32 bit City Car Driving with dxvk and get many errors, the only one in console is:

CEGUI::RendererException in file ........\cegui\src\RendererModules\Direct3D11\CEGUIDirect3D11Renderer.cpp(312) : shaderSource:22:2: E5000: syntax error, unexpected KW_DEPTHSTENCILSTATE

Does it look worth investigation from the dxvk side?

P.S. Wine is patched:

diff --git a/dlls/kernelbase/thread.c b/dlls/kernelbase/thread.c
index 6ba58cf..fd668cd 100644
--- a/dlls/kernelbase/thread.c
+++ b/dlls/kernelbase/thread.c
@@ -417,20 +417,10 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetThreadContext( HANDLE thread, const CONTEXT *co
  */
 HRESULT WINAPI DECLSPEC_HOTPATCH SetThreadDescription( HANDLE thread, PCWSTR description )
 {
-    THREAD_NAME_INFORMATION info;
-    int length;
-
-    TRACE( "(%p, %s)\n", thread, debugstr_w( description ));
-
-    length = description ? lstrlenW( description ) * sizeof(WCHAR) : 0;
-
-    if (length > USHRT_MAX)
-        return HRESULT_FROM_NT(STATUS_INVALID_PARAMETER);
-
-    info.ThreadName.Length = info.ThreadName.MaximumLength = length;
-    info.ThreadName.Buffer = (WCHAR *)description;
-
-    return HRESULT_FROM_NT(NtSetInformationThread( thread, ThreadNameInformation, &info, sizeof(info) ));
+    // https://github.com/wine-mirror/wine/commit/b4684bc561257de99ce2b3bef29cc9b622aab239 + comments on GitHub
+    // https://github.com/wine-mirror/wine/commit/179cd78f828c67a113e5f0ad85952cfb99c0a281
+    FIXME( "(%p %s): stub\n", thread, debugstr_w( description ));
+    return S_OK;
 }
 
 /***********************************************************************
@@ -558,8 +548,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetThreadLocale( LCID lcid )
  */
 BOOL WINAPI DECLSPEC_HOTPATCH SetThreadPriority( HANDLE thread, INT priority )
 {
-    DWORD prio = priority;
-    return set_ntstatus( NtSetInformationThread( thread, ThreadBasePriority, &prio, sizeof(prio) ));
+    return TRUE;
 }
KK0bin maintainer 2022-04-02 github

shaderSource:22:2: E5000: syntax error, unexpected KW_DEPTHSTENCILSTATE

DXVK does not interact with shader source code. It's more likely that this is a Wine problem.

Ddoitsujin maintainer 2022-04-02 github

Looks like a d3dcompiler thing, we don't emit messages like that. Need full wine/proton log to tell what's going on, but this almost certainly isn't our bug.

BBlisto91 2022-08-12 github

@mikhailnov Friendly ping. Did you have a full wine or proton log?

Nothing extracted yet.