venus: fix to destroy all pipeline handles on early error paths
What does this MR do and why?
venus: fix to destroy all pipeline handles on early error paths
For early error returns, all pipeline handles have to be destroyed. Otherwise the caller will treat those valid handles as successfully created pipeline objects.
The original regression was introduced in a65ac274, and later 945165ac added more early returns which inherited the same bug. So just port to all stable branches for simplicity.
Cc: mesa-stable
Test: dEQP-VK.api.object_management.alloc_callback_fail.graphics_pipeline
/cc @lepton
Edited by Yiwei Zhang