diff options
Diffstat (limited to 'src/video_core/shader/ast.cpp')
| -rw-r--r-- | src/video_core/shader/ast.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cpp index 784f8f69f..e43aecc18 100644 --- a/src/video_core/shader/ast.cpp +++ b/src/video_core/shader/ast.cpp | |||
| @@ -560,13 +560,13 @@ bool ASTManager::DirectlyRelated(const ASTNode& first, const ASTNode& second) co | |||
| 560 | return min->GetParent() == max->GetParent(); | 560 | return min->GetParent() == max->GetParent(); |
| 561 | } | 561 | } |
| 562 | 562 | ||
| 563 | void ASTManager::ShowCurrentState(std::string_view state) { | 563 | void ASTManager::ShowCurrentState(std::string_view state) const { |
| 564 | LOG_CRITICAL(HW_GPU, "\nState {}:\n\n{}\n", state, Print()); | 564 | LOG_CRITICAL(HW_GPU, "\nState {}:\n\n{}\n", state, Print()); |
| 565 | SanityCheck(); | 565 | SanityCheck(); |
| 566 | } | 566 | } |
| 567 | 567 | ||
| 568 | void ASTManager::SanityCheck() { | 568 | void ASTManager::SanityCheck() const { |
| 569 | for (auto& label : labels) { | 569 | for (const auto& label : labels) { |
| 570 | if (!label->GetParent()) { | 570 | if (!label->GetParent()) { |
| 571 | LOG_CRITICAL(HW_GPU, "Sanity Check Failed"); | 571 | LOG_CRITICAL(HW_GPU, "Sanity Check Failed"); |
| 572 | } | 572 | } |