1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-03 07:29:14 +01:00

[dxvk] Catch exceptions of type DxvkError on CS thread

This commit is contained in:
Philip Rebohle 2020-10-07 16:29:07 +02:00
parent 0b011ea361
commit 1863c6e81c
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -135,6 +135,7 @@ namespace dxvk {
DxvkCsChunkRef chunk; DxvkCsChunkRef chunk;
try {
while (!m_stopped.load()) { while (!m_stopped.load()) {
{ std::unique_lock<std::mutex> lock(m_mutex); { std::unique_lock<std::mutex> lock(m_mutex);
if (chunk) { if (chunk) {
@ -160,6 +161,10 @@ namespace dxvk {
if (chunk) if (chunk)
chunk->executeAll(m_context.ptr()); chunk->executeAll(m_context.ptr());
} }
} catch (const DxvkError& e) {
Logger::err("Exception on CS thread!");
Logger::err(e.message());
}
} }
} }