From 7cc83f237efe1fdba075d07b18450c4345d2dc7f Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 13 Feb 2021 20:21:55 -0800 Subject: [PATCH] aco: Initialize ds_state.front.writeMask. Fix defect reported by Coverity Scan. Uninitialized scalar variable (UNINIT) uninit_use: Using uninitialized value ds_state.front. Field ds_state.front.writeMask is uninitialized. Fixes: d488d0fd7ba ("aco: add framework for testing isel and integration tests") Signed-off-by: Vinson Lee Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/tests/helpers.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/compiler/tests/helpers.cpp b/src/amd/compiler/tests/helpers.cpp index 77038ff..f094724 100644 --- a/src/amd/compiler/tests/helpers.cpp +++ b/src/amd/compiler/tests/helpers.cpp @@ -666,6 +666,7 @@ void PipelineBuilder::create_graphics_pipeline() { ds_state.front.depthFailOp = VK_STENCIL_OP_REPLACE; ds_state.front.compareOp = VK_COMPARE_OP_ALWAYS; ds_state.front.compareMask = 0xffffffff, + ds_state.front.writeMask = 0; ds_state.front.reference = 0; ds_state.back = ds_state.front; -- 2.7.4