From: Timothy Arceri Date: Mon, 6 Jul 2020 03:02:34 +0000 (+1000) Subject: iris: fix maybe-uninitialized warning for initial_state variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01c04a42a6064a3da74fcd8b68efcd812414deb3;p=mesa.git iris: fix maybe-uninitialized warning for initial_state variable Reviewed-by: Kenneth Graunke Part-of: --- diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index c99b34b6f69..9fdd79aeffe 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -619,6 +619,7 @@ iris_resource_configure_aux(struct iris_screen *screen, *alloc_flags |= BO_ALLOC_ZEROED; break; case ISL_AUX_USAGE_MC: + default: unreachable("Unsupported aux mode"); }