summaryrefslogtreecommitdiff
path: root/src/radeon_commonfuncs.c
diff options
context:
space:
mode:
authorMichel Daenzer <michel@tungstengraphics.com>2006-10-22 17:26:28 +0200
committerMichel Daenzer <michel@tungstengraphics.com>2006-10-22 17:26:28 +0200
commit2bcb51d66edaa944379cf8c8ca1ba91fffdc20a8 (patch)
treee06b070650f553e7343a6cec3c960d393b6f4b5d /src/radeon_commonfuncs.c
parentdabffb8335027b60ca1fc554423e196dfb9acd6d (diff)
Bug #6756: Attempt to fix repeat picture acceleration.
Always use normalized texture coordinates on R200 and fall back if a POT texture pitch doesn't match the HW's implicit pitch.
Diffstat (limited to 'src/radeon_commonfuncs.c')
-rw-r--r--src/radeon_commonfuncs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/radeon_commonfuncs.c b/src/radeon_commonfuncs.c
index 84ce19c0..70f7ddc1 100644
--- a/src/radeon_commonfuncs.c
+++ b/src/radeon_commonfuncs.c
@@ -55,6 +55,8 @@ static void FUNC_NAME(RADEONInit3DEngine)(ScrnInfoPtr pScrn)
RADEONInfoPtr info = RADEONPTR(pScrn);
ACCEL_PREAMBLE();
+ info->texW[0] = info->texH[0] = info->texW[1] = info->texH[1] = 1;
+
if (info->ChipFamily >= CHIP_FAMILY_R300) {
/* Unimplemented */
} else if ((info->ChipFamily == CHIP_FAMILY_RV250) ||
@@ -72,8 +74,7 @@ static void FUNC_NAME(RADEONInit3DEngine)(ScrnInfoPtr pScrn)
OUT_ACCEL_REG(R200_PP_TXMULTI_CTL_0, 0);
OUT_ACCEL_REG(R200_SE_VTX_STATE_CNTL, 0);
OUT_ACCEL_REG(R200_RE_CNTL, 0x0);
- /* XXX: correct? Want it to be like RADEON_VTX_ST?_NONPARAMETRIC */
- OUT_ACCEL_REG(R200_SE_VTE_CNTL, R200_VTX_ST_DENORMALIZED);
+ OUT_ACCEL_REG(R200_SE_VTE_CNTL, 0);
OUT_ACCEL_REG(R200_SE_VAP_CNTL, R200_VAP_FORCE_W_TO_ONE |
R200_VAP_VF_MAX_VTX_NUM);
FINISH_ACCEL();