From 6221593ff81a19129eee53a1cbded0d009425a38 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Mon, 14 Sep 2015 11:45:35 -0700 Subject: vk/meta: Partially implement vkCmdCopy*, vkCmdBlit* for 3D images Partially implement the below functions for 3D images: vkCmdCopyBufferToImage vkCmdCopyImageToBuffer vkCmdCopyImage vkCmdBlitImage Not all features work, and there is much for performance improvement. Beware that vkCmdCopyImage and vkCmdBlitImage are untested. Crucible proves that vkCmdCopyBufferToImage and vkCmdCopyImageToBuffer works, though. Supported: - copy regions with z offset Unsupported: - copy regions with extent.depth > 1 Crucible test results on master@d452d2b are: pass: func.miptree.r8g8b8a8-unorm.*.view-3d.* pass: func.miptree.d32-sfloat.*.view-3d.* fail: func.miptree.s8-uint.*.view-3d.* --- src/vulkan/gen8_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vulkan/gen8_state.c') diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c index 26509f1d817..4c9161c0c9c 100644 --- a/src/vulkan/gen8_state.c +++ b/src/vulkan/gen8_state.c @@ -363,7 +363,7 @@ gen8_color_attachment_view_init(struct anv_color_attachment_view *aview, } struct GEN8_RENDER_SURFACE_STATE surface_state = { - .SurfaceType = SURFTYPE_2D, + .SurfaceType = image->type, .SurfaceArray = image->array_size > 1, .SurfaceFormat = format_info->surface_format, .SurfaceVerticalAlignment = anv_valign[surface->v_align], -- cgit v1.2.3