1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[dxvk] Pause transform feedback on buffer updates

Otherwise, we might override a currently bound transform
feedback buffer or counter buffer. Fixes Unity Engine.
This commit is contained in:
Philip Rebohle 2019-10-26 19:55:05 +02:00
parent 3c4a57acc6
commit 44c0f96fc1
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -1836,6 +1836,11 @@ namespace dxvk {
DxvkCmdBuffer cmdBuffer;
if (replaceBuffer) {
// Pause transform feedback so that we don't mess
// with the currently bound counter buffers
if (m_flags.test(DxvkContextFlag::GpXfbActive))
this->pauseTransformFeedback();
// As an optimization, allocate a free slice and perform
// the copy in the initialization command buffer instead
// interrupting the render pass and stalling the pipeline.