mirror of
https://github.com/liuk7071/ChonkyStation.git
synced 2024-05-20 12:57:52 -04:00
[GPU] GP1(0x03)
This commit is contained in:
parent
b3a1b8b404
commit
bfecc520dd
|
@ -19,6 +19,8 @@ void GPUSoftware::beginTextureUpload(u16 x, u16 y, u16 width) {
|
|||
}
|
||||
|
||||
void GPUSoftware::textureUploadData(u16 data) {
|
||||
if (!uploadingTexture) Helpers::panic("[FATAL] Attempted to upload texture data before starting a texture transfer\n");
|
||||
|
||||
writePixel(curX, curY, data);
|
||||
|
||||
curX++;
|
||||
|
|
|
@ -84,6 +84,12 @@ void GPU::writeGp1(u32 data) {
|
|||
stat |= (data & 3) << 29;
|
||||
break;
|
||||
}
|
||||
case (u32)GP1Command::DisplayEnable: {
|
||||
// Bits 0 is copied to GPUSTAT.23
|
||||
stat &= ~(1 << 23);
|
||||
stat |= (data & 1) << 23;
|
||||
break;
|
||||
}
|
||||
case (u32)GP1Command::StartOfDisplayArea: {
|
||||
// TODO: Stubbed for now
|
||||
break;
|
||||
|
|
|
@ -38,6 +38,7 @@ public:
|
|||
|
||||
enum class GP1Command {
|
||||
ResetGPU = 0x00,
|
||||
DisplayEnable = 0x03,
|
||||
DMADirection = 0x04,
|
||||
StartOfDisplayArea = 0x05,
|
||||
HorizontalDisplayRange = 0x06,
|
||||
|
|
Loading…
Reference in a new issue