From: Kristian Høgsberg Kristensen Date: Thu, 20 Aug 2015 04:30:08 +0000 (-0700) Subject: vk: Make anv_cmd_buffer_begin_subpass() switch on gen X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc568ee992ff272372dc8e57524ab12ec0b7d8a8;p=mesa.git vk: Make anv_cmd_buffer_begin_subpass() switch on gen Signed-off-by: Kristian Høgsberg Kristensen --- diff --git a/src/vulkan/anv_cmd_buffer.c b/src/vulkan/anv_cmd_buffer.c index 951bb103430..6cb98a21ca4 100644 --- a/src/vulkan/anv_cmd_buffer.c +++ b/src/vulkan/anv_cmd_buffer.c @@ -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(