Disable assertion of valid transitions

* This is going to be difficult to debug and verify without the layer
  to debug and verify that all transitions are correct (both on the app
  side and renderdoc's replay side). For now, disable the assert and
  just hope that the app got it right and we replay it right.
This commit is contained in:
baldurk
2015-09-22 16:02:55 +02:00
parent 840bfe7096
commit 118bc91ec0
+5 -2
View File
@@ -333,8 +333,11 @@ void VulkanResourceManager::ApplyTransitions(vector< pair<ResourceId, ImageRegio
it->range.baseArraySlice == t.range.baseArraySlice &&
it->range.arraySize == numslices)
{
RDCASSERT(t.prevstate == UNTRANSITIONED_IMG_STATE || it->state == UNTRANSITIONED_IMG_STATE ||
it->state == t.prevstate);
/*
RDCASSERT(t.prevstate == UNTRANSITIONED_IMG_STATE || it->state == UNTRANSITIONED_IMG_STATE || // renderdoc untracked/ignored
it->state == t.prevstate || // valid transition
t.prevstate == VK_IMAGE_LAYOUT_UNDEFINED); // can transition from UNDEFINED to any state
*/
t.prevstate = it->state;
it->state = t.state;