diff options
-rw-r--r-- | src/vulkan/anv_cmd_buffer.c | 8 |
1 files changed, 7 insertions, 1 deletions
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( |