diff options
author | Samuel Pitoiset <[email protected]> | 2017-10-04 22:27:39 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-10-04 23:18:51 +0200 |
commit | 8196a3c63ee1c31dafe7459aaadda0efbd1ac4d2 (patch) | |
tree | 8c567c070ab0e37bd7ad1b6adda54f02d57daec4 /src/amd/vulkan/radv_meta_blit.c | |
parent | b53c207659e65a29081c0f26b189f37fdd895406 (diff) |
radv: remove useless checks around radv_CmdBindPipeline()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta_blit.c')
-rw-r--r-- | src/amd/vulkan/radv_meta_blit.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/amd/vulkan/radv_meta_blit.c b/src/amd/vulkan/radv_meta_blit.c index a0be498de50..88df1f7f418 100644 --- a/src/amd/vulkan/radv_meta_blit.c +++ b/src/amd/vulkan/radv_meta_blit.c @@ -409,10 +409,8 @@ meta_emit_blit(struct radv_cmd_buffer *cmd_buffer, unreachable(!"bad VkImageType"); } - if (cmd_buffer->state.pipeline != radv_pipeline_from_handle(pipeline)) { - radv_CmdBindPipeline(radv_cmd_buffer_to_handle(cmd_buffer), - VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline); - } + radv_CmdBindPipeline(radv_cmd_buffer_to_handle(cmd_buffer), + VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline); radv_meta_push_descriptor_set(cmd_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, device->meta_state.blit.pipeline_layout, |