libcg / grvk

Vulkan-based Mantle API implementation
https://en.wikipedia.org/wiki/Mantle_(API)
zlib License
225 stars 14 forks source link

Thief #42

Open libcg opened 2 years ago

libcg commented 2 years ago

Meta-issue for Thief

niobium93 commented 2 years ago

Doesn't work. grvk.log Thief.log Thief64_4158_2021.12.10-21.11.31.dmp.zip

End of the games log might be interesting:

21:12:07:568 (0300) > [Render] Mantle dlls found!
21:12:07:580 (0300) > [render] GPU 0: AMD RADV NAVI10 (type 12290), 1000.000000,16.000000,16.000000,2.000000,16.000000

21:12:07:581 (0300) > [render] Match (50000.000000-50000.000000-50000.000000,1) 1000000000000000

21:12:07:582 (0300) > [render] Best match (50000.000000-50000.000000-50000.000000,1) 1000000000000000

21:12:07:601 (0300) > [Render] Mantle Timer queue is UNSUPPORTED, using cpu to even out frames for mGPU.
21:12:07:657 (0300) > [Crash] Game crashed with exception: 0xc0000005
Cherser-s commented 2 years ago

Can you post a grvk.log with TRACE level enabled?

niobium93 commented 2 years ago

Here you go: grvk.log

plasticbomb1986 commented 2 years ago

grvk.log Thief.log steam-239160.log Thief64_4158_2021.12.20-19.57.48.zip

Not working yet.

Cherser-s commented 2 years ago

Looks like it's crashing when (or after) trying to query for memory requirements. can you try to apply this patch and send the logs again if they change, I don't have this game:

diff --git a/src/mantle/quirk.c b/src/mantle/quirk.c
index bab54ea..821b82c 100644
--- a/src/mantle/quirk.c
+++ b/src/mantle/quirk.c
@@ -12,7 +12,7 @@ void quirkInit(
                   QUIRK_COMPRESSED_IMAGE_COPY_IN_TEXELS |
                   QUIRK_INVALID_CMD_BUFFER_RESET |
                   QUIRK_CUBEMAP_LAYER_DIV_6;
-    } else if (!strcmp(appInfo->pEngineName, "CivTech")) {
+    } else if (!strcmp(appInfo->pEngineName, "CivTech") || !strcmp(appInfo->pAppName, "Thief")) {
         mQuirks = QUIRK_NON_ZERO_MEM_REQ;
     }
libcg commented 2 years ago

Unfortunately, the game crashes after calling grBeginCommandBuffer: grvk.log

No validation errors to note. It's unclear what's happening.

niobium93 commented 2 years ago

Tried that patch. No difference. The only change in the log is

I/0000012C/quirkInit: enabled 0x1
niobium93 commented 2 years ago

@libcg It doesn't get that far on my end. Dies after grGetObjectInfo. grvk.log

plasticbomb1986 commented 2 years ago

Tried it again, theresult so far is a game crash: steam-239160.log grvk_axl.log grvk.log Shipping-ThiefGame_d3d11.log Shipping-ThiefGame_dxgi.log