1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 04:24:11 +01:00

[dxvk] Reduce CPU overhead of indirect draw calls

This commit is contained in:
Philip Rebohle 2018-10-07 17:09:10 +02:00
parent 87f1cd2385
commit 417b6cb6dc
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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);
}