v3dv: fix Z coordinate for 3D blits

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7247>
This commit is contained in:
Iago Toral Quiroga 2020-10-09 19:11:30 +02:00
parent a18411d9c6
commit 462429b4b8

View file

@ -4270,7 +4270,7 @@ blit_shader(struct v3dv_cmd_buffer *cmd_buffer,
tex_coords[4] =
!mirror_z ?
(min_src_layer + (i + 0.5f) * src_z_step) / (float)src_level_d :
(max_dst_layer - (i + 0.5f) * src_z_step) / (float)src_level_d ;
(max_src_layer - (i + 0.5f) * src_z_step) / (float)src_level_d;
}
v3dv_CmdPushConstants(_cmd_buffer,