From 417b6cb6dceb2aa3ced632e27a0510873f175502 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 7 Oct 2018 17:09:10 +0200 Subject: [PATCH] [dxvk] Reduce CPU overhead of indirect draw calls --- src/dxvk/dxvk_context.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index ae9a0a64..0a1bc590 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -931,11 +931,11 @@ namespace dxvk { this->commitGraphicsState(); if (this->validateGraphicsState()) { - auto physicalSlice = buffer.physicalSlice(); + auto descriptor = buffer.getDescriptor(); m_cmd->cmdDrawIndirect( - physicalSlice.handle(), - physicalSlice.offset(), + descriptor.buffer.buffer, + descriptor.buffer.offset, count, stride); } @@ -969,11 +969,11 @@ namespace dxvk { this->commitGraphicsState(); if (this->validateGraphicsState()) { - auto physicalSlice = buffer.physicalSlice(); + auto descriptor = buffer.getDescriptor(); m_cmd->cmdDrawIndexedIndirect( - physicalSlice.handle(), - physicalSlice.offset(), + descriptor.buffer.buffer, + descriptor.buffer.offset, count, stride); }