anv/cmd_buffer: Include Haswell in set_subpass
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 4 Mar 2016 23:38:11 +0000 (15:38 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 5 Mar 2016 01:54:29 +0000 (17:54 -0800)
src/intel/vulkan/anv_cmd_buffer.c

index 418a143b7bcbc23a64eb383e86b784281d639148..aa54bdecb0ac644b742aef93924400090d853c0b 100644 (file)
@@ -965,7 +965,11 @@ anv_cmd_buffer_set_subpass(struct anv_cmd_buffer *cmd_buffer,
 {
    switch (cmd_buffer->device->info.gen) {
    case 7:
-      gen7_cmd_buffer_set_subpass(cmd_buffer, subpass);
+      if (cmd_buffer->device->info.is_haswell) {
+         gen75_cmd_buffer_set_subpass(cmd_buffer, subpass);
+      } else {
+         gen7_cmd_buffer_set_subpass(cmd_buffer, subpass);
+      }
       break;
    case 8:
       gen8_cmd_buffer_set_subpass(cmd_buffer, subpass);