Skip to content

Commit

Permalink
fix presubmit
Browse files Browse the repository at this point in the history
  • Loading branch information
Qining committed Jan 14, 2019
1 parent d7405c0 commit 682e5b0
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 128 deletions.
18 changes: 9 additions & 9 deletions gapis/api/vulkan/custom_replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func insertVirtualSwapchainPNext(ctx context.Context, cmd api.Cmd, id api.CmdID,
pNextData := g.AllocDataOrPanic(ctx, NewVulkanStructHeader(
g.Arena,
virtualSwapchainStruct, // sType
0, // pNext
0, // pNext
))
if info.PNext().IsNullptr() {
info.SetPNext(NewVoidᶜᵖ(pNextData.Ptr()))
Expand Down Expand Up @@ -841,14 +841,14 @@ func (a *ReplayAllocateImageMemory) Mutate(ctx context.Context, id api.CmdID, s
imageFormat, err := getImageFormatFromVulkanFormat(imageObject.Info().Fmt())
imageSize := VkDeviceSize(imageFormat.Size(int(imageWidth), int(imageHeight), 1))
memoryObject := NewDeviceMemoryObjectʳ(arena,
a.Device(), // Device
memory, // VulkanHandle
imageSize, // AllocationSize
NewU64ːVkDeviceSizeᵐ(arena), // BoundObjects
0, // MappedOffset
0, // MappedSize
0, // MappedLocation
0, // MemoryTypeIndex
a.Device(), // Device
memory, // VulkanHandle
imageSize, // AllocationSize
NewU64ːVkDeviceSizeᵐ(arena), // BoundObjects
0, // MappedOffset
0, // MappedSize
0, // MappedLocation
0, // MemoryTypeIndex
MakeU8ˢ(uint64(imageSize), s), // Data
NilVulkanDebugMarkerInfoʳ, // DebugInfo
NilMemoryDedicatedAllocationInfoʳ, // DedicatedAllocationNV
Expand Down
Loading

0 comments on commit 682e5b0

Please sign in to comment.