Fix r200 render (for real this time?) by setting tex1_comp_cnt right for

non-mask rendering. Reenable it. Also, R200TexFormats was used instead
    of R100 in one place. Harmless so far, because the formats were in the
    same order.
This commit is contained in:
Eric Anholt 2004-12-21 09:51:47 +00:00
parent 4b0247b9e0
commit fa0677ab43
2 changed files with 4 additions and 3 deletions

View File

@ -777,7 +777,7 @@ ATIDrawEnable(ScreenPtr pScreen)
atis->kaa.PrepareComposite = R100PrepareComposite; atis->kaa.PrepareComposite = R100PrepareComposite;
atis->kaa.Composite = RadeonComposite; atis->kaa.Composite = RadeonComposite;
atis->kaa.DoneComposite = RadeonDoneComposite; atis->kaa.DoneComposite = RadeonDoneComposite;
} else if (0 && atic->is_r200) { /* XXX */ } else if (atic->is_r200) {
atis->kaa.CheckComposite = R200CheckComposite; atis->kaa.CheckComposite = R200CheckComposite;
atis->kaa.PrepareComposite = R200PrepareComposite; atis->kaa.PrepareComposite = R200PrepareComposite;
atis->kaa.Composite = RadeonComposite; atis->kaa.Composite = RadeonComposite;

View File

@ -384,6 +384,7 @@ R200CheckCompositeTexture(PicturePtr pPict, int unit)
return TRUE; return TRUE;
} }
static Bool static Bool
R200TextureSetup(PicturePtr pPict, PixmapPtr pPix, int unit) R200TextureSetup(PicturePtr pPict, PixmapPtr pPix, int unit)
{ {
@ -405,7 +406,7 @@ R200TextureSetup(PicturePtr pPict, PixmapPtr pPix, int unit)
break; break;
} }
txformat = R200TexFormats[i].card_fmt; txformat = R200TexFormats[i].card_fmt;
if (R100TexFormats[i].byte_swap) if (R200TexFormats[i].byte_swap)
txoffset |= RADEON_TXO_ENDIAN_BYTE_SWAP; txoffset |= RADEON_TXO_ENDIAN_BYTE_SWAP;
if (pPict->repeat) { if (pPict->repeat) {
@ -527,7 +528,7 @@ R200PrepareComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture,
OUT_REG(R200_REG_SE_VTX_FMT_0, R200_VTX_XY); OUT_REG(R200_REG_SE_VTX_FMT_0, R200_VTX_XY);
OUT_REG(R200_REG_SE_VTX_FMT_1, OUT_REG(R200_REG_SE_VTX_FMT_1,
(2 << R200_VTX_TEX0_COMP_CNT_SHIFT) | (2 << R200_VTX_TEX0_COMP_CNT_SHIFT) |
(2 << R200_VTX_TEX1_COMP_CNT_SHIFT)); (pMask != NULL) ? (2 << R200_VTX_TEX1_COMP_CNT_SHIFT) : 0);
OUT_REG(RADEON_REG_RB3D_COLORPITCH, dst_pitch >> pixel_shift); OUT_REG(RADEON_REG_RB3D_COLORPITCH, dst_pitch >> pixel_shift);