summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-09-27 21:21:57 +0200
committerSamuel Pitoiset <[email protected]>2017-10-02 11:56:20 +0200
commita5f76d259b6af9c7f6ba69b599f6669fa645c572 (patch)
tree530b5fe4ebc8c43b97c1904c7907c284a430e3dc /src/amd
parent219be27a095f7c0d164967ddf39a7200a2f2b5b8 (diff)
radv: inline blit2d_unbind_dst()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_meta_blit2d.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/amd/vulkan/radv_meta_blit2d.c b/src/amd/vulkan/radv_meta_blit2d.c
index 461d097d05f..f7809b44861 100644
--- a/src/amd/vulkan/radv_meta_blit2d.c
+++ b/src/amd/vulkan/radv_meta_blit2d.c
@@ -180,14 +180,6 @@ blit2d_bind_dst(struct radv_cmd_buffer *cmd_buffer,
}
static void
-blit2d_unbind_dst(struct radv_cmd_buffer *cmd_buffer,
- struct blit2d_dst_temps *tmp)
-{
- VkDevice vk_device = radv_device_to_handle(cmd_buffer->device);
- radv_DestroyFramebuffer(vk_device, tmp->fb, &cmd_buffer->pool->alloc);
-}
-
-static void
bind_pipeline(struct radv_cmd_buffer *cmd_buffer,
enum blit2d_src_type src_type, unsigned fs_key)
{
@@ -340,7 +332,9 @@ radv_meta_blit2d_normal_dst(struct radv_cmd_buffer *cmd_buffer,
/* At the point where we emit the draw call, all data from the
* descriptor sets, etc. has been used. We are free to delete it.
*/
- blit2d_unbind_dst(cmd_buffer, &dst_temps);
+ radv_DestroyFramebuffer(radv_device_to_handle(device),
+ dst_temps.fb,
+ &cmd_buffer->pool->alloc);
}
}
}