mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Ignore pipeline caches that are too large for 32-bit chunk size
This commit is contained in:
@@ -638,6 +638,10 @@ VkResult WrappedVulkan::vkCreatePipelineCache(VkDevice device,
|
||||
{
|
||||
VkPipelineCacheCreateInfo createInfo = *pCreateInfo;
|
||||
|
||||
// ignore pipeline caches that are too large and overflow 32-bit chunk size
|
||||
if(createInfo.initialDataSize > 0xffff0000)
|
||||
createInfo.initialDataSize = 0;
|
||||
|
||||
VkResult ret;
|
||||
SERIALISE_TIME_CALL(ret = ObjDisp(device)->CreatePipelineCache(Unwrap(device), &createInfo, NULL,
|
||||
pPipelineCache));
|
||||
|
||||
Reference in New Issue
Block a user