From 1789f11ab91633d3928f8b71988d51ff44bda9d1 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Mon, 24 Mar 2008 19:03:30 -0400 Subject: R3xx/R5xx: flush PVS state before enabling pvs-bypass --- src/radeon_commonfuncs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/radeon_commonfuncs.c b/src/radeon_commonfuncs.c index a370e5b7..5c9eae1b 100644 --- a/src/radeon_commonfuncs.c +++ b/src/radeon_commonfuncs.c @@ -150,8 +150,9 @@ static void FUNC_NAME(RADEONInit3DEngine)(ScrnInfoPtr pScrn) FINISH_ACCEL(); /* setup the VAP */ - BEGIN_ACCEL(4); + BEGIN_ACCEL(5); /* disable TCL/PVS */ + OUT_ACCEL_REG(R300_VAP_PVS_STATE_FLUSH_REG, 0); OUT_ACCEL_REG(R300_VAP_CNTL_STATUS, R300_PVS_BYPASS); OUT_ACCEL_REG(R300_VAP_CNTL, ((10 << R300_PVS_NUM_SLOTS_SHIFT) | (5 << R300_PVS_NUM_CNTLRS_SHIFT) | -- cgit v1.2.3