tgsi: Fix return of uninitialized memory in tgsi_*_instruction_memory
authorHans de Goede <hdegoede@redhat.com>
Wed, 16 Mar 2016 08:46:05 +0000 (09:46 +0100)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 20 Mar 2016 22:01:53 +0000 (18:01 -0400)
commitb72156c8e0fe9dd2c4d9614f3f7d1e8bdea0e4dd
tree3bbd7a9b6dbee3ddd41ff274156310223c42b770
parentbbbdcdcf75f05f97ea346fd6d84ecc3d8ec61d24
tgsi: Fix return of uninitialized memory in tgsi_*_instruction_memory

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>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/tgsi/tgsi_build.c