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

Support texel buffers for images on device memory with private (device-only) storage #2209

Open
billhollings opened this issue Apr 15, 2024 · 0 comments
Labels

Comments

@billhollings
Copy link
Contributor

Vulkan supports creating a VkDeviceMemory on device-only storage (MTLStorageModePrivate), binding a VkImage and VkBuffer on the same memory offset, and then expecting changes in each resource to automatically propagate to the other.

MoltenVK supports this for host-accessible storage by creating a MTLBuffer in the MVKDeviceMemory and then creating the MVKImage as a texel buffer on that MTLBuffer.

This should also be supported for device-only storage as well.

This issue causes the following CTS tests to fail (among others no doubt):

dEQP-VK.image.host_image_copy.identical_memory_layout.linear.r8g8b8a8_unorm
dEQP-VK.image.host_image_copy.identical_memory_layout.linear.r32g32b32a32_sfloat
dEQP-VK.image.host_image_copy.identical_memory_layout.linear.r16_unorm
dEQP-VK.image.host_image_copy.identical_memory_layout.linear.r16g16_uint
dEQP-VK.image.host_image_copy.identical_memory_layout.linear.r16_sfloat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant