-
Notifications
You must be signed in to change notification settings - Fork 327
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
Conversation
gapis/api/vulkan/api/types.api
Outdated
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
gapis/api/vulkan/custom_replay.go
Outdated
@@ -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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
eb455b5
to
68b1f6a
Compare
This means we can replace pAllocator with nulltpr when
necessary.