From: Jason Ekstrand Date: Sat, 14 Nov 2015 17:16:53 +0000 (-0800) Subject: anv/cmd_buffer: Add a default descriptor type case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=002db3ee15c6e4e9137a2cedd7661e540a8b6a34;p=mesa.git anv/cmd_buffer: Add a default descriptor type case This silences a bunch of compiler warnings. --- 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;