Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 3/4] drm/i915: Allow userspace to hint that the relocations were known
Date: Sat, 10 Nov 2012 18:08:11 +0000	[thread overview]
Message-ID: <b94cdc$79l7g5@fmsmga001.fm.intel.com> (raw)
In-Reply-To: <20121110171616.GH5854@phenom.ffwll.local>

On Sat, 10 Nov 2012 18:16:16 +0100, Daniel Vetter <daniel@ffwll.ch> wrote:
> - Can we abolish the pending_read/write_domains and just go with a
>   per-object GPU_WRITE flag? Afaik that's all we need with the
>   flushing_list gone. To avoid a massive rewrite of the code I'm thinking
>   of just keeping around a pending_gpu_write bool (since reads are
>   implicit) and then using that to fill out generic gpu domains in
>   i915_gem_execbuffer_move_to_active. E.g. set all gpu read domains if
>   there is no write, otherwise just set the render domain in both.

Just a quick comment. I started with just a WRITE flag, then realised I
needed to mark the read domains as well (for GPU activity tracking). So
I concluded that just passing along the domains was easy enough for
userspace and better for future-proofing. That is definitely one of the
places where we need to be careful with designing the API - more ideas
are welcome.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

  reply	other threads:[~2012-11-10 18:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-10 15:15 [PATCH 1/4] drm/i915: Take the handle idr spinlock once for looking up the exec objects Chris Wilson
2012-11-10 15:15 ` [PATCH 2/4] drm/i915: Move the execbuffer objects list from the stack into the tracker Chris Wilson
2012-11-10 15:15 ` [PATCH 3/4] drm/i915: Allow userspace to hint that the relocations were known Chris Wilson
2012-11-10 17:16   ` Daniel Vetter
2012-11-10 18:08     ` Chris Wilson [this message]
2012-11-10 20:17       ` Daniel Vetter
2012-11-11 12:10         ` Chris Wilson
2012-11-11 13:09           ` Daniel Vetter
2012-11-10 15:15 ` [PATCH 4/4] drm/i915: Use the reloc.handle as an index into the execbuffer array Chris Wilson
2012-11-10 20:24 ` [PATCH 1/4] drm/i915: Take the handle idr spinlock once for looking up the exec objects Eric Anholt

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='b94cdc$79l7g5@fmsmga001.fm.intel.com' \
    --to=chris@chris-wilson.co.uk \
    --cc=daniel@ffwll.ch \
    --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