summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2001-11-26 16:59:51 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2001-11-26 16:59:51 +0000
commitf8f0bcfc2d56fe5437bc07dcc4655f85b380252e (patch)
treec9a8b72ab5cf243f451e3999198d1348169e3455
parentcacc267b31c760c285151e2be1f1becb78133488 (diff)
fix zbias state upload
-rw-r--r--linux/radeon_drv.h2
-rw-r--r--linux/radeon_state.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/linux/radeon_drv.h b/linux/radeon_drv.h
index 77fef354c..7a0c171fe 100644
--- a/linux/radeon_drv.h
+++ b/linux/radeon_drv.h
@@ -359,7 +359,7 @@ extern int radeon_cp_vertex2( struct inode *inode, struct file *filp,
#define RADEON_SE_CNTL_STATUS 0x2140
#define RADEON_SE_LINE_WIDTH 0x1db8
#define RADEON_SE_VPORT_XSCALE 0x1d98
-#define RADEON_SE_ZBIAS_FACTOR 0x1dac
+#define RADEON_SE_ZBIAS_FACTOR 0x1db0
#define RADEON_SURFACE_ACCESS_FLAGS 0x0bf8
#define RADEON_SURFACE_ACCESS_CLR 0x0bfc
#define RADEON_SURFACE_CNTL 0x0b00
diff --git a/linux/radeon_state.c b/linux/radeon_state.c
index 40a43c1e8..812de5ba6 100644
--- a/linux/radeon_state.c
+++ b/linux/radeon_state.c
@@ -350,10 +350,12 @@ static inline void radeon_emit_zbias( drm_radeon_private_t *dev_priv,
drm_radeon_context2_regs_t *ctx )
{
RING_LOCALS;
- DRM_DEBUG( " %s\n", __FUNCTION__ );
+/* printk( " %s %x %x\n", __FUNCTION__, */
+/* ctx->se_zbias_factor, */
+/* ctx->se_zbias_constant ); */
BEGIN_RING( 3 );
- OUT_RING( CP_PACKET0( RADEON_SE_ZBIAS_FACTOR, 2 ) );
+ OUT_RING( CP_PACKET0( RADEON_SE_ZBIAS_FACTOR, 1 ) );
OUT_RING( ctx->se_zbias_factor );
OUT_RING( ctx->se_zbias_constant );
ADVANCE_RING();