[Mesa-dev] [PATCH v3 04/18] anv: Use framebuffer layers for implicit subpass transitions
Jason Ekstrand
jason at jlekstrand.net
Wed Feb 14 20:16:19 UTC 2018
---
src/intel/vulkan/genX_cmd_buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index 8b1816a..a16b742 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -3324,7 +3324,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,
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list