public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Zhigang Gong <zhigang.gong@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/2] glamor: Address GLAMOR/UXA flushing problem.
Date: Tue, 15 Nov 2011 12:24:58 +0000	[thread overview]
Message-ID: <c55c5d$13gmbf@AZSMGA002.ch.intel.com> (raw)
In-Reply-To: <1321356974-14282-2-git-send-email-zhigang.gong@linux.intel.com>

On Tue, 15 Nov 2011 19:36:14 +0800, Zhigang Gong <zhigang.gong@linux.intel.com> wrote:
> This commit introduces a new function in UXA layer need_flush
> which is used to let the UXA layer to notify the lower layer
> that some pixmap get modified by GLAMOR. And then the intel
> driver could know it need to flush front buffer latter.
> 
> This commit also adds some necessary flushing pointis for UXA
> layer and glamor layer. Basicly, there are three scenarios:
> 
> 1. Before calling into glamor layer, it needs to flush all the
> corresponding UXA batch comand buffer.
> 
> 2. After calling the glamor rendering functions, it needs to
> flush the pending GL operations.
> 
> 3. Before we map a pixmap's BO, we also need to flush all the
> pending GL operations.
> 
> The scenario 2 could be eliminated when we fully change to glamor
> path.

I much prefer the one-sided uxa_prepare_access() you have implemented
here for the glamor side. For completeness, you still probably want the
uxa_finish_access() though. Alternatively you need to mark up all
operations with uxa_prepare_access(GLAMOR | NATIVE | SW, READ | WRITE)
which then perform the implicit uxa_finish_access() when the mode
changes, and would also allow you to only flush the glamor operations as
required.

Aside from that, this looks like the right approach to handling the
flushing.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

  reply	other threads:[~2011-11-15 12:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-15 11:36 [PATCH 1/2] glamor: Move flags check to intel_glamor Zhigang Gong
2011-11-15 11:36 ` [PATCH 2/2] glamor: Address GLAMOR/UXA flushing problem Zhigang Gong
2011-11-15 12:24   ` Chris Wilson [this message]
2011-11-15 12:54     ` Zhigang Gong
2011-11-15 12:57       ` Chris Wilson
2011-11-15 12:10 ` [PATCH 1/2] glamor: Move flags check to intel_glamor Chris Wilson

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='c55c5d$13gmbf@AZSMGA002.ch.intel.com' \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=zhigang.gong@linux.intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox