- Add more Composite operations, including Saturate, to Radeon Composite

accel. I don't 100% trust that the math works for Saturate, but I can't
    tell from existing information.
- Fix texture pitch fallback checks.
- Fallback when src or mask have transforms.
- Disable Radeon Composite accel until the offset thing is fixed.
- Set offscreenPitch to 64 on Radeon thanks to new information and a kaa
    fix. Fixes acceleration at width!=1024.
This commit is contained in:
Eric Anholt 2004-01-03 11:46:57 +00:00
commit 3db761a17b
2 changed files with 18 additions and 5 deletions

View file

@ -475,12 +475,13 @@ ATIDrawInit(ScreenPtr pScreen)
atis->kaa.Blend = R128BlendDMA;
atis->kaa.DoneBlend = R128DoneBlendDMA;
} else if (!atic->is_r200) {
atis->kaa.PrepareBlend = RadeonPrepareBlend;
/* XXX: This code is broken so far. */
/*atis->kaa.PrepareBlend = RadeonPrepareBlend;
atis->kaa.Blend = RadeonBlend;
atis->kaa.DoneBlend = RadeonDoneBlend;
atis->kaa.PrepareComposite = RadeonPrepareComposite;
atis->kaa.Composite = RadeonComposite;
atis->kaa.DoneComposite = RadeonDoneComposite;
atis->kaa.DoneComposite = RadeonDoneComposite;*/
}
} else {
#else
@ -501,7 +502,7 @@ ATIDrawInit(ScreenPtr pScreen)
atis->kaa.flags = KAA_OFFSCREEN_PIXMAPS;
if (atic->is_radeon) {
atis->kaa.offscreenByteAlign = 1024;
atis->kaa.offscreenPitch = 1024;
atis->kaa.offscreenPitch = 64;
} else {
atis->kaa.offscreenByteAlign = 32;
/* Pitch alignment is in sets of 8 pixels, and we need to cover