radv/meta: cleanup creating the compute depth decompress pipeline
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30233>
This commit is contained in:
committed by
Marge Bot
parent
b3d9afe44d
commit
5f2cbc3ab9
@@ -54,7 +54,6 @@ static VkResult
|
||||
create_pipeline_cs(struct radv_device *device, VkPipeline *pipeline)
|
||||
{
|
||||
VkResult result = VK_SUCCESS;
|
||||
nir_shader *cs = build_expand_depth_stencil_compute_shader(device);
|
||||
|
||||
const VkDescriptorSetLayoutBinding bindings[] = {
|
||||
{
|
||||
@@ -75,19 +74,18 @@ create_pipeline_cs(struct radv_device *device, VkPipeline *pipeline)
|
||||
result = radv_meta_create_descriptor_set_layout(device, 2, bindings,
|
||||
&device->meta_state.expand_depth_stencil_compute_ds_layout);
|
||||
if (result != VK_SUCCESS)
|
||||
goto cleanup;
|
||||
return result;
|
||||
|
||||
result = radv_meta_create_pipeline_layout(device, &device->meta_state.expand_depth_stencil_compute_ds_layout, 0,
|
||||
NULL, &device->meta_state.expand_depth_stencil_compute_p_layout);
|
||||
if (result != VK_SUCCESS)
|
||||
goto cleanup;
|
||||
return result;
|
||||
|
||||
nir_shader *cs = build_expand_depth_stencil_compute_shader(device);
|
||||
|
||||
result =
|
||||
radv_meta_create_compute_pipeline(device, cs, device->meta_state.expand_depth_stencil_compute_p_layout, pipeline);
|
||||
if (result != VK_SUCCESS)
|
||||
goto cleanup;
|
||||
|
||||
cleanup:
|
||||
ralloc_free(cs);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user