From 002db3ee15c6e4e9137a2cedd7661e540a8b6a34 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 14 Nov 2015 09:16:53 -0800 Subject: [PATCH] anv/cmd_buffer: Add a default descriptor type case This silences a bunch of compiler warnings. --- src/vulkan/anv_cmd_buffer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vulkan/anv_cmd_buffer.c b/src/vulkan/anv_cmd_buffer.c index 6763278c5ef..0f404e29b4a 100644 --- a/src/vulkan/anv_cmd_buffer.c +++ b/src/vulkan/anv_cmd_buffer.c @@ -679,6 +679,10 @@ anv_cmd_buffer_emit_binding_table(struct anv_cmd_buffer *cmd_buffer, case VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER: assert(!"Unsupported descriptor type"); break; + + default: + assert(!"Invalid descriptor type"); + continue; } bt_map[bias + s] = surface_state.offset + state_offset; -- 2.30.2