From: Ian Romanick <idr@freedesktop.org>
To: Westermann Fu <westermannfu@gmail.com>
Cc: dri-devel@lists.sourceforge.net
Subject: Re: SwapContext hook back
Date: Mon, 01 Mar 2010 08:52:34 -0800 [thread overview]
Message-ID: <4B8BF0D2.70901@freedesktop.org> (raw)
In-Reply-To: <aff9b2f01003010041j1b1d51ffs2fb81f4be4b55fb6@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Westermann Fu wrote:
> I found that for DRI callback 'SwapContext' hook handler, seems no
> driver interested with it, except for old glint video driver do real
> work in it. Does it mean context switch concept outdated for current
> graphics hardware, but I found that intel hardware has logical context
> save/store command for these stuff? As I guess, context switch design
> strategy was taken out behind background of old-style DMA graphics
> device such as GLINT. But how the performance boost by using context
> switching rather than by reg-by-reg emiting at that old time? Thanks
> very much.
My recollection is that this was to allow for the X server to handle
graphics context switching. That method is certainly undesirable. If a
driver were to implement some sort of optimized switching, the kernel is
the right place to do it. What we've found in the past with most
hardware is that the cost of tracking dirty state tends to outweigh the
benefit of not emitting redundant state. Different applications don't
generally have any of the expensive state in common.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkuL8NAACgkQX1gOwKyEAw9OEQCgkZRX9T5zmOBeCNvDXx4u/OZW
8XcAnArdE7Jqnw1ihDX6vZpyq4Gr5e9n
=I2NG
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
prev parent reply other threads:[~2010-03-01 16:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-01 8:41 SwapContext hook back Westermann Fu
2010-03-01 16:52 ` Ian Romanick [this message]
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=4B8BF0D2.70901@freedesktop.org \
--to=idr@freedesktop.org \
--cc=dri-devel@lists.sourceforge.net \
--cc=westermannfu@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.