diff options
author | Chad Versace <[email protected]> | 2015-09-14 11:45:35 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-09-14 14:27:34 -0700 |
commit | 6221593ff81a19129eee53a1cbded0d009425a38 (patch) | |
tree | 83913ccc6e72689ad37951b184d1b628cb0daf2c /src/vulkan/gen8_state.c | |
parent | 0ecafe028533ceb48619a453bc3c592363231a0a (diff) |
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.*
Diffstat (limited to 'src/vulkan/gen8_state.c')
-rw-r--r-- | src/vulkan/gen8_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
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], |