iris: fix maybe-uninitialized warning for initial_state variable
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 6 Jul 2020 03:02:34 +0000 (13:02 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 8 Jul 2020 03:04:03 +0000 (03:04 +0000)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5766>

src/gallium/drivers/iris/iris_resource.c

index c99b34b6f69c8c68cd24632a2eda4b2d346cbca6..9fdd79aeffe487d6e8a7cf3f69a0828997b6674c 100644 (file)
@@ -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");
    }