GPU/SW: Remove unused 5-to-8 conversion functions

This commit is contained in:
Connor McLaughlin 2021-03-18 12:30:10 +10:00
parent 4441bb1a91
commit 703715724e

View file

@ -24,9 +24,6 @@ public:
static constexpr DitherLUT ComputeDitherLUT();
protected:
static constexpr u8 Convert5To8(u8 x5) { return (x5 << 3) | (x5 & 7); }
static constexpr u8 Convert8To5(u8 x8) { return (x8 >> 3); }
union VRAMPixel
{
u16 bits;
@ -36,10 +33,6 @@ protected:
BitField<u16, u8, 10, 5> b;
BitField<u16, bool, 15, 1> c;
u8 GetR8() const { return Convert5To8(r); }
u8 GetG8() const { return Convert5To8(g); }
u8 GetB8() const { return Convert5To8(b); }
void Set(u8 r_, u8 g_, u8 b_, bool c_ = false)
{
bits = (ZeroExtend16(r_)) | (ZeroExtend16(g_) << 5) | (ZeroExtend16(b_) << 10) | (static_cast<u16>(c_) << 15);