GPU: Replace coord/size masks with constants

This commit is contained in:
Connor McLaughlin
2020-05-21 12:02:19 +10:00
parent 35a8c5b47c
commit c583459c6f
2 changed files with 24 additions and 21 deletions

View File

@ -88,6 +88,9 @@ public:
VRAM_WIDTH = 1024,
VRAM_HEIGHT = 512,
VRAM_SIZE = VRAM_WIDTH * VRAM_HEIGHT * sizeof(u16),
VRAM_WIDTH_MASK = VRAM_WIDTH - 1,
VRAM_HEIGHT_MASK = VRAM_HEIGHT - 1,
VRAM_COORD_MASK = 0x3FF,
MAX_FIFO_SIZE = 4096,
TEXTURE_PAGE_WIDTH = 256,
TEXTURE_PAGE_HEIGHT = 256,