From: "Nicolai Hähnle" <nhaehnle@gmail.com>
To: Hans de Goede <hdegoede@redhat.com>,
Ilia Mirkin <imirkin@alum.mit.edu>,
Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: mesa-dev@lists.freedesktop.org,
"Nicolai Hähnle" <nicolai.haehnle@amd.com>,
nouveau@lists.freedesktop.org
Subject: Re: [PATCH mesa 1/6] tgsi_build: Fix return of uninitialized memory in tgsi_*_instruction_memory
Date: Wed, 16 Mar 2016 10:12:35 -0500 [thread overview]
Message-ID: <56E977E3.6090308@gmail.com> (raw)
In-Reply-To: <1458120239-27659-1-git-send-email-hdegoede@redhat.com>
On 16.03.2016 04:23, Hans de Goede wrote:
> tgsi_default_instruction_memory / tgsi_build_instruction_memory were
> returning uninitialized memory for tgsi_instruction_memory.Texture and
> tgsi_instruction_memory.Format. Note 0 means not set, and thus is a
> correct default initializer for these.
>
> Fixes: 3243b6fc97 ("tgsi: add Texture and Format to tgsi_instruction_memory")
> Cc: Nicolai Hähnle <nicolai.haehnle@amd.com>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Thanks.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
> ---
> src/gallium/auxiliary/tgsi/tgsi_build.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.c b/src/gallium/auxiliary/tgsi/tgsi_build.c
> index a3e659b..7e30bb6 100644
> --- a/src/gallium/auxiliary/tgsi/tgsi_build.c
> +++ b/src/gallium/auxiliary/tgsi/tgsi_build.c
> @@ -781,6 +781,8 @@ tgsi_default_instruction_memory( void )
> struct tgsi_instruction_memory instruction_memory;
>
> instruction_memory.Qualifier = 0;
> + instruction_memory.Texture = 0;
> + instruction_memory.Format = 0;
> instruction_memory.Padding = 0;
>
> return instruction_memory;
> @@ -796,6 +798,8 @@ tgsi_build_instruction_memory(
> struct tgsi_instruction_memory instruction_memory;
>
> instruction_memory.Qualifier = qualifier;
> + instruction_memory.Texture = 0;
> + instruction_memory.Format = 0;
> instruction_memory.Padding = 0;
> instruction->Memory = 1;
>
>
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev
prev parent reply other threads:[~2016-03-16 15:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-16 9:23 [PATCH mesa 1/6] tgsi_build: Fix return of uninitialized memory in tgsi_*_instruction_memory Hans de Goede
[not found] ` <1458120239-27659-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-03-16 9:23 ` [PATCH mesa 2/6] nouveau: codegen: Slightly refactor Source::scanInstruction() dst handling Hans de Goede
[not found] ` <1458120239-27659-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-03-16 10:24 ` Samuel Pitoiset
2016-03-16 9:23 ` [PATCH mesa 3/6] nouveau: codegen: gk110: Make emitSTORE offset handling identical to emitLOAD Hans de Goede
2016-03-16 10:28 ` Samuel Pitoiset
2016-03-16 9:23 ` [PATCH mesa 4/6] nouveau: codegen: s/FILE_MEMORY_GLOBAL/FILE_MEMORY_BUFFER/ Hans de Goede
2016-03-16 10:31 ` Samuel Pitoiset
[not found] ` <1458120239-27659-4-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-03-16 14:55 ` Ilia Mirkin
[not found] ` <CAKb7Uvg=2MpmfYfeRi8NcYYzGkhZy7mDLFw0dFoeWd68Q6EgFA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-16 18:14 ` Hans de Goede
2016-03-16 18:24 ` Ilia Mirkin
2016-03-16 9:23 ` [PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers Hans de Goede
2016-03-16 10:37 ` Samuel Pitoiset
2016-03-16 10:45 ` Hans de Goede
[not found] ` <56E9394D.8040704-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-03-16 10:49 ` Samuel Pitoiset
2016-03-16 9:23 ` [PATCH mesa 6/6] nouveau: codegen: Disable more old resource handling code Hans de Goede
2016-03-16 10:45 ` Samuel Pitoiset
[not found] ` <56E9393A.2080300-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-03-16 10:49 ` Hans de Goede
[not found] ` <56E93A3E.1080808-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-03-16 12:20 ` Samuel Pitoiset
2016-03-16 9:52 ` [Mesa-dev] [PATCH mesa 1/6] tgsi_build: Fix return of uninitialized memory in tgsi_*_instruction_memory Marek Olšák
2016-03-16 15:12 ` Nicolai Hähnle [this message]
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=56E977E3.6090308@gmail.com \
--to=nhaehnle@gmail.com \
--cc=hdegoede@redhat.com \
--cc=imirkin@alum.mit.edu \
--cc=mesa-dev@lists.freedesktop.org \
--cc=nicolai.haehnle@amd.com \
--cc=nouveau@lists.freedesktop.org \
--cc=samuel.pitoiset@gmail.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 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.