[Mesa-dev] [PATCH] radv: make sure to init the DCC decompress compute path state

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Mon Jun 17 09:22:54 UTC 2019


R-b

On Thu, Jun 13, 2019, 12:40 PM Samuel Pitoiset <samuel.pitoiset at gmail.com>
wrote:

> This fixes a segfault when forcing DCC decompressions on compute
> because internal meta objects are not created since the on-demand
> stuff.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_meta_fast_clear.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/src/amd/vulkan/radv_meta_fast_clear.c
> b/src/amd/vulkan/radv_meta_fast_clear.c
> index 8f97c1a8f15..176f9803b45 100644
> --- a/src/amd/vulkan/radv_meta_fast_clear.c
> +++ b/src/amd/vulkan/radv_meta_fast_clear.c
> @@ -753,6 +753,14 @@ radv_decompress_dcc_compute(struct radv_cmd_buffer
> *cmd_buffer,
>         state->flush_bits |= RADV_CMD_FLAG_FLUSH_AND_INV_CB |
>                              RADV_CMD_FLAG_FLUSH_AND_INV_CB_META;
>
> +       if
> (!cmd_buffer->device->meta_state.fast_clear_flush.cmask_eliminate_pipeline)
> {
> +               VkResult ret =
> radv_device_init_meta_fast_clear_flush_state_internal(cmd_buffer->device);
> +               if (ret != VK_SUCCESS) {
> +                       cmd_buffer->record_result = ret;
> +                       return;
> +               }
> +       }
> +
>         radv_meta_save(&saved_state, cmd_buffer,
> RADV_META_SAVE_DESCRIPTORS |
>
>  RADV_META_SAVE_COMPUTE_PIPELINE);
>
> --
> 2.22.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190617/f8a297ea/attachment.html>


More information about the mesa-dev mailing list