From 71e10fafcdf2ff5a854999c28c2bb3401a9e4a6d Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Mon, 10 Aug 2020 18:46:43 +0100 Subject: [PATCH] c/main: Fix warnings with asserts --- src/xrt/compositor/main/comp_compositor.c | 6 ++++++ src/xrt/compositor/main/comp_layer.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c index fa3a26e7b..369172723 100644 --- a/src/xrt/compositor/main/comp_compositor.c +++ b/src/xrt/compositor/main/comp_compositor.c @@ -397,6 +397,12 @@ compositor_layer_commit(struct xrt_compositor *xc, int64_t frame_id) comp_renderer_set_projection_layer(c->r, i, left, right, data); } break; + case XRT_LAYER_STEREO_PROJECTION_DEPTH: + case XRT_LAYER_CUBE: + case XRT_LAYER_CYLINDER: + case XRT_LAYER_EQUIRECT: + // Should never end up here. + assert(false); } } diff --git a/src/xrt/compositor/main/comp_layer.c b/src/xrt/compositor/main/comp_layer.c index 478668c3b..66f08c084 100644 --- a/src/xrt/compositor/main/comp_layer.c +++ b/src/xrt/compositor/main/comp_layer.c @@ -224,6 +224,12 @@ comp_layer_draw(struct comp_render_layer *self, _update_mvp_matrix(self, eye, &proj_scale); break; case XRT_LAYER_QUAD: _update_mvp_matrix(self, eye, vp); break; + case XRT_LAYER_STEREO_PROJECTION_DEPTH: + case XRT_LAYER_CUBE: + case XRT_LAYER_CYLINDER: + case XRT_LAYER_EQUIRECT: + // Should never end up here. + assert(false); } self->vk->vkCmdBindDescriptorSets(