Add a bunch of ugly hacks to prevent initial states being needed

This commit is contained in:
baldurk
2016-02-07 18:37:35 +01:00
parent af416b9022
commit 3706f4084b
2 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -1128,7 +1128,8 @@ VkResult WrappedVulkan::vkMapMemory(
{
ResourceId id = GetResourceManager()->GetID(MakeRes(mem));
if(m_State >= WRITING_CAPFRAME)
// VKTODO shouldn't track maps unless capframe, dirty otherwise
if(m_State >= WRITING)
{
auto it = m_MemoryInfo.find(id);
if(it == m_MemoryInfo.end())
@@ -3564,7 +3565,8 @@ void WrappedVulkan::vkCmdCopyImage(
record->AddChunk(scope.Get());
record->dirtied.insert(GetResourceManager()->GetID(MakeRes(destImage)));
// VKTODO init states not implemented yet...
//record->dirtied.insert(GetResourceManager()->GetID(MakeRes(destImage)));
}
}
+3 -1
View File
@@ -390,7 +390,9 @@ void VulkanResourceManager::ApplyTransitions(vector< pair<ResourceId, ImageRegio
bool VulkanResourceManager::Force_InitialState(VkResource res)
{
return (res.Namespace == eResDescriptorSet);
return false;
// VKTODO might need this
//return (res.Namespace == eResDescriptorSet);
}
bool VulkanResourceManager::Need_InitialStateChunk(VkResource res)