iris: Silence warning about AUX_USAGE_MC.
authorEric Anholt <eric@anholt.net>
Tue, 17 Dec 2019 05:17:17 +0000 (21:17 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 28 Jan 2020 20:30:48 +0000 (12:30 -0800)
It was recently introduced and not added to iris yet it looks like.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3539>

src/gallium/drivers/iris/iris_resource.c

index 952d6615584a9b07dbb143c11a08f917832f1d42..bdd715df2c968666649482eb09d8081619cbe93f 100644 (file)
@@ -553,6 +553,8 @@ iris_resource_configure_aux(struct iris_screen *screen,
          initial_state = ISL_AUX_STATE_PASS_THROUGH;
       *alloc_flags |= BO_ALLOC_ZEROED;
       break;
+   case ISL_AUX_USAGE_MC:
+      unreachable("Unsupported aux mode");
    }
 
    /* Create the aux_state for the auxiliary buffer. */