diff options
author | Rohan Garg <rohan.garg@intel.com> | 2022-12-02 15:05:54 +0530 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-01-06 17:22:16 +0000 |
commit | 818eed3d2f2dbfbba489339505270c5d0750eb45 (patch) | |
tree | 8e47256f1a153423fa159f3e36f71076657d3f20 /src/intel/vulkan/anv_blorp.c | |
parent | 9257b08f49c1dd5e919e33b20c387c505b8d2417 (diff) |
anv,hasvk: migrate to u_minify from util
Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20104>
Diffstat (limited to 'src/intel/vulkan/anv_blorp.c')
-rw-r--r-- | src/intel/vulkan/anv_blorp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 70b2319a5bf..faf0d036589 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -955,12 +955,12 @@ void anv_CmdClearColorImage( for (uint32_t i = 0; i < level_count; i++) { const unsigned level = pRanges[r].baseMipLevel + i; - const unsigned level_width = anv_minify(image->vk.extent.width, level); - const unsigned level_height = anv_minify(image->vk.extent.height, level); + const unsigned level_width = u_minify(image->vk.extent.width, level); + const unsigned level_height = u_minify(image->vk.extent.height, level); if (image->vk.image_type == VK_IMAGE_TYPE_3D) { base_layer = 0; - layer_count = anv_minify(image->vk.extent.depth, level); + layer_count = u_minify(image->vk.extent.depth, level); } anv_cmd_buffer_mark_image_written(cmd_buffer, image, @@ -1028,11 +1028,11 @@ void anv_CmdClearDepthStencilImage( for (uint32_t i = 0; i < level_count; i++) { const unsigned level = pRanges[r].baseMipLevel + i; - const unsigned level_width = anv_minify(image->vk.extent.width, level); - const unsigned level_height = anv_minify(image->vk.extent.height, level); + const unsigned level_width = u_minify(image->vk.extent.width, level); + const unsigned level_height = u_minify(image->vk.extent.height, level); if (image->vk.image_type == VK_IMAGE_TYPE_3D) - layer_count = anv_minify(image->vk.extent.depth, level); + layer_count = u_minify(image->vk.extent.depth, level); blorp_clear_depth_stencil(&batch, &depth, &stencil, level, base_layer, layer_count, @@ -1758,8 +1758,8 @@ anv_image_ccs_op(struct anv_cmd_buffer *cmd_buffer, image->planes[plane].aux_usage, &surf); - uint32_t level_width = anv_minify(surf.surf->logical_level0_px.w, level); - uint32_t level_height = anv_minify(surf.surf->logical_level0_px.h, level); + uint32_t level_width = u_minify(surf.surf->logical_level0_px.w, level); + uint32_t level_height = u_minify(surf.surf->logical_level0_px.h, level); /* Blorp will store the clear color for us if we provide the clear color * address and we are doing a fast clear. So we save the clear value into |