Mesa (master): iris: fix maybe-uninitialized warning for initial_state variable

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 8 03:41:53 UTC 2020


Module: Mesa
Branch: master
Commit: 01c04a42a6064a3da74fcd8b68efcd812414deb3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=01c04a42a6064a3da74fcd8b68efcd812414deb3

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Mon Jul  6 13:02:34 2020 +1000

iris: fix maybe-uninitialized warning for initial_state variable

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5766>

---

 src/gallium/drivers/iris/iris_resource.c | 1 +
 1 file changed, 1 insertion(+)

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");
    }
 



More information about the mesa-commit mailing list