union magic refcnt as well

This commit is contained in:
kmather73
2018-12-28 00:23:19 -08:00
parent 6574bbbbda
commit 08b484b11e
2 changed files with 1 additions and 11 deletions

View File

@@ -188,6 +188,7 @@ void GPU::CallPullerMethod(const MethodCall& method_call) {
case BufferMethods::SemaphoreAddressHigh:
case BufferMethods::SemaphoreAddressLow:
case BufferMethods::SemaphoreSequence:
case BufferMethods::RefCnt:
break;
case BufferMethods::SemaphoreTrigger: {
ProcessSemaphoreTriggerMethod();
@@ -213,10 +214,6 @@ void GPU::CallPullerMethod(const MethodCall& method_call) {
LOG_ERROR(HW_GPU, "Special puller engine method Unk2c not implemented");
break;
}
case BufferMethods::RefCnt: {
SetReferenceCount();
break;
}
case BufferMethods::SemaphoreAcquire: {
ProcessSemaphoreAcquire();
break;
@@ -339,9 +336,4 @@ void GPU::ProcessSemaphoreAcquire() {
}
}
void GPU::SetReferenceCount() {
// TODO(kmather73) Wait for all previously submitted commands complete before setting.
regs.reference_count = regs.reg_array[static_cast<u32>(BufferMethods::RefCnt)];
}
} // namespace Tegra

View File

@@ -209,8 +209,6 @@ private:
void ProcessSemaphoreTriggerMethod();
void ProcessSemaphoreRelease();
void ProcessSemaphoreAcquire();
void ProcessSetSemaphoreSequence();
void SetReferenceCount();
// Calls a GPU puller method.
void CallPullerMethod(const MethodCall& method_call);