aco: zero-initialize Temp
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 6 Apr 2020 13:08:39 +0000 (14:08 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Apr 2020 19:15:19 +0000 (19:15 +0000)
commit20a4b1461bab25af48d73b07ca5bafafc397eb2e
treed37d2ecf41471e4008e3ad13e7c9de010584a01a
parent8dd6a51e8010a0a5b33e1a4c7a7a3251ddaa8e50
aco: zero-initialize Temp

Fixes dEQP-VK.transform_feedback.* crashes from accesses garbage
temporaries in emit_extract_vector().

Fixes: 85521061 ("aco: prepare helper functions for subdword handling")
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4463>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4463>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_ir.h
src/amd/compiler/aco_optimizer.cpp