mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
anv/meta: Keep z coordinate flat while blitting
This commit is contained in:
parent
1157b0360d
commit
e3ec964e44
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue