diff options
author | Patrice Mandin <pmandin@caramail.com> | 2008-08-30 19:49:32 +0200 |
---|---|---|
committer | Patrice Mandin <pmandin@caramail.com> | 2008-08-30 19:49:32 +0200 |
commit | 69feae16ee95bbe96bd23f1a16fd4203c51778d9 (patch) | |
tree | 2abcbb06f9e2566d8f6f7dab8d05c0d01c4115f7 | |
parent | a7ebfd32122bba6f22d6b22ea3af9f78526ffb11 (diff) |
Set depth buffer on the right of color buffer, and lma below color buffer
-rw-r--r-- | tcl_init.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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); |