diff options
author | Samuel Pitoiset <[email protected]> | 2017-09-27 21:49:53 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-10-02 11:56:20 +0200 |
commit | af62984c8a76a039d182f2929f3741925d129ec3 (patch) | |
tree | e58af601922ee4ea719a8c214abed4849c2db86b /src/amd/vulkan | |
parent | 84635ef3a39d4c6661d9e87931a6b849c42b53a5 (diff) |
radv: inline destroy_render_pass()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_meta_clear.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c index bab79b53021..7ca4bc34920 100644 --- a/src/amd/vulkan/radv_meta_clear.c +++ b/src/amd/vulkan/radv_meta_clear.c @@ -287,13 +287,6 @@ create_color_pipeline(struct radv_device *device, return result; } -static void -destroy_render_pass(struct radv_device *device, VkRenderPass renderpass) -{ - radv_DestroyRenderPass(radv_device_to_handle(device), renderpass, - &device->meta_state.alloc); -} - void radv_device_finish_meta_clear_state(struct radv_device *device) { @@ -304,7 +297,9 @@ radv_device_finish_meta_clear_state(struct radv_device *device) radv_DestroyPipeline(radv_device_to_handle(device), state->clear[i].color_pipelines[j], &device->meta_state.alloc); - destroy_render_pass(device, state->clear[i].render_pass[j]); + radv_DestroyRenderPass(radv_device_to_handle(device), + state->clear[i].render_pass[j], + &device->meta_state.alloc); } for (uint32_t j = 0; j < NUM_DEPTH_CLEAR_PIPELINES; j++) { @@ -318,7 +313,9 @@ radv_device_finish_meta_clear_state(struct radv_device *device) state->clear[i].depthstencil_pipeline[j], &device->meta_state.alloc); } - destroy_render_pass(device, state->clear[i].depthstencil_rp); + radv_DestroyRenderPass(radv_device_to_handle(device), + state->clear[i].depthstencil_rp, + &device->meta_state.alloc); } radv_DestroyPipelineLayout(radv_device_to_handle(device), state->clear_color_p_layout, |