From: Nanley Chery Date: Tue, 8 Mar 2016 06:38:05 +0000 (-0800) Subject: anv/meta: Make meta_emit_blit() public X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f39168392243d6dacefbc8708b764c5978ff24df;p=mesa.git anv/meta: Make meta_emit_blit() public This can be reverted if the only other consumer, anv_meta_blit2d(), uses a different method. Signed-off-by: Nanley Chery Reviewed-by: Anuj Phogat --- diff --git a/src/intel/vulkan/anv_meta.h b/src/intel/vulkan/anv_meta.h index 587c044fa5f..fb562dbd564 100644 --- a/src/intel/vulkan/anv_meta.h +++ b/src/intel/vulkan/anv_meta.h @@ -105,6 +105,17 @@ void anv_meta_end_blit2d(struct anv_cmd_buffer *cmd_buffer, struct anv_meta_saved_state *save); +void +meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, + struct anv_image *src_image, + struct anv_image_view *src_iview, + VkOffset3D src_offset, + VkExtent3D src_extent, + struct anv_image *dest_image, + struct anv_image_view *dest_iview, + VkOffset3D dest_offset, + VkExtent3D dest_extent, + VkFilter blit_filter); #ifdef __cplusplus } #endif diff --git a/src/intel/vulkan/anv_meta_blit.c b/src/intel/vulkan/anv_meta_blit.c index 82b79b88f2c..57833bf66ac 100644 --- a/src/intel/vulkan/anv_meta_blit.c +++ b/src/intel/vulkan/anv_meta_blit.c @@ -160,7 +160,7 @@ meta_region_extent_el(const VkFormat format, }; } -static void +void meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, struct anv_image *src_image, struct anv_image_view *src_iview,