c/main: Silence warnings and make sure that layer configs are picked up

This commit is contained in:
Jakob Bornecrantz 2020-12-15 14:25:57 +00:00
parent 669303cd6d
commit c30c4c011d
3 changed files with 11 additions and 0 deletions

View file

@ -1 +1,5 @@
---
- mr.620
- mr.624
---
Implement support for XR_KHR_composition_layer_equirect (equirect1).

View file

@ -539,6 +539,12 @@ compositor_layer_commit(struct xrt_compositor *xc, int64_t frame_id)
image = &layer->scs[0]->images[eq->sub.image_index];
comp_renderer_set_equirect2_layer(c->r, i, image, data);
} break;
#endif
#ifndef XRT_FEATURE_OPENXR_LAYER_EQUIRECT1
case XRT_LAYER_EQUIRECT1:
#endif
#ifndef XRT_FEATURE_OPENXR_LAYER_EQUIRECT2
case XRT_LAYER_EQUIRECT2:
#endif
case XRT_LAYER_CUBE:
// Should never end up here.

View file

@ -11,6 +11,7 @@
#pragma once
#include "xrt/xrt_gfx_vk.h"
#include "xrt/xrt_config_build.h"
#include "util/u_threading.h"
#include "util/u_index_fifo.h"