summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Mandin <pmandin@caramail.com>2008-08-30 19:49:32 +0200
committerPatrice Mandin <pmandin@caramail.com>2008-08-30 19:49:32 +0200
commit69feae16ee95bbe96bd23f1a16fd4203c51778d9 (patch)
tree2abcbb06f9e2566d8f6f7dab8d05c0d01c4115f7
parenta7ebfd32122bba6f22d6b22ea3af9f78526ffb11 (diff)
Set depth buffer on the right of color buffer, and lma below color buffer
-rw-r--r--tcl_init.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/tcl_init.c b/tcl_init.c
index 12195c2..361a490 100644
--- a/tcl_init.c
+++ b/tcl_init.c
@@ -181,14 +181,15 @@ beef0351 NV30TCL.DMA_QUERY = NV01_MEMORY_LOCAL_BANKED
OUT_RING(0);
BEGIN_RING(NvSub3D, NV34TCL_COLOR0_PITCH, 5);
- OUT_RING((screen_pitch<<16)|screen_pitch); /* zeta_pitch, color0_pitch */
- OUT_RING(screen_offset); /* color0_offset */
- OUT_RING(screen_offset); /* zeta_offset */
- OUT_RING(screen_offset); /* color1_offset */
- OUT_RING(screen_pitch); /* color1_pitch */
+ OUT_RING((screen_pitch<<16)|screen_pitch); /* zeta_pitch, color0_pitch */
+ OUT_RING(screen_offset); /* color0_offset */
+ OUT_RING(screen_offset + viewport_w*(screen_bpp/8)); /* zeta_offset, on the right of color buffer */
+ OUT_RING(screen_offset); /* color1_offset */
+ OUT_RING(screen_pitch); /* color1_pitch */
+
BEGIN_RING(NvSub3D, NV34TCL_LMA_DEPTH_PITCH, 2);
OUT_RING(screen_pitch);
- OUT_RING(screen_offset + viewport_w*(screen_bpp/8)); /* lma put on the right of color/zeta buffer */
+ OUT_RING(screen_offset + viewport_h * screen_pitch); /* lma below color buffer */
BEGIN_RING(NvSub3D, 0x234, 1);
OUT_RING(3);