From: Chris Wilson <chris@chris-wilson.co.uk>
To: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Allow concurrent read access between CPU and GPU domain
Date: Tue, 10 Apr 2012 22:35:19 +0100 [thread overview]
Message-ID: <1334093721_352784@CP5-2952> (raw)
In-Reply-To: <1334055170-18691-1-git-send-email-chris@chris-wilson.co.uk>
On Tue, 10 Apr 2012 11:52:50 +0100, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> Similar to allowing a buffer to be simultaneously read by the GPU and
> through the GTT, we wish to allow readback of the pages through the CPU
> domain whilst they are also being read by the GPU. Domain coherency
> is managed by allowing multiple readers, but only a single writer.
>
> This is used by mesa for its program cache which it may search for every
> new program every frame and then renews should it need to add. During
> renewal, mesa copies the program bo currently executing through a CPU
> mapping onto the new bo. This patch allows the search and that copy to
> proceed without causing a stall on the current batch.
At Daniel's request, I added i-g-t/gem_cpu_concurrent_blit to catch the
possible bugs that may have been introduced by this patch.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
next prev parent reply other threads:[~2012-04-10 21:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-10 10:52 [PATCH] drm/i915: Allow concurrent read access between CPU and GPU domain Chris Wilson
2012-04-10 21:35 ` Chris Wilson [this message]
2012-04-11 10:09 ` Daniel Vetter
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=1334093721_352784@CP5-2952 \
--to=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.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