anv/meta: Keep z coordinate flat while blitting

This commit is contained in:
Jason Ekstrand 2015-11-20 15:48:03 -08:00
parent 1157b0360d
commit e3ec964e44

View file

@ -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,
},
};