vk: Make anv_cmd_buffer_begin_subpass() switch on gen
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Thu, 20 Aug 2015 04:30:08 +0000 (21:30 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Mon, 24 Aug 2015 20:45:40 +0000 (13:45 -0700)
Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
src/vulkan/anv_cmd_buffer.c

index 951bb1034308fc8cbb0c160c444cad8d8bbca5d5..6cb98a21ca4ffe3045ff41d8de9e2e09f639b419 100644 (file)
@@ -609,7 +609,13 @@ void
 anv_cmd_buffer_begin_subpass(struct anv_cmd_buffer *cmd_buffer,
                              struct anv_subpass *subpass)
 {
-   gen8_cmd_buffer_begin_subpass(cmd_buffer, subpass);
+   switch (cmd_buffer->device->info.gen) {
+   case 8:
+      gen8_cmd_buffer_begin_subpass(cmd_buffer, subpass);
+      break;
+   default:
+      unreachable("unsupported gen\n");
+   }
 }
 
 void anv_CmdSetEvent(