Skip to content

Commit

Permalink
Revert "Some DumpAssetsGFXR instrumentation"
Browse files Browse the repository at this point in the history
  • Loading branch information
panos-lunarg committed Sep 12, 2024
1 parent ebfa1e4 commit 4233c97
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
6 changes: 1 addition & 5 deletions framework/encode/api_capture_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,7 @@ class ApiCaptureManager
uint16_t GetDescriptorMask() const { return common_manager_->GetDescriptorMask(); }
uint64_t GetShaderIDMask() const { return common_manager_->GetShaderIDMask(); }
uint64_t GetBlockIndex() const { return common_manager_->GetBlockIndex(); }
void SetWriteAssets() const
{
GFXRECON_WRITE_CONSOLE("%s - %s()", __FILE__, __func__);
return common_manager_->SetWriteAssets();
}
void SetWriteAssets() const { return common_manager_->SetWriteAssets(); }

bool GetForceFileFlush() const { return common_manager_->GetForceFileFlush(); }
CaptureSettings::MemoryTrackingMode GetMemoryTrackingMode() const
Expand Down
8 changes: 0 additions & 8 deletions framework/encode/capture_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,13 +768,6 @@ void CommonCaptureManager::CheckContinueCaptureForWriteMode(format::ApiFamilyId
void CommonCaptureManager::CheckStartCaptureForTrackMode(format::ApiFamilyId api_family,
uint32_t current_boundary_count)
{
GFXRECON_WRITE_CONSOLE("%s()", __func__)
GFXRECON_WRITE_CONSOLE(" trim_ranges_.empty(): %u", trim_ranges_.empty())
GFXRECON_WRITE_CONSOLE(" RuntimeTriggerEnabled: %u", RuntimeTriggerEnabled())
GFXRECON_WRITE_CONSOLE(" RuntimeWriteAssetsEnabled(): %u", RuntimeWriteAssetsEnabled())
GFXRECON_WRITE_CONSOLE(" write_assets_: %u", write_assets_)
GFXRECON_WRITE_CONSOLE(" capture_mode_: %u", capture_mode_)

if (!trim_ranges_.empty())
{
if (current_boundary_count == trim_ranges_[trim_current_range_].first)
Expand Down Expand Up @@ -814,7 +807,6 @@ void CommonCaptureManager::CheckStartCaptureForTrackMode(format::ApiFamilyId api
// Check to see if an asset dumping has been requested outside of capture range
if (use_asset_file_ && (RuntimeWriteAssetsEnabled() || write_assets_) && capture_mode_ == kModeTrack)
{
GFXRECON_WRITE_CONSOLE(" %u", __LINE__)
capture_mode_ |= kModeWrite;

auto thread_data = GetThreadData();
Expand Down
1 change: 0 additions & 1 deletion framework/encode/custom_vulkan_api_call_encoders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ VKAPI_ATTR uint64_t VKAPI_CALL GetBlockIndexGFXR()

VKAPI_ATTR void VKAPI_CALL DumpAssetsGFXR()
{
GFXRECON_WRITE_CONSOLE("%s - %s()", __FILE__, __func__)
VulkanCaptureManager* manager = VulkanCaptureManager::Get();
manager->SetWriteAssets();
}
Expand Down

0 comments on commit 4233c97

Please sign in to comment.