diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2023-10-18 08:59:28 -0700 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-10-25 00:06:04 +0000 |
commit | c42b1a5a7486338fec58931b21adcd4eb8a40f66 (patch) | |
tree | 692afd45aedb8a187e219bca9a38bac84a4be59d /src/intel/vulkan/anv_blorp.c | |
parent | 9a79c5f1e5c814f71756c1b9a22a70933be8707e (diff) |
anv: prep for gen9 astc workaround
We will reuse astc emu for gen9 astc workaround. This commit contains
minor cleanups and has no functional change.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25800>
Diffstat (limited to 'src/intel/vulkan/anv_blorp.c')
-rw-r--r-- | src/intel/vulkan/anv_blorp.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 1440c13c348..796eb8c484d 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -455,7 +455,7 @@ void anv_CmdCopyImage2( ANV_PIPE_HDC_PIPELINE_FLUSH_BIT : ANV_PIPE_RENDER_TARGET_CACHE_FLUSH_BIT; anv_add_pending_pipe_bits(cmd_buffer, pipe_bits, - "Copy flush before decompression"); + "Copy flush before astc emu"); for (unsigned r = 0; r < pCopyImageInfo->regionCount; r++) { const VkImageCopy2 *region = &pCopyImageInfo->pRegions[r]; @@ -463,10 +463,10 @@ void anv_CmdCopyImage2( &dst_image->vk, region->dstOffset); const VkExtent3D block_extent = vk_image_extent_to_elements( &src_image->vk, region->extent); - anv_astc_emu_decompress(cmd_buffer, dst_image, - pCopyImageInfo->dstImageLayout, - ®ion->dstSubresource, - block_offset, block_extent); + anv_astc_emu_process(cmd_buffer, dst_image, + pCopyImageInfo->dstImageLayout, + ®ion->dstSubresource, + block_offset, block_extent); } } @@ -630,7 +630,7 @@ void anv_CmdCopyBufferToImage2( ANV_PIPE_HDC_PIPELINE_FLUSH_BIT : ANV_PIPE_RENDER_TARGET_CACHE_FLUSH_BIT; anv_add_pending_pipe_bits(cmd_buffer, pipe_bits, - "Copy flush before decompression"); + "Copy flush before astc emu"); for (unsigned r = 0; r < pCopyBufferToImageInfo->regionCount; r++) { const VkBufferImageCopy2 *region = @@ -639,10 +639,10 @@ void anv_CmdCopyBufferToImage2( &dst_image->vk, region->imageOffset); const VkExtent3D block_extent = vk_image_extent_to_elements( &dst_image->vk, region->imageExtent); - anv_astc_emu_decompress(cmd_buffer, dst_image, - pCopyBufferToImageInfo->dstImageLayout, - ®ion->imageSubresource, - block_offset, block_extent); + anv_astc_emu_process(cmd_buffer, dst_image, + pCopyBufferToImageInfo->dstImageLayout, + ®ion->imageSubresource, + block_offset, block_extent); } } |