anv: Add a usage parameter to anv_layout_to_aux_usage
Most places we actually know the usage and can provide it. There are two exceptions to this: 1. We pass 0 into get_blorp_surf_for_anv_image when we use ANV_IMAGE_LAYOUT_EXPLICIT_AUX because anv_layout_to_aux_usage is never actually called so it doesn't matter. 2. We pass 0 into anv_layout_to_aux_usage in transition_color_buffer. However, the coming commits which will begin using the usage parameter only care about depth. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2605>
This commit is contained in:

committed by
Marge Bot

parent
f8a4de6316
commit
bf3a262a80
@@ -3700,6 +3700,7 @@ enum isl_aux_usage
|
||||
anv_layout_to_aux_usage(const struct gen_device_info * const devinfo,
|
||||
const struct anv_image *image,
|
||||
const VkImageAspectFlagBits aspect,
|
||||
const VkImageUsageFlagBits usage,
|
||||
const VkImageLayout layout);
|
||||
|
||||
enum anv_fast_clear_type
|
||||
|
Reference in New Issue
Block a user