mirror of https://github.com/PCSX2/pcsx2.git
Core: Fix codacy errors and warnings
This commit is contained in:
parent
4d4825de75
commit
f841a8ba58
|
@ -521,7 +521,6 @@ void fillFifoOnDrain()
|
|||
|
||||
void drainPgpuDmaLl()
|
||||
{
|
||||
u32 data = 0;
|
||||
if (!dma.state.ll_active)
|
||||
return;
|
||||
|
||||
|
@ -550,7 +549,7 @@ void drainPgpuDmaLl()
|
|||
else
|
||||
{
|
||||
//Or the beginning of a new one
|
||||
data = iopMemRead32(dma.ll_dma.next_address);
|
||||
u32 data = iopMemRead32(dma.ll_dma.next_address);
|
||||
PGPU_DMA_LOG( "Next PGPU LL DMA header= %08X ", data);
|
||||
dmaRegs.madr.address = data & 0x00FFFFFF; //Copy the address in MADR.
|
||||
dma.ll_dma.data_read_address = dma.ll_dma.next_address + 4; //start of data section of packet
|
||||
|
@ -562,7 +561,7 @@ void drainPgpuDmaLl()
|
|||
else
|
||||
{
|
||||
//We are in the middle of linked list transfer
|
||||
data = iopMemRead32(dma.ll_dma.data_read_address);
|
||||
u32 data = iopMemRead32(dma.ll_dma.data_read_address);
|
||||
PGPU_DMA_LOG( "PGPU LL DMA data= %08X addr %08X ", data, dma.ll_dma.data_read_address);
|
||||
ringBufPut(&rb_gp0, &data);
|
||||
dma.ll_dma.data_read_address += 4;
|
||||
|
@ -572,7 +571,6 @@ void drainPgpuDmaLl()
|
|||
|
||||
void drainPgpuDmaNrToGpu()
|
||||
{
|
||||
u32 data = 0;
|
||||
if (!dma.state.to_gpu_active)
|
||||
return;
|
||||
|
||||
|
@ -582,7 +580,7 @@ void drainPgpuDmaNrToGpu()
|
|||
|
||||
if (dma.normal.current_word < dma.normal.total_words)
|
||||
{
|
||||
data = iopMemRead32(dma.normal.address);
|
||||
u32 data = iopMemRead32(dma.normal.address);
|
||||
PGPU_DMA_LOG( "To GPU Normal DMA data= %08X addr %08X ", data, dma.ll_dma.data_read_address);
|
||||
|
||||
ringBufPut(&rb_gp0, &data);
|
||||
|
@ -610,12 +608,12 @@ void drainPgpuDmaNrToGpu()
|
|||
|
||||
void drainPgpuDmaNrToIop()
|
||||
{
|
||||
u32 data = 0;
|
||||
if (!dma.state.to_iop_active || rb_gp0.count <= 0)
|
||||
return;
|
||||
|
||||
if (dma.normal.current_word < dma.normal.total_words)
|
||||
{
|
||||
u32 data = 0;
|
||||
//This is not the best way, but... is there another?
|
||||
ringBufGet(&rb_gp0, &data);
|
||||
iopMemWrite32(dma.normal.address, data);
|
||||
|
|
Loading…
Reference in New Issue