Skip to content

Commit

Permalink
Added some missing dependency information.
Browse files Browse the repository at this point in the history
  • Loading branch information
AWoloszyn committed Jan 14, 2019
1 parent 78d3d0c commit 64b7de0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gapis/api/vulkan/api/descriptor.api
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,11 @@ cmd void vkUpdateDescriptorSets(
bufferBindings := setBinding.BufferBinding
bufferBindings[arrayIndex] = w.BufferInfo
setBinding.BufferBinding = bufferBindings
for _, _, b in setBinding.BufferBinding {
if !b.Buffer in Buffers {
vkErrorInvalidBuffer(b.Buffer)
}
}
}
}
set.Bindings[binding] = setBinding
Expand Down Expand Up @@ -701,6 +706,11 @@ cmd void vkUpdateDescriptorSets(
bufferBinding[c.DstArrayIndex] =
srcBinding.BufferBinding[c.SrcArrayIndex]
dstBinding.BufferBinding = bufferBinding
for _, _, b in dstBinding.BufferBinding {
if !b.Buffer in Buffers {
vkErrorInvalidBuffer(b.Buffer)
}
}
}
}
dstSet.Bindings[c.DstBinding] = dstBinding
Expand Down
1 change: 1 addition & 0 deletions gapis/api/vulkan/api/draw_commands.api
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ sub void dovkCmdDrawIndexedIndirect(ref!vkCmdDrawIndexedIndirectArgs draw) {
readWriteMemoryInBoundGraphicsDescriptorSets()
readCoherentMemoryInBuffer(Buffers[draw.Buffer])
readIndexedIndirectDrawBuffer(draw.Buffer, draw.Offset, draw.DrawCount, draw.Stride)

// Read through all the vertex buffers.
readMemoryInCurrentPipelineBoundVertexBuffers(0xFFFFFFFF, 0xFFFFFFFF, 0, 0)
clearLastDrawInfoDrawCommandParameters()
Expand Down

0 comments on commit 64b7de0

Please sign in to comment.