maxwell_3d: Reduce severity of logs that can be spammed

These logs were killing performance on some games when they were
spammed. Reduce them to Debug severity.
This commit is contained in:
ReinUsesLisp 2020-05-28 18:23:25 -03:00
parent 099ac9c2a8
commit 9b06e823ee
1 changed files with 7 additions and 6 deletions

View File

@ -457,8 +457,9 @@ void Maxwell3D::StampQueryResult(u64 payload, bool long_query) {
void Maxwell3D::ProcessQueryGet() { void Maxwell3D::ProcessQueryGet() {
// TODO(Subv): Support the other query units. // TODO(Subv): Support the other query units.
ASSERT_MSG(regs.query.query_get.unit == Regs::QueryUnit::Crop, if (regs.query.query_get.unit != Regs::QueryUnit::Crop) {
"Units other than CROP are unimplemented"); LOG_DEBUG(HW_GPU, "Units other than CROP are unimplemented");
}
switch (regs.query.query_get.operation) { switch (regs.query.query_get.operation) {
case Regs::QueryOperation::Release: case Regs::QueryOperation::Release:
@ -534,7 +535,7 @@ void Maxwell3D::ProcessCounterReset() {
rasterizer.ResetCounter(QueryType::SamplesPassed); rasterizer.ResetCounter(QueryType::SamplesPassed);
break; break;
default: default:
LOG_WARNING(Render_OpenGL, "Unimplemented counter reset={}", LOG_DEBUG(Render_OpenGL, "Unimplemented counter reset={}",
static_cast<int>(regs.counter_reset)); static_cast<int>(regs.counter_reset));
break; break;
} }
@ -592,7 +593,7 @@ std::optional<u64> Maxwell3D::GetQueryResult() {
system.GPU().GetTicks()); system.GPU().GetTicks());
return {}; return {};
default: default:
UNIMPLEMENTED_MSG("Unimplemented query select type {}", LOG_DEBUG(HW_GPU, "Unimplemented query select type {}",
static_cast<u32>(regs.query.query_get.select.Value())); static_cast<u32>(regs.query.query_get.select.Value()));
return 1; return 1;
} }