r600/sfn: Initialize BlockScheduler member m_chip_family.
authorVinson Lee <vlee@freedesktop.org>
Mon, 29 May 2023 03:35:54 +0000 (20:35 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 31 May 2023 06:18:47 +0000 (06:18 +0000)
Fix defect reported by Coverity Scan.

Uninitialized scalar field (UNINIT_CTOR)
uninit_member: Non-static class member m_chip_family is not initialized
in this constructor nor in any functions that it calls.

Fixes: e57643cf548 ("r600/sfn: Add handling for R600 indirect access alias handling")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23290>

src/gallium/drivers/r600/sfn/sfn_scheduler.cpp

index c7817ac..9190f51 100644 (file)
@@ -280,7 +280,8 @@ BlockScheduler::BlockScheduler(r600_chip_class chip_class,
     m_last_pixel(nullptr),
     m_last_param(nullptr),
     m_current_block(nullptr),
-    m_chip_class(chip_class)
+    m_chip_class(chip_class),
+    m_chip_family(chip_family)
 {
    m_nop_after_rel_dest = chip_family == CHIP_RV770;