All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mesa 1/6] tgsi_build: Fix return of uninitialized memory in tgsi_*_instruction_memory
@ 2016-03-16  9:23 Hans de Goede
       [not found] ` <1458120239-27659-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2016-03-16 15:12 ` Nicolai Hähnle
  0 siblings, 2 replies; 20+ messages in thread
From: Hans de Goede @ 2016-03-16  9:23 UTC (permalink / raw)
  To: Ilia Mirkin, Samuel Pitoiset; +Cc: mesa-dev, Nicolai Hähnle, nouveau

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>
---
 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;
 
-- 
2.7.2

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2016-03-16 18:24 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.