Permalink
Browse files

EfbInterface: Move buffer constant from the header to the cpp file

This is only ever used internally, so we can limit its scope to the only
usage point.
  • Loading branch information...
lioncash committed May 18, 2018
1 parent 5eef8ba commit 505d45a2331e5587ca0b564ec616fc5855c33fd7
@@ -32,7 +32,9 @@ static inline u32 GetColorOffset(u16 x, u16 y)
static inline u32 GetDepthOffset(u16 x, u16 y)
{
return (x + y * EFB_WIDTH) * 3 + DEPTH_BUFFER_START;
constexpr u32 depth_buffer_start = EFB_WIDTH * EFB_HEIGHT * 3;
return (x + y * EFB_WIDTH) * 3 + depth_buffer_start;
}
static void SetPixelAlphaOnly(u32 offset, u8 a)
@@ -10,8 +10,6 @@
namespace EfbInterface
{
const int DEPTH_BUFFER_START = EFB_WIDTH * EFB_HEIGHT * 3;
// xfb color format - packed so the compiler doesn't mess with alignment
#pragma pack(push, 1)
struct yuv422_packed

0 comments on commit 505d45a

Please sign in to comment.