summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2015-08-19 21:30:08 -0700
committerKristian Høgsberg Kristensen <[email protected]>2015-08-24 13:45:40 -0700
commitbc568ee992ff272372dc8e57524ab12ec0b7d8a8 (patch)
treea7b309c7f2613b0a33c7fdf99182e2f8b53374cf /src/vulkan
parent8fe74ec45c93b3ec64243f351a7e2173a76cf788 (diff)
vk: Make anv_cmd_buffer_begin_subpass() switch on gen
Signed-off-by: Kristian Høgsberg Kristensen <[email protected]>
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/anv_cmd_buffer.c8
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(