From: Kenneth Graunke <kenneth@whitecape.org>
To: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915/hsw: Add I915_EXEC_RESOURCE_STREAMER flag
Date: Wed, 09 Oct 2013 14:40:22 -0700 [thread overview]
Message-ID: <5255CD46.40407@whitecape.org> (raw)
In-Reply-To: <1381266592-7558-2-git-send-email-abdiel.janulgue@linux.intel.com>
On 10/08/2013 02:09 PM, Abdiel Janulgue wrote:
> Ensures that the batch buffer is executed by the resource streamer.
>
> Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
> ---
> drivers/gpu/drm/i915/i915_gem_execbuffer.c | 2 ++
> include/uapi/drm/i915_drm.h | 5 +++++
> 2 files changed, 7 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
> index 0ce0d47..4a56c58 100644
> --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
> +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
> @@ -962,6 +962,8 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
> case I915_EXEC_DEFAULT:
> case I915_EXEC_RENDER:
> ring = &dev_priv->ring[RCS];
> + flags |= (args->flags & I915_EXEC_RESOURCE_STREAMER) ?
> + I915_EXEC_RESOURCE_STREAMER : 0;
> break;
> case I915_EXEC_BSD:
> ring = &dev_priv->ring[VCS];
> diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h
> index 3a4e97b..5a4bd16 100644
> --- a/include/uapi/drm/i915_drm.h
> +++ b/include/uapi/drm/i915_drm.h
> @@ -731,6 +731,11 @@ struct drm_i915_gem_execbuffer2 {
> */
> #define I915_EXEC_HANDLE_LUT (1<<12)
>
> +/** Tell the kernel that the batchbuffer is processed by
> + * the resource streamer.
> + */
> +#define I915_EXEC_RESOURCE_STREAMER (1<<13)
> +
> #define __I915_EXEC_UNKNOWN_FLAGS -(I915_EXEC_HANDLE_LUT<<1)
>
> #define I915_EXEC_CONTEXT_ID_MASK (0xffffffff)
>
I think you need to change __I915_EXEC_UNKNOWN_FLAGS to:
#define __I915_EXEC_UNKNOWN_FLAGS -(I915_EXEC_RESOURCE_STREAMER<<1)
since you've added a new bit.
next prev parent reply other threads:[~2013-10-09 21:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-08 21:09 drm/i915/hsw: Enable resource streamer (v2) Abdiel Janulgue
2013-10-08 21:09 ` [PATCH 1/2] drm/i915/hsw: Add I915_EXEC_RESOURCE_STREAMER flag Abdiel Janulgue
2013-10-08 21:50 ` Chris Wilson
2013-10-08 23:38 ` Ben Widawsky
2013-10-09 20:33 ` Daniel Vetter
2013-10-09 21:40 ` Kenneth Graunke [this message]
2013-10-10 10:54 ` [PATCH 1/2] drm/i915/hsw: Add I915_EXEC_RESOURCE_STREAMER flag (v3) Abdiel Janulgue
2013-10-08 21:09 ` [PATCH 2/2] drm/i915/hsw: Enable resource streamer bit on MI_BATCH_BUFFER_START Abdiel Janulgue
2013-10-10 11:03 ` [PATCH 2/2] drm/i915/hsw: Enable resource streamer bit on MI_BATCH_BUFFER_START (v3) Abdiel Janulgue
2013-10-10 11:06 ` 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=5255CD46.40407@whitecape.org \
--to=kenneth@whitecape.org \
--cc=abdiel.janulgue@linux.intel.com \
--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 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.