i965/miptree: Avoid -Wswitch for the Gen12 aux modes
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 27 Sep 2019 00:23:33 +0000 (17:23 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 28 Oct 2019 17:47:05 +0000 (10:47 -0700)
Avoid the compiler warnings for the new enums that will be introduced in
a future commit.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index d6fb3e8d97c9b090fe181e834f775d2fac19616b..f135125b58cc8f992830a509164056972b5a65e0 100644 (file)
@@ -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. */