mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +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:
parent
3c4a57acc6
commit
44c0f96fc1
@ -1836,6 +1836,11 @@ namespace dxvk {
|
|||||||
DxvkCmdBuffer cmdBuffer;
|
DxvkCmdBuffer cmdBuffer;
|
||||||
|
|
||||||
if (replaceBuffer) {
|
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
|
// As an optimization, allocate a free slice and perform
|
||||||
// the copy in the initialization command buffer instead
|
// the copy in the initialization command buffer instead
|
||||||
// interrupting the render pass and stalling the pipeline.
|
// interrupting the render pass and stalling the pipeline.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user