Skip to content

Commit

Permalink
Fix vulkan-smoketest replay
Browse files Browse the repository at this point in the history
Fix issue google#2307
  • Loading branch information
Qining committed Oct 24, 2018
1 parent 210dc40 commit 8044b9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gapis/api/vulkan/footprint_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,8 @@ func (ds *descriptorSet) writeDescriptors(ctx context.Context,
for _, bufferInfo := range write.PBufferInfo().Slice(0, count, l).MustRead(ctx, cmd, s, nil) {
updateDstForOverflow()
vkBuf := bufferInfo.Buffer()
read(ctx, bh, vb.toVkHandle(uint64(vkBuf)))
vb.buffers[vkBuf].getSubBindingList(ctx, bh, uint64(bufferInfo.Offset()), uint64(bufferInfo.Range()))
ds.setDescriptor(ctx, bh, dstBinding, dstElm, write.DescriptorType(), VkImage(0),
vb.toVkHandle(0), vkBuf, bufferInfo.Offset(), bufferInfo.Range())
dstElm++
Expand All @@ -986,6 +988,8 @@ func (ds *descriptorSet) writeDescriptors(ctx context.Context,
for _, bufferInfo := range write.PBufferInfo().Slice(0, count, l).MustRead(ctx, cmd, s, nil) {
updateDstForOverflow()
vkBuf := bufferInfo.Buffer()
read(ctx, bh, vb.toVkHandle(uint64(vkBuf)))
vb.buffers[vkBuf].getSubBindingList(ctx, bh, uint64(bufferInfo.Offset()), uint64(bufferInfo.Range()))
ds.setDescriptor(ctx, bh, dstBinding, dstElm, write.DescriptorType(), VkImage(0),
vb.toVkHandle(0), vkBuf, bufferInfo.Offset(), bufferInfo.Range())
dstElm++
Expand Down

0 comments on commit 8044b9b

Please sign in to comment.