summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2019-09-26 17:23:33 -0700
committerNanley Chery <[email protected]>2019-10-28 10:47:05 -0700
commit77f506382f903cda54dddac4a96717e815aacbb9 (patch)
tree806aed3935cf834d85b818a8ffd85097126a05e4 /src
parent8af1853331254c50476e424d41efa76d2e86c0e9 (diff)
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 <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c3
1 files changed, 3 insertions, 0 deletions
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. */