2 questions about radeon driver

2003-08-19 Thread Alex Deucher
I have two questions for you about the radeon driver.  

the first relates to the CP and accel.  I'm attempting to convert the
Xv code to use the CP.  how do you check to find out if the driver is
using CP or MMIO accel?  I considered using
info-directRenderingEnabled, but as far as I can see the radeon can
use the CP for accel even if the DRI is disabled.  It's probably
obvious, I'm just missing it.

secondly, is there a way we could switch to software rendering if the
total width or height of or all rendering windows is larger than 2048? 
Since we seem to be hw limited by that, it'd be nice if the driver
would just switch to software after 2048 rather than just showing a
blank window or in some cases locking up the video card.  It might be
too much of a pain in the butt though...

thanks,

Alex

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: 2 questions about radeon driver

2003-08-19 Thread Michel Dänzer
On Tue, 2003-08-19 at 21:49, Alex Deucher wrote:
 
 I'm attempting to convert the Xv code to use the CP.  how do you check 
 to find out if the driver is using CP or MMIO accel?  I considered 
 using info-directRenderingEnabled, but as far as I can see the 
 radeon can use the CP for accel even if the DRI is disabled.

No, it can't. There's also info-CPStarted which indicates whether the
CP is currently running.


 secondly, is there a way we could switch to software rendering if the
 total width or height of or all rendering windows is larger than 2048? 
 Since we seem to be hw limited by that, it'd be nice if the driver
 would just switch to software after 2048 rather than just showing a
 blank window or in some cases locking up the video card.  It might be
 too much of a pain in the butt though...

(I assume you mean OpenGL software rendering)

I don't think this is possible with the current scheme, we simply need
to disable the DRI if the virtual resolution exceeds 2048 in either
dimension.


-- 
Earthling Michel Dnzer   \  Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast  \ http://svcs.affero.net/rm.php?r=daenzer

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


RE: 2 questions about radeon driver

2003-08-19 Thread Alexander Stohr
CP mode means using an engine on the chip
that gets the command data from main memory
by itselves, some sort of busmaster DMA stream.

MMIO means that the driver does program the
chipset directly via its memory mapped registers.

DRI means direct rendering and is the most common
socket for current OpenGL implementation upon
some kernel module supplied and shared resources.

XAA is the 2D accelleration which can be done 
either in MMIO (helps quite a lot for bring up)
or CP mode - it might make use of some kernel
module supplied resources in CP mode. But there
is no need or requirement that DRI is exposed
in that mode, only the other way round if you
are having DRI then its highly likely to have
the XAA running in CP mode as well. therefore
presence of HW accellerated OpenGL does indicate
that the XAA is as well running in CP mode.

If you need to know hos the XAA is operating
then you should hook into the driver. its not
common to let external applications know or
even assume either state because they are
outside of the 2D display driver.

let me assume you are trying something that
does go byond the concept - either you implement
Xv functionality inside or close to the 2D driver 
or you are asking for heavy trouble.

-Alex.

 -Original Message-
 From: Alex Deucher [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 19, 2003 21:50
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: 2 questions about radeon driver
 
 
 I have two questions for you about the radeon driver.  
 
 the first relates to the CP and accel.  I'm attempting to convert the
 Xv code to use the CP.  how do you check to find out if the driver is
 using CP or MMIO accel?  I considered using
 info-directRenderingEnabled, but as far as I can see the radeon can
 use the CP for accel even if the DRI is disabled.  It's probably
 obvious, I'm just missing it.
 
 secondly, is there a way we could switch to software rendering if the
 total width or height of or all rendering windows is larger 
 than 2048? 
 Since we seem to be hw limited by that, it'd be nice if the driver
 would just switch to software after 2048 rather than just showing a
 blank window or in some cases locking up the video card.  It might be
 too much of a pain in the butt though...
 
 thanks,
 
 Alex
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 ___
 Devel mailing list
 [EMAIL PROTECTED]
 http://XFree86.Org/mailman/listinfo/devel
 

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel