FGR improvements

This commit is contained in:
Simone
2024-01-16 12:15:31 +01:00
parent c8bdf426fc
commit c4f021cb9d
3 changed files with 169 additions and 120 deletions

View File

@@ -42,9 +42,9 @@ static FORCE_INLINE constexpr u32 GetVideoFrequency(bool pal) {
#define RD(x) (((x) >> 11) & 0x1F)
#define RT(x) (((x) >> 16) & 0x1F)
#define RS(x) (((x) >> 21) & 0x1F)
#define FD(x) (((x) >> 6) & 0x1F)
#define FT(x) RT(x)
#define FS(x) RD(x)
#define FD(type, x) FGR_D<type>(regs.cop0.status, (((x) >> 6) & 0x1F))
#define FT(type, x) FGR_T<type>(regs.cop0.status, RT((x)))
#define FS(type, x) FGR_S<type>(regs.cop0.status, RD((x)))
#define BASE(x) RS(x)
#define VT(x) (((x) >> 16) & 0x1F)
#define VS(x) (((x) >> 11) & 0x1F)