From f503ba4c8b9d974641dcad115fafcaafb170788d Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 2 May 2019 16:02:15 +0200 Subject: [PATCH] [d3d11] Fix counter value offset in DrawAuto According to the newly released D3D11.3 functional specification, we're supposed to subtract the offset of the slot 0 vertex buffer binding from the counter value. --- src/d3d11/d3d11_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index 451c7266..9f2593d7 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -1361,7 +1361,7 @@ namespace dxvk { EmitCs([=] (DxvkContext* ctx) { ctx->drawIndirectXfb(ctrBuf, vtxBuf.buffer()->getXfbVertexStride(), - 0); // FIXME offset? + vtxBuf.offset()); }); }