From d0f701d2f1fb76b9e004c5551c33f53042df98d2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 23 Feb 2018 21:11:58 -0800 Subject: anv/blorp: Pass the clear address to blorp for subpass MSAA resolves MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Samuel Iglesias Gonsálvez --- src/intel/vulkan/anv_blorp.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/intel') diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index e71d90ac5e5..8f29bc8398f 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -1325,6 +1325,12 @@ anv_cmd_buffer_resolve_subpass(struct anv_cmd_buffer *cmd_buffer) VK_IMAGE_ASPECT_COLOR_BIT, ANV_IMAGE_LAYOUT_EXPLICIT_AUX, src_aux_usage, &src_surf); + if (src_aux_usage == ISL_AUX_USAGE_MCS) { + src_surf.clear_color_addr = anv_to_blorp_address( + anv_image_get_clear_color_addr(cmd_buffer->device, + src_iview->image, + VK_IMAGE_ASPECT_COLOR_BIT)); + } get_blorp_surf_for_anv_image(cmd_buffer->device, dst_iview->image, VK_IMAGE_ASPECT_COLOR_BIT, ANV_IMAGE_LAYOUT_EXPLICIT_AUX, -- cgit v1.2.3