summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_meta.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan/anv_meta.c')
-rw-r--r--src/vulkan/anv_meta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c
index c96a9de..7cf6076 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,
},
};