mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Surda <shurdeek@panorama.sth.ac.at>
To: dri-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [Dri-devel] my X-Kernel question
Date: Mon, 22 Oct 2001 10:24:59 +0200	[thread overview]
Message-ID: <20011022102459.X12359@shurdeek.cb.ac.at> (raw)
In-Reply-To: <004901c15ab4$dbbb8fc0$5cbefea9@moya> <Pine.LNX.4.20.0110220224390.11846-100000@node2.localnet.net>
In-Reply-To: <Pine.LNX.4.20.0110220224390.11846-100000@node2.localnet.net>; from volodya@mindspring.com on Mon, Oct 22, 2001 at 02:27:23AM -0400

[-- Attachment #1: Type: text/plain, Size: 2249 bytes --]

On Mon, Oct 22, 2001 at 02:27:23AM -0400, volodya@mindspring.com wrote:
> The biggest reason against this is that X (as it is now) support not only
> Linux but many other OSes: in particular BSD(s) and Solaris. Moving
> stuff into Linux kernel creates a fork of the drivers which is
> undesirable..
That's a lame excuse. I'm using Linux so I won't suffer from Windows, why
should I suffer because of BSD or Solaris?

<Rant>
About the precise vsync thingy we're talking about in xpert: we need kernel
support anyway. So why instead of calling a video driver in kernel "lame" and
"uncool" and adding a strange inflexible function god-knows-where, shouldn't
we move the whole driver structure to kernel? Drivers for every other device
type are in kernel. What would the anti-video-in-kernel-guys think if I
claimed that network cards should have userspace "drivers" in sort of "uber
daemon" and if an app wants to make a TCP connection it should contact this
"uber daemon"? I don't want to have staroffice in kernel, but the DRIVER
STRUCTURE. For a great UI, we need DMA, vsync and devices communicating with
each other directly or with little overhead. Why insist on doing this in
userspace? The reasons to put it into kernel aren't speed, but because it's
much more easier to add/maintain drivers, add functionality, share code and do
fancy stuff. DRI is a very good example of what I mean.
</Rant>

Short explaination of "the precise vsync thingy": For fluent video playback it
is necessary to precisely coordinate number of frames the monitor displays.
It is very visible on a TV. When I have a 25fps video, it should be EXACTLY
"one frame of data == one frame on TV". Currently, I can tell the card (ATI)
to blit on vsync (so it won't tear), but I can't tell it "don't miss a frame",
or "block until vsync". This results in visible "jumps" when suddenly the same
picture is staying on screen for the double duration than the others and it
sucks and I can't do anything about it without SOME kernel support. Telling
Xserver to poll for vsync and eat CPU is lame.

>                    Vladimir Dergachev
Bye,

Peter Surda (Shurdeek) <shurdeek@panorama.sth.ac.at>, ICQ 10236103, +436505122023

--
                   Disc space - The final frontier.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

       reply	other threads:[~2001-10-22  8:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <004901c15ab4$dbbb8fc0$5cbefea9@moya>
     [not found] ` <Pine.LNX.4.20.0110220224390.11846-100000@node2.localnet.net>
2001-10-22  8:24   ` Peter Surda [this message]
2001-10-22  8:39     ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011022102459.X12359@shurdeek.cb.ac.at \
    --to=shurdeek@panorama.sth.ac.at \
    --cc=dri-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®