radv: inline blit2d_unbind_dst()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 27 Sep 2017 19:21:57 +0000 (21:21 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 2 Oct 2017 09:56:20 +0000 (11:56 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_blit2d.c

index 461d097d05f858831595e73d0153b446a0cbacab..f7809b448610fe658182b368384a1ec3ae40b190 100644 (file)
@@ -179,14 +179,6 @@ blit2d_bind_dst(struct radv_cmd_buffer *cmd_buffer,
                                }, &cmd_buffer->pool->alloc, &tmp->fb);
 }
 
-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);
                }
        }
 }