summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/svga-notes.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/svga-notes.txt b/docs/svga-notes.txt
new file mode 100644
index 0000000..c61e8ad
--- /dev/null
+++ b/docs/svga-notes.txt
@@ -0,0 +1,22 @@
+1: GMR_A[wram,ptr1] -> Surface 1
+2: GMR_B[wram,ptr2] -> Surface 2
+3: GMR_C[wram,ptr3] -> Surface 3
+4: FBGMR -> Surface 4
+
+int SVGA_focus(wram_ptr, w, h, bpp); -> GMR id, surface id
+
+
+
+3D:
+ SID = focus(dst_surface);
+ render -> surface SID
+
+Flip or update:
+ SID = focus(wram_ptr)
+ SVGA3dCmdSurfaceCopy: SID -> 4
+ (if cursor && sw cursor) wait
+ sw blit vram
+ cmd update
+
+256 or gamma:
+ sw blit + cmd update