From: Jason Ekstrand Date: Fri, 20 Nov 2015 23:48:03 +0000 (-0800) Subject: anv/meta: Keep z coordinate flat while blitting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3ec964e44cce65a62deb22d80b4f865e298b501;p=mesa.git anv/meta: Keep z coordinate flat while blitting --- 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, }, };