gallium: initialize ureg_dst::Invariant bit
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 25 Jul 2018 15:20:34 +0000 (17:20 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 26 Jul 2018 07:01:33 +0000 (09:01 +0200)
commite68fe445f514ad9327a4e9ad6a5174b66d69a901
tree715ac21e7a38c541106d7db29055f801ea9dbbb5
parentff0d553818c9f6a28f7de109d13afe9b25a802dc
gallium: initialize ureg_dst::Invariant bit

When this bit was added, it seems the some initialization code
was omitted by mistake.

Since stack-variables have kinda random contents, and we don't
zero initialize the whole struct in these code-paths, we end up
getting random-ish values for this bit.

Spotted by Coverity in the following CIDs:
1438115
1438123
1438130

Fixes: 70425bcfe63c4e9191809659d019ec4af923595d ("gallium: plumb
invariant output attrib thru TGSI")

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Jakob Bornecrantz <jakob@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/auxiliary/tgsi/tgsi_ureg.h