On Fri, 2003-07-25 at 22:40, Felix Kühling wrote:
> On 25 Jul 2003 22:31:24 +0200
> Michel Dänzer <[EMAIL PROTECTED]> wrote:
> 
> > On Fri, 2003-07-25 at 22:22, Felix Kühling wrote:
> > > On 25 Jul 2003 16:24:36 +0200
> > > Michel Dänzer <[EMAIL PROTECTED]> wrote:
> > > 
> > > > libGL error:
> > > > Warning in /home/michdaen/.drirc line 1, column 0: unknown element: dri.
> > > > libGL error:
> > > > Warning in /home/michdaen/.drirc line 2, column 4: <device> should be
> > > > inside <driconf>.
> > > 
> > > Yes, I realised this just this morning. It'll be fixed in the next
> > > version. Anyway, this is just a warning, the config file parser in the
> > > driver is extremely tolerant. All the settings in the config file should
> > > be honoured anyway.
> > > 
> > > > And the glxgears spin at full steam.
> > 
> > This contradicts your statement above. :) Something isn't working as it
> > should.
> 
> I suppose you set the sync_refresh or throttle_refresh option. The code
> for that is in .../drv/common (device independent) and I am sure that at
> least sync_refresh works on my system (r100). Strange. Could you attach
> the configuration file driconf produced?

Err, I attached it to the first post... attaching it again for your
convenience.

> To check if the error in the config file is the problem you could
> manually change <dri> ... </dri> to <driconf> ... </driconf>. You should
> get the same result (minus the warning messages).

Indeed, but it still doesn't work as expected. The problem is that
VBLANK_FLAG_INTERVAL takes precedence over VBLANK_FLAG_THROTTLE, and the
default interval seems to be 0. I'm not sure what the best solution is,
ideas are not setting VBLANK_FLAG_INTERVAL unless one of the
corresponding extensions is used or getting rid of VBLANK_FLAG_THROTTLE
entirely and having throttle_refresh set VBLANK_FLAG_INTERVAL with
default interval 1.

On a related note, I think use_irqs shouldn't have an impact on the
vblank code, it's about the software interrupts emitted by the driver
itself.


-- 
Earthling Michel Dänzer   \  Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast  \     http://svcs.affero.net/rm.php?r=daenzer
<dri>
    <device screen="0" driver="r200">
        <application name="all">
            <option name="throttle_refresh" value="true" />
        </application>
    </device>
</dri>

Reply via email to