From 77f506382f903cda54dddac4a96717e815aacbb9 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Thu, 26 Sep 2019 17:23:33 -0700 Subject: [PATCH] i965/miptree: Avoid -Wswitch for the Gen12 aux modes Avoid the compiler warnings for the new enums that will be introduced in a future commit. Reviewed-by: Kenneth Graunke Reviewed-by: Jordan Justen --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index d6fb3e8d97c..f135125b58c 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -1626,6 +1626,9 @@ intel_miptree_alloc_aux(struct brw_context *brw, aux_surf_ok = isl_surf_get_ccs_surf(&brw->isl_dev, &mt->surf, &aux_surf, 0); break; + + default: + unreachable("Invalid aux usage"); } /* We should have a valid aux_surf. */ -- 2.30.2