Removing unused funcitons and other pr comment
This commit is contained in:
+5
-26
@@ -288,16 +288,13 @@ void GPU::ProcessSemaphoreTriggerMethod() {
|
|||||||
auto address = memory_manager->GpuToCpuAddress(regs.smaphore_address.SmaphoreAddress());
|
auto address = memory_manager->GpuToCpuAddress(regs.smaphore_address.SmaphoreAddress());
|
||||||
struct Block {
|
struct Block {
|
||||||
u32 sequence;
|
u32 sequence;
|
||||||
u32 zeros;
|
u32 zeros = 0;
|
||||||
u64 timestamp;
|
u64 timestamp;
|
||||||
|
};
|
||||||
|
|
||||||
Block(u32 sequence) {
|
Block block{};
|
||||||
this->sequence = sequence;
|
block.sequence = regs.semaphore_sequence;
|
||||||
zeros = 0;
|
block.timestamp = acquire_timestamp;
|
||||||
timestamp = CoreTiming::GetTicks();
|
|
||||||
}
|
|
||||||
} block(regs.semaphore_sequence);
|
|
||||||
|
|
||||||
Memory::WriteBlock(*address, &block, sizeof(block));
|
Memory::WriteBlock(*address, &block, sizeof(block));
|
||||||
} else {
|
} else {
|
||||||
const u32 word = Memory::Read32(regs.smaphore_address.SmaphoreAddress());
|
const u32 word = Memory::Read32(regs.smaphore_address.SmaphoreAddress());
|
||||||
@@ -350,24 +347,6 @@ void GPU::ProcessSemaphoreAcquire() {
|
|||||||
regs.acquire_source = false;
|
regs.acquire_source = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void GPU::ProcessSetSemaphoreAddressHigh() {
|
|
||||||
const auto addrHigh = regs.reg_array[static_cast<u32>(BufferMethods::SemaphoreAddressHigh)];
|
|
||||||
// AddrHigh should only be 8 bits wide
|
|
||||||
if (addrHigh & 0xffffff00) {
|
|
||||||
LOG_ERROR(HW_GPU, "SemaphoreAddressHigh too large");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
regs.smaphore_address.smaphore_address_high = addrHigh;
|
|
||||||
}
|
|
||||||
void GPU::ProcessSetSemaphoreAddressLow() {
|
|
||||||
const auto addrLow = regs.reg_array[static_cast<u32>(BufferMethods::SemaphoreAddressLow)];
|
|
||||||
// AddrLow should be word aligned
|
|
||||||
if (addrLow & 3) {
|
|
||||||
LOG_ERROR(HW_GPU, "SemaphoreAddressLow unaligned");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
regs.smaphore_address.smaphore_address_low = addrLow;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GPU::SetReferenceCount() {
|
void GPU::SetReferenceCount() {
|
||||||
// TODO(kmather73) Wait for all previously submitted commands complete before setting.
|
// TODO(kmather73) Wait for all previously submitted commands complete before setting.
|
||||||
|
|||||||
Reference in New Issue
Block a user