From e3ec964e44cce65a62deb22d80b4f865e298b501 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 20 Nov 2015 15:48:03 -0800 Subject: [PATCH] anv/meta: Keep z coordinate flat while blitting --- src/vulkan/anv_meta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index c96a9deb798..7cf60768158 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -481,7 +481,7 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, .tex_coord = { (float)(src_offset.x + src_extent.width) / (float)src_iview->extent.width, (float)(src_offset.y + src_extent.height) / (float)src_iview->extent.height, - (float)(src_offset.z + src_extent.depth) / (float)src_iview->extent.depth, + (float)src_offset.z / (float)src_iview->extent.depth, }, }; @@ -493,7 +493,7 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, .tex_coord = { (float)src_offset.x / (float)src_iview->extent.width, (float)(src_offset.y + src_extent.height) / (float)src_iview->extent.height, - (float)(src_offset.z + src_extent.depth) / (float)src_iview->extent.depth, + (float)src_offset.z / (float)src_iview->extent.depth, }, }; -- 2.30.2