summaryrefslogtreecommitdiff
path: root/hw/kdrive/src/kaa.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-08-30 22:16:46 +0000
committerEric Anholt <anholt@freebsd.org>2004-08-30 22:16:46 +0000
commit6ec9ecd591fba9e9b69b8ebbd2fa08c0a2beac08 (patch)
treeb3d6cd505054986ff685dc6af6ca32b488948798 /hw/kdrive/src/kaa.h
parentccaf332ce3a9393715317edd3b92420c27fc94eb (diff)
Add a set of three hooks for accelerating trapezoids, and use it for the
RasterizeTrapezoid screen function. These hooks will be called for imprecise, non-sharp trapezoids with A8 destinations. Note that the current main consumer of trapezoids, cairo, is requesting precise, sharp trapezoids by not changing the default Picture attributes, but gets non-sharp effects in software because fb bases its choice of sharp/non-sharp on the mask format being A8 vs A1, and cairo asks for A8. Follow fb's (poor?) example by ignoring the sharp setting and basing the choice off of the mask being A8.
Diffstat (limited to 'hw/kdrive/src/kaa.h')
-rw-r--r--hw/kdrive/src/kaa.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/kdrive/src/kaa.h b/hw/kdrive/src/kaa.h
index c3766f174..d849de03f 100644
--- a/hw/kdrive/src/kaa.h
+++ b/hw/kdrive/src/kaa.h
@@ -98,4 +98,10 @@ kaaComposite(CARD8 op,
CARD16 width,
CARD16 height);
+void
+kaaRasterizeTrapezoid(PicturePtr pPict,
+ xTrapezoid *trap,
+ int xoff,
+ int yoff);
+
#endif /* _KAA_H_ */