From 68573f57eeba1229a7963440428c3229c7ad7ff6 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 17 Feb 2015 16:10:10 -0700 Subject: ilo: fix compiler warnings Fix -Wmaybe-uninitialized warnings. The change to ilo_blit_resolve_slices_for_hiz() is a potential bug fix. --- src/gallium/drivers/ilo/ilo_layout.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/ilo/ilo_layout.h') diff --git a/src/gallium/drivers/ilo/ilo_layout.h b/src/gallium/drivers/ilo/ilo_layout.h index 9aa2ae90b75..54ba2d8fc4b 100644 --- a/src/gallium/drivers/ilo/ilo_layout.h +++ b/src/gallium/drivers/ilo/ilo_layout.h @@ -282,6 +282,8 @@ ilo_layout_get_slice_pos(const struct ilo_layout *layout, } default: assert(!"unknown layout walk type"); + *x = 0; + *y = 0; break; } -- cgit v1.2.3