Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remap the allocator during replay. #1837

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

AWoloszyn
Copy link
Contributor

This means we can replace pAllocator with nulltpr when
necessary.

@AWoloszyn AWoloszyn requested review from Qining and ben-clayton April 25, 2018 18:35
@@ -73,3 +73,4 @@ type u32 VkSampleMask
// Vulkan 1.1 core
@replay_remap @nonDispatchHandle type u64 VkDescriptorUpdateTemplate
@replay_remap @nonDispatchHandle type u64 VkSamplerYcbcrConversion
@replay_custom_value type const VkAllocationCallbacks* AllocationCallbacks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you've put this under Vulkan 1.1, when this is a Vulkan 1.0 thing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -452,3 +453,7 @@ func (a *ReplayAllocateImageMemory) Mutate(ctx context.Context, id api.CmdID, s
a.PMemory.Slice(0, 1, l).Write(ctx, []VkDeviceMemory{memory}, a, s, b)
return err
}

func (i AllocationCallbacks) value(b *builder.Builder, cmd api.Cmd, s *api.GlobalState) value.Value {
return value.AbsolutePointer(0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please comment why you're always using a 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

This means we can replace pAllocator with nulltpr when
necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants