summaryrefslogtreecommitdiff
path: root/twin_demos
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2006-12-07 22:21:52 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2006-12-07 22:21:52 +1100
commit262cbe9e5fa12f8b591756903511d0e15a96185e (patch)
tree1ab9a4dec807eb7c626d6a6b4d8fba43286c97fa /twin_demos
parent4d75f099fbb83303f67792fbdcd742cac6c9b3e1 (diff)
Add some basic altivec support
This adds altivec versions of argb32_over_argb32 and argb32_source_argb32 operations and a bit of altivec optimisation to the fbdev put span code as well. It could probably be further optimized, and with some patience, one could implement the full set of primitives for altivec instead of just those two, but that's at least a beginning. I haven't properly measured the difference in performances yet. It is definitely faster on my powerbook though. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'twin_demos')
-rw-r--r--twin_demos/ftwin.c2
-rw-r--r--twin_demos/xtwin.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/twin_demos/ftwin.c b/twin_demos/ftwin.c
index 1d5c487..7a19dad 100644
--- a/twin_demos/ftwin.c
+++ b/twin_demos/ftwin.c
@@ -60,6 +60,8 @@ int main (int argc, char **argv)
int hx, hy;
twin_pixmap_t *cur;
+ twin_feature_init();
+
tf = twin_fbdev_create(-1, SIGUSR1);
if (tf == NULL)
return 1;
diff --git a/twin_demos/xtwin.c b/twin_demos/xtwin.c
index 82381db..898ddfd 100644
--- a/twin_demos/xtwin.c
+++ b/twin_demos/xtwin.c
@@ -41,7 +41,11 @@ int
main (int argc, char **argv)
{
Display *dpy = XOpenDisplay (0);
- twin_x11_t *x11 = twin_x11_create (dpy, WIDTH, HEIGHT);
+ twin_x11_t *x11;
+
+ twin_feature_init();
+
+ x11 = twin_x11_create (dpy, WIDTH, HEIGHT);
twin_screen_set_background (x11->screen, twin_make_pattern ());
#if 0