anv: Use framebuffer layers for implicit subpass transitions
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 9 Feb 2018 00:44:56 +0000 (16:44 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 20 Feb 2018 21:49:24 +0000 (13:49 -0800)
Fixes: de3be618016 "anv/cmd_buffer: Rework aux tracking"
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/vulkan/genX_cmd_buffer.c

index 7aab116217f3a79f1acf4ad10b317b85c01bbb3d..9c50f91b44b4468866316b93e2bc7f981d99fa5d 100644 (file)
@@ -3344,7 +3344,7 @@ cmd_buffer_subpass_transition_layouts(struct anv_cmd_buffer * const cmd_buffer,
                                      iview->planes[0].isl.base_level);
          } else {
             base_layer = iview->planes[0].isl.base_array_layer;
-            layer_count = iview->planes[0].isl.array_len;
+            layer_count = cmd_state->framebuffer->layers;
          }
 
          transition_color_buffer(cmd_buffer, image, VK_IMAGE_ASPECT_COLOR_BIT,