Newsgroups: comp.windows.open-look Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fauern!NewsServ!Informatik.TU-Muenchen.DE!stumpf From: stumpf@Informatik.TU-Muenchen.DE (Markus Stumpf) Subject: Re: Openwin or X11R4 Message-ID: <1991Jun7.160030@Informatik.TU-Muenchen.DE> Sender: news@Informatik.TU-Muenchen.DE Reply-To: stumpf@Informatik.TU-Muenchen.DE (Markus Stumpf) Organization: Technische Universitaet Muenchen, Germany References: <1991May29.144727.5008@javelin.sim.es.com> <1991Jun01.232522.786@shawn.uucp> Date: Fri, 7 Jun 1991 14:00:30 GMT Lines: 110 In article , jon@choctaw.b23b.ingr.com (Jon Stone) writes: |> |> You obviously have not compared xnews to Xsun on a machine running a |> GX accelerator. MIT's server treats it as a dumb frame buffer (read |> the source), whereas Sun's xnews seems to take full advantage of the |> GX's capabilities. BTW, all our tests have been on SPARCstation 2's. |> Dunno, who good/bad it is, but there has been a patch in comp.windows.x in the early days of X.V11R4. I haven't actually tested it, as we don't have suns with GX here, but maybe it's useful for some of you out there! It's rather short, so I included the whole thing after the sig. (No flames please!) -- +- Markus Stumpf Technische Universitaet Muenchen -+ | Institut fuer Informatik, Rechnerbetriebsgruppe | | stumpf@informatik.tu-muenchen.de Postfach 202420 | +- ...@{unido.uucp,relay.cs.net} D-8000 Muenchen 2, West Germany -+ Article 5311 of comp.windows.x: Path: lan!tumuc!fauern!unido!ira.uka.de!sun1.ruf.uni-freiburg.de!root From: root@sun1.ruf.uni-freiburg.de (Martin Walter) Newsgroups: comp.windows.x Subject: R4 Xsun, GX support Keywords: R4 Xsun GX cgsix Message-ID: <1990Jan16.140753.6017@sun1.ruf.uni-freiburg.de> Date: 16 Jan 90 14:07:53 GMT Organization: Rechenzentrum der Universitaet Freiburg, Deutschland Lines: 75 Unfortunately R4 does not support the GX. Until Sun will adapt Xsun to there hardware (hopefully!) I use following little 'quick and dirty' patch. It accelerates only simple bitblock moves within the screen, but is very useful in xterm-scrolling and opaque-moves. Martin. ######################################################################### *** server/Imakefile.orig Sun Dec 17 01:09:30 1989 --- server/Imakefile Tue Jan 16 13:30:27 1990 *************** *** 241,245 **** SUNOBJS = ddx/sun/sunInit.o $(FONTUTIL) SUNLIBS = $(SUN) $(CFB) $(DIX) $(BSD) $(SNF) $(MFB) $(MI) $(EXTENSIONS) ! SUNSYSLIBS = $(SYSLIBS) $(SUNWINDOWSLIBS) XsunDIRS = $(SUNDIRS) --- 241,245 ---- SUNOBJS = ddx/sun/sunInit.o $(FONTUTIL) SUNLIBS = $(SUN) $(CFB) $(DIX) $(BSD) $(SNF) $(MFB) $(MI) $(EXTENSIONS) ! SUNSYSLIBS = $(SYSLIBS) $(SUNWINDOWSLIBS) -lpixrect XsunDIRS = $(SUNDIRS) *** server/ddx/cfb/cfbbitblt.c.orig Fri Dec 8 02:35:42 1989 --- server/ddx/cfb/cfbbitblt.c Tue Jan 16 13:01:03 1990 *************** *** 217,220 **** --- 217,255 ---- } + /*---------------------------------------------------------------------*/ + + if ((pSrc->type == DRAWABLE_WINDOW) + && (pDst->type == DRAWABLE_WINDOW) + && (alu == GXcopy) + ) + { + #include + + static Pixrect *screen = 0; + static planemaskSav = -999999; + if (!screen) screen = pr_open("/dev/fb"); + + if (planemask != planemaskSav) { + planemaskSav = planemask; + pr_putattributes(screen,&planemaskSav); + } + + while(nbox--) + { + pr_rop( screen, + pbox->x1, pbox->y1, + pbox->x2 - pbox->x1, pbox->y2 - pbox->y1, + PIX_SRC, screen, + pptSrc->x, pptSrc->y); + pbox++; + pptSrc++; + } + /* Important: Wait for Completion! */ + pr_get(screen, 0, 0); + + } else + + /*---------------------------------------------------------------------*/ + /* special case copy */ if (alu == GXcopy && (planemask & PMSK) == PMSK) ######################################################################### -- _____________________________________________________________________________ Internet: mawa@sun1.ruf.uni-freiburg.de (132.230.1.1) | Rechenzentrum Uni X.400: G=martin;S=walter;OU=ruf;P=uni-freiburg;A=dbp;C=de | Freiburg, Germany