From: Samuel Pitoiset <samuel.pitoiset-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
Cc: mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH mesa v2 3/3] nouveau: codegen: Add support for clover / OpenCL kernel input parameters
Date: Wed, 16 Mar 2016 10:49:15 +0100 [thread overview]
Message-ID: <56E92C1B.7050509@gmail.com> (raw)
In-Reply-To: <1458118502-9016-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
On 03/16/2016 09:55 AM, Hans de Goede wrote:
> Add support for clover / OpenCL kernel input parameters.
>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
> ---
> Changes in v2:
> -s/local/private/
> -Add: Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
> ---
> .../drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 18 +++++++++++++++---
> 1 file changed, 15 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
> index fb7caca..8a1a426 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
> @@ -1527,9 +1527,21 @@ Converter::makeSym(uint tgsiFile, int fileIdx, int idx, int c, uint32_t address)
>
> sym->reg.fileIndex = fileIdx;
>
> - if (tgsiFile == TGSI_FILE_MEMORY &&
> - code->memoryFiles[fileIdx].mem_type == TGSI_MEMORY_TYPE_SHARED)
> - sym->setFile(FILE_MEMORY_SHARED);
> + if (tgsiFile == TGSI_FILE_MEMORY) {
> + switch (code->memoryFiles[fileIdx].mem_type) {
> + case TGSI_MEMORY_TYPE_SHARED:
> + sym->setFile(FILE_MEMORY_SHARED);
> + break;
> + case TGSI_MEMORY_TYPE_INPUT:
> + assert(prog->getType() == Program::TYPE_COMPUTE);
> + assert(idx == -1);
> + sym->setFile(FILE_SHADER_INPUT);
> + address += info->prop.cp.inputOffset;
> + break;
> + default:
> + assert(0); /* TODO: Add support for global and private memory */
> + }
> + }
>
> if (idx >= 0) {
> if (sym->reg.file == FILE_SHADER_INPUT)
>
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
next prev parent reply other threads:[~2016-03-16 9:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-16 8:55 [PATCH mesa v2 1/3] tgsi: Fix decl.Atomic and .Shared not propagating when parsing tgsi text Hans de Goede
[not found] ` <1458118502-9016-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-03-16 8:55 ` [PATCH mesa v2 2/3] tgsi: Add support for global / private / input MEMORY Hans de Goede
[not found] ` <1458118502-9016-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-03-16 9:47 ` Samuel Pitoiset
2016-03-16 8:55 ` [PATCH mesa v2 3/3] nouveau: codegen: Add support for clover / OpenCL kernel input parameters Hans de Goede
[not found] ` <1458118502-9016-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-03-16 9:49 ` Samuel Pitoiset [this message]
2016-03-16 9:40 ` [PATCH mesa v2 1/3] tgsi: Fix decl.Atomic and .Shared not propagating when parsing tgsi text Samuel Pitoiset
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=56E92C1B.7050509@gmail.com \
--to=samuel.pitoiset-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org \
--cc=mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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.