summaryrefslogtreecommitdiff
path: root/src/radeon_textured_videofuncs.c
diff options
context:
space:
mode:
authorAlex Deucher <alex@botch2.com>2008-04-10 17:08:50 -0400
committerAlex Deucher <alex@botch2.com>2008-04-10 17:08:50 -0400
commit6f8f75bd19ef1919c0291141675be2d0e29b3251 (patch)
treebc3583b960347f37a6971c482a5d46f70262a242 /src/radeon_textured_videofuncs.c
parent4b9234e1c4f7c7f419cb4245d64f3f9756c98bb6 (diff)
R3xx+: consolidate some common 3D code
Diffstat (limited to 'src/radeon_textured_videofuncs.c')
-rw-r--r--src/radeon_textured_videofuncs.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/radeon_textured_videofuncs.c b/src/radeon_textured_videofuncs.c
index dbf85622..90f01e81 100644
--- a/src/radeon_textured_videofuncs.c
+++ b/src/radeon_textured_videofuncs.c
@@ -196,21 +196,10 @@ FUNC_NAME(RADEONDisplayTexturedVideo)(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv
txenable = R300_TEX_0_ENABLE;
/* setup the VAP */
- if (info->has_tcl) {
- BEGIN_VIDEO(27);
- OUT_VIDEO_REG(R300_VAP_CNTL_STATUS, 0);
- } else {
- BEGIN_VIDEO(10);
- OUT_VIDEO_REG(R300_VAP_CNTL_STATUS, R300_PVS_BYPASS);
- }
-
- OUT_VIDEO_REG(R300_VAP_PVS_STATE_FLUSH_REG, 0);
- OUT_VIDEO_REG(R300_VAP_CNTL, ((6 << R300_PVS_NUM_SLOTS_SHIFT) |
- (5 << R300_PVS_NUM_CNTLRS_SHIFT) |
- (4 << R300_PVS_NUM_FPUS_SHIFT) |
- (12 << R300_VF_MAX_VTX_NUM_SHIFT)));
- OUT_VIDEO_REG(R300_VAP_VTE_CNTL, R300_VTX_XY_FMT | R300_VTX_Z_FMT);
- OUT_VIDEO_REG(R300_VAP_PSC_SGN_NORM_CNTL, 0);
+ if (info->has_tcl)
+ BEGIN_VIDEO(22);
+ else
+ BEGIN_VIDEO(5);
if (info->has_tcl) {
OUT_VIDEO_REG(R300_VAP_PROG_STREAM_CNTL_0,