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:
parent
0b011ea361
commit
1863c6e81c
@ -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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user