Lines Matching refs:cb_state
634 void CoreChecks::TransitionBeginRenderPassLayouts(CMD_BUFFER_STATE *cb_state, const RENDER_PASS_STA… in TransitionBeginRenderPassLayouts() argument
641 SetImageViewLayout(cb_state, *view_state, rpci->pAttachments[i].initialLayout); in TransitionBeginRenderPassLayouts()
645 TransitionSubpassLayouts(cb_state, render_pass_state, 0, framebuffer_state); in TransitionBeginRenderPassLayouts()
725 bool CoreChecks::ValidateBarriersToImages(CMD_BUFFER_STATE const *cb_state, uint32_t imageMemoryBar… in ValidateBarriersToImages() argument
763 … HandleToUint64(cb_state->commandBuffer), "VUID-VkImageMemoryBarrier-oldLayout-01197", in ValidateBarriersToImages()
813 const auto *subresource_map = GetImageSubresourceLayoutMap(cb_state, img_barrier.image); in ValidateBarriersToImages()
822 auto subres_callback = [this, img_barrier, cb_state, &layout_check, &subres_skip]( in ValidateBarriersToImages()
827 … HandleToUint64(cb_state->commandBuffer), "VUID-VkImageMemoryBarrier-oldLayout-01197", in ValidateBarriersToImages()
844 bool CoreChecks::IsReleaseOp(CMD_BUFFER_STATE *cb_state, const VkImageMemoryBarrier &barrier) const… in IsReleaseOp() argument
847 auto pool = GetCommandPoolState(cb_state->createInfo.commandPool); in IsReleaseOp()
852 …teQFOTransferBarrierUniqueness(const char *func_name, CMD_BUFFER_STATE *cb_state, uint32_t barrier… in ValidateQFOTransferBarrierUniqueness() argument
856 auto pool = GetCommandPoolState(cb_state->createInfo.commandPool); in ValidateQFOTransferBarrierUniqueness()
857 auto &barrier_sets = GetQFOBarrierSets(cb_state, typename BarrierRecord::Tag()); in ValidateQFOTransferBarrierUniqueness()
881 … HandleToUint64(cb_state->commandBuffer), BarrierRecord::ErrMsgDuplicateQFOInCB(), in ValidateQFOTransferBarrierUniqueness()
893 void CoreChecks::RecordQFOTransferBarriers(CMD_BUFFER_STATE *cb_state, uint32_t barrier_count, cons… in RecordQFOTransferBarriers() argument
894 auto pool = GetCommandPoolState(cb_state->createInfo.commandPool); in RecordQFOTransferBarriers()
895 auto &barrier_sets = GetQFOBarrierSets(cb_state, typename QFOTransferBarrier<Barrier>::Tag()); in RecordQFOTransferBarriers()
908 …oreChecks::ValidateBarriersQFOTransferUniqueness(const char *func_name, CMD_BUFFER_STATE *cb_state, in ValidateBarriersQFOTransferUniqueness() argument
913 …skip |= ValidateQFOTransferBarrierUniqueness(func_name, cb_state, bufferBarrierCount, pBufferMemBa… in ValidateBarriersQFOTransferUniqueness()
914 …skip |= ValidateQFOTransferBarrierUniqueness(func_name, cb_state, imageMemBarrierCount, pImageMemB… in ValidateBarriersQFOTransferUniqueness()
918 void CoreChecks::RecordBarriersQFOTransfers(CMD_BUFFER_STATE *cb_state, uint32_t bufferBarrierCount, in RecordBarriersQFOTransfers() argument
921 RecordQFOTransferBarriers(cb_state, bufferBarrierCount, pBufferMemBarriers); in RecordBarriersQFOTransfers()
922 RecordQFOTransferBarriers(cb_state, imageMemBarrierCount, pImageMemBarriers); in RecordBarriersQFOTransfers()
926 …idateAndUpdateQFOScoreboard(const debug_report_data *report_data, const CMD_BUFFER_STATE *cb_state, in ValidateAndUpdateQFOScoreboard() argument
930 auto inserted = scoreboard->insert(std::make_pair(barrier, cb_state)); in ValidateAndUpdateQFOScoreboard()
931 if (!inserted.second && inserted.first->second != cb_state) { in ValidateAndUpdateQFOScoreboard()
934 … HandleToUint64(cb_state->commandBuffer), BarrierRecord::ErrMsgDuplicateQFOInSubmit(), in ValidateAndUpdateQFOScoreboard()
945 bool CoreChecks::ValidateQueuedQFOTransferBarriers(const CMD_BUFFER_STATE *cb_state, in ValidateQueuedQFOTransferBarriers() argument
950 const auto &cb_barriers = GetQFOBarrierSets(cb_state, TypeTag()); in ValidateQueuedQFOTransferBarriers()
963 … HandleToUint64(cb_state->commandBuffer), BarrierRecord::ErrMsgDuplicateQFOSubmitted(), in ValidateQueuedQFOTransferBarriers()
971 …skip |= ValidateAndUpdateQFOScoreboard(report_data, cb_state, "releasing", release, &scoreboards->… in ValidateQueuedQFOTransferBarriers()
983 … HandleToUint64(cb_state->commandBuffer), BarrierRecord::ErrMsgMissingQFOReleaseInSubmit(), in ValidateQueuedQFOTransferBarriers()
989 …skip |= ValidateAndUpdateQFOScoreboard(report_data, cb_state, "acquiring", acquire, &scoreboards->… in ValidateQueuedQFOTransferBarriers()
994 bool CoreChecks::ValidateQueuedQFOTransfers(const CMD_BUFFER_STATE *cb_state, in ValidateQueuedQFOTransfers() argument
998 … skip |= ValidateQueuedQFOTransferBarriers<VkImageMemoryBarrier>(cb_state, qfo_image_scoreboards); in ValidateQueuedQFOTransfers()
999 …skip |= ValidateQueuedQFOTransferBarriers<VkBufferMemoryBarrier>(cb_state, qfo_buffer_scoreboards); in ValidateQueuedQFOTransfers()
1004 void CoreChecks::RecordQueuedQFOTransferBarriers(CMD_BUFFER_STATE *cb_state) { in RecordQueuedQFOTransferBarriers() argument
1007 const auto &cb_barriers = GetQFOBarrierSets(cb_state, TypeTag()); in RecordQueuedQFOTransferBarriers()
1031 void CoreChecks::RecordQueuedQFOTransfers(CMD_BUFFER_STATE *cb_state) { in RecordQueuedQFOTransfers() argument
1032 RecordQueuedQFOTransferBarriers<VkImageMemoryBarrier>(cb_state); in RecordQueuedQFOTransfers()
1033 RecordQueuedQFOTransferBarriers<VkBufferMemoryBarrier>(cb_state); in RecordQueuedQFOTransfers()
1039 void CoreChecks::TransitionImageLayouts(CMD_BUFFER_STATE *cb_state, uint32_t memBarrierCount, in TransitionImageLayouts() argument
1051 if (IsReleaseOp(cb_state, mem_barrier)) { in TransitionImageLayouts()
1069 …SetImageLayout(cb_state, *image_state, normalized_isr, mem_barrier.newLayout, mem_barrier.oldLayou… in TransitionImageLayouts()