anv: Add comment to copy image code block
Anybody will be tempted to factor out the if-else block code since it looks like duplication but else block actually handles the ycbcr images where the aspect masks are compatible but don't need to be the same. Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26294>
This commit is contained in:
parent
73d69ef1e6
commit
2d3f0a834a
1 changed files with 3 additions and 0 deletions
|
|
@ -344,6 +344,9 @@ copy_image(struct anv_cmd_buffer *cmd_buffer,
|
|||
}
|
||||
}
|
||||
} else {
|
||||
/* This case handles the ycbcr images, aspect mask are compatible but
|
||||
* don't need to be the same.
|
||||
*/
|
||||
struct blorp_surf src_surf, dst_surf;
|
||||
get_blorp_surf_for_anv_image(cmd_buffer, src_image, src_mask,
|
||||
VK_IMAGE_USAGE_TRANSFER_SRC_BIT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue