summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-02-08 16:44:56 -0800
committerJason Ekstrand <[email protected]>2018-02-20 13:49:24 -0800
commit869448a8aba25bddcc1ae5e70a95cea9882c8882 (patch)
treea579838cb2def67241a1b21956bbfdfe21480d77
parent85d0bec9616bc1ffa8e4ab5e7c5d12ff4e414872 (diff)
anv: Use framebuffer layers for implicit subpass transitions
Fixes: de3be618016 "anv/cmd_buffer: Rework aux tracking" Reviewed-by: Nanley Chery <[email protected]>
-rw-r--r--src/intel/vulkan/genX_cmd_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index 7aab116217f..9c50f91b44b 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -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,