aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/compiler/aco_optimizer.cpp
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2020-04-06 14:08:39 +0100
committerMarge Bot <[email protected]>2020-04-06 19:15:19 +0000
commit20a4b1461bab25af48d73b07ca5bafafc397eb2e (patch)
treed37d2ecf41471e4008e3ad13e7c9de010584a01a /src/amd/compiler/aco_optimizer.cpp
parent8dd6a51e8010a0a5b33e1a4c7a7a3251ddaa8e50 (diff)
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 <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4463> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4463>
Diffstat (limited to 'src/amd/compiler/aco_optimizer.cpp')
-rw-r--r--src/amd/compiler/aco_optimizer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/compiler/aco_optimizer.cpp b/src/amd/compiler/aco_optimizer.cpp
index 7a5b8f9d756..72ae710f838 100644
--- a/src/amd/compiler/aco_optimizer.cpp
+++ b/src/amd/compiler/aco_optimizer.cpp
@@ -103,6 +103,8 @@ struct ssa_info {
};
uint32_t label;
+ ssa_info() : label(0) {}
+
void add_label(Label new_label)
{
/* Since all labels which use "instr" use it for the same thing