anv/cmd_buffer: Add a default descriptor type case
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 14 Nov 2015 17:16:53 +0000 (09:16 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 14 Nov 2015 17:16:55 +0000 (09:16 -0800)
This silences a bunch of compiler warnings.

src/vulkan/anv_cmd_buffer.c

index 6763278c5ef02353cb591af8963439798a16397b..0f404e29b4a5f8d1bb2ad8901e6ce72eb98b6efb 100644 (file)
@@ -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;