Commit 6add0560 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜
Browse files

image mem reqs

parent 24a4fc06
Pipeline #328822 waiting for manual action with stages
......@@ -1332,20 +1332,29 @@ pan_GetBufferMemoryRequirements2(VkDevice device,
pan_finishme("unimplemented!");
}
void
pan_GetImageMemoryRequirements(VkDevice _device,
VkImage _image,
VkMemoryRequirements *pMemoryRequirements)
{
pan_finishme("unimplemented!");
}
void
pan_GetImageMemoryRequirements2(VkDevice device,
const VkImageMemoryRequirementsInfo2 *pInfo,
VkMemoryRequirements2 *pMemoryRequirements)
{
pan_finishme("unimplemented!");
PAN_FROM_HANDLE(panvk_image, image, pInfo->image);
pMemoryRequirements->memoryRequirements = (VkMemoryRequirements) {
.memoryTypeBits = 1,
.alignment = image->alignment,
.size = image->size
};
}
void
pan_GetImageMemoryRequirements(VkDevice device, VkImage image, VkMemoryRequirements *reqs)
{
VkMemoryRequirements2 reqs2 = { .sType = VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2 };
pan_GetImageMemoryRequirements2(device, &(VkImageMemoryRequirementsInfo2) {
.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2,
.image = image
}, &reqs2);
*reqs = reqs2.memoryRequirements;
}
void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment