Module: Mesa Branch: master Commit: 815e6c8ef4e39e8735a6f608017e370271c0badb URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=815e6c8ef4e39e8735a6f608017e370271c0badb
Author: Sagar Ghuge <[email protected]> Date: Mon Nov 18 12:47:10 2019 -0800 anv: Don't track clear bo for stencil buffer compression On Gen12+, stencil buffer compression does not support fast clear so we don't have to track clear address for it. v2: - Use isl_aux_usage_has_fast_clears (Nanley Chery) Signed-off-by: Sagar Ghuge <[email protected]> Reviewed-by: Nanley Chery <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2942> --- src/intel/vulkan/anv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index ff89426c9b8..044af4e5601 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -1830,7 +1830,7 @@ anv_image_fill_surface_state(struct anv_device *device, state_inout->aux_address = aux_address; struct anv_address clear_address = ANV_NULL_ADDRESS; - if (device->info.gen >= 10 && aux_usage != ISL_AUX_USAGE_NONE) { + if (device->info.gen >= 10 && isl_aux_usage_has_fast_clears(aux_usage)) { if (aspect == VK_IMAGE_ASPECT_DEPTH_BIT) { clear_address = (struct anv_address) { .bo = device->hiz_clear_bo, _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
