-
Notifications
You must be signed in to change notification settings - Fork 172
WIP: layers: Use CB invalidation mechanism for VU135. #1789
base: master
Are you sure you want to change the base?
Conversation
@@ -9550,6 +9540,12 @@ VKAPI_ATTR void VKAPI_CALL CmdExecuteCommands(VkCommandBuffer commandBuffer, uin | |||
pCommandBuffers[i], pCB->commandBuffer); | |||
pCB->beginInfo.flags &= ~VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT; | |||
} | |||
if (pSubCB->linkedCommandBuffers.size()) { | |||
// TODO: adjust message support so we can report an accurate error message for this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, change looks good and fulfills the old TODO but currently killing VAL_ERR_00135 which is in Command Buffer Submission portion of spec. Need to preserve that check. It's similar to 133, which is handled in validateCommandBufferSimultaneousUse() just before the killed 135 check. Not immediately obvious to me the best way to preserve 135.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From private conversation with @tobine: may be better to remove this VU from the spec as it's redundant with the 'causes the command buffer to become invalid' language.
This looks fine, though I have nothing constructive to add just now. |
Makes more sense to use command buffer invalidation to drive this than maintaining parallel logic and only picking this up at draw time. Drops some additional TODOs in around areas that need some more work to make this nice.
0797062
to
4d43c6a
Compare
Need to rework this a bit for the cleaned up spec language. |
What needs to be done here -- are the spec concerns still valid? |
@chrisforbes, this repository will close for write access on Sunday, 5/13/2018. If it is pushed before that time it will be present in the follow-on Vulkan-ValidationLayers repository on Monday, otherwise a new PR will be required in the new repo. |
Makes more sense to use command buffer invalidation to drive this than
maintaining parallel logic and only picking this up at draw time.
Drops some additional TODOs in around areas that need some more work to
make this nice.
Note: Looking for feedback here, this isn't ready -- we make the validation message in this case much less clear by this change.