2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 22:43:11 -04:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-10 13:54:46 -05:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2015-05-08 17:28:03 -04:00
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
class PointerWrap;
|
|
|
|
|
|
|
|
namespace GPFifo
|
|
|
|
{
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
GATHER_PIPE_SIZE = 32
|
|
|
|
};
|
|
|
|
|
|
|
|
// Init
|
|
|
|
void Init();
|
|
|
|
void DoState(PointerWrap& p);
|
|
|
|
|
|
|
|
// ResetGatherPipe
|
|
|
|
void ResetGatherPipe();
|
2017-11-18 15:05:27 +01:00
|
|
|
void UpdateGatherPipe();
|
2008-12-08 04:46:09 +00:00
|
|
|
void CheckGatherPipe();
|
2015-01-30 15:45:51 -08:00
|
|
|
void FastCheckGatherPipe();
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
bool IsEmpty();
|
|
|
|
|
|
|
|
// Write
|
2015-09-02 15:20:02 -04:00
|
|
|
void Write8(u8 value);
|
|
|
|
void Write16(u16 value);
|
|
|
|
void Write32(u32 value);
|
|
|
|
void Write64(u64 value);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
// These expect pre-byteswapped values
|
|
|
|
// Also there's an upper limit of about 512 per batch
|
|
|
|
// Most likely these should be inlined into JIT instead
|
2015-09-02 15:20:02 -04:00
|
|
|
void FastWrite8(u8 value);
|
|
|
|
void FastWrite16(u16 value);
|
|
|
|
void FastWrite32(u32 value);
|
|
|
|
void FastWrite64(u64 value);
|
2019-05-05 23:48:12 +00:00
|
|
|
} // namespace GPFifo
|