On Don, 2003-02-27 at 07:30, [EMAIL PROTECTED] wrote: > > I am writing a blt funtion to transfer a rectangular area > image data from offscreen to onscreen on ATI Radeon 7500 > graphic card. But after lots of tries, I still couldn't > see the image on my screen.:( Can someone help me check > this out ? > > >From the blt example code ( for windows) provided by ATI doc, > the major steps include Radeon initialization, reading > image data to (src_x, src_y) in frame buffer, setting bunch > of related registers, and then initiating the blt operation > by setting the initiator register. > > The resolution is set to 800x600x8. The following is my code.
[...] > Questions: > > 1. Is Radeon_WaitForFifo necessary if there are enough entries > in command fifo? How do you know there are enough entries without using it? :) > 2. If command fifo full, does that mean I cannot set registers > successfully until needed entries are available? That would be a rather harmless scenario I guess. Bad things can happen when the FIFO overflows. > 3. Do I have to set some registers at "Radeon initialization" > step? Possibly. Have you looked at the XFree86 radeon driver to verify you're initializing all the registers it initializes for 2D acceleration? -- Earthling Michel D�nzer (MrCooper)/ Debian GNU/Linux (powerpc) developer XFree86 and DRI project member / CS student, Free Software enthusiast _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
