diff options
author | Chia-I Wu <[email protected]> | 2015-02-17 16:10:10 -0700 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-02-18 14:20:29 -0700 |
commit | 68573f57eeba1229a7963440428c3229c7ad7ff6 (patch) | |
tree | 4f9add745cdf4e0c0f3bc4e7c1d694991fec5e23 /src/gallium/drivers/ilo/ilo_layout.c | |
parent | b290330e3b78405424a907cf6e82cef531c71c50 (diff) |
ilo: fix compiler warnings
Fix -Wmaybe-uninitialized warnings. The change to
ilo_blit_resolve_slices_for_hiz() is a potential bug fix.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_layout.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_layout.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_layout.c b/src/gallium/drivers/ilo/ilo_layout.c index 73db7969bdb..881550bd9f2 100644 --- a/src/gallium/drivers/ilo/ilo_layout.c +++ b/src/gallium/drivers/ilo/ilo_layout.c @@ -656,7 +656,7 @@ layout_init_size_and_format(struct ilo_layout *layout, { const struct pipe_resource *templ = params->templ; enum pipe_format format = templ->format; - bool require_separate_stencil; + bool require_separate_stencil = false; layout->width0 = templ->width0; layout->height0 = templ->height0; @@ -1101,6 +1101,11 @@ layout_calculate_hiz_size(struct ilo_layout *layout, } hz_height /= 2; break; + default: + assert(!"unknown HiZ walk"); + hz_width = 0; + hz_height = 0; + break; } /* |