[Mesa-dev] [PATCH 2/2] radv: denote support for extended storage image formats.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Wed Dec 28 08:05:17 UTC 2016


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Wed, Dec 28, 2016 at 12:30 AM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> I'm sure anv has support for these as well, but this is just
> a first use of the interface to allow different supported spir-v
> features.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/amd/vulkan/radv_pipeline.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
> index f14e5df..25d7805 100644
> --- a/src/amd/vulkan/radv_pipeline.c
> +++ b/src/amd/vulkan/radv_pipeline.c
> @@ -191,10 +191,12 @@ radv_shader_compile_to_nir(struct radv_device *device,
>                                 spec_entries[i].data = *(const uint32_t *)data;
>                         }
>                 }
> -
> +               const struct nir_spirv_supported_extensions supported_ext = {
> +                       .storage_image_extended_formats = true,
> +               };
>                 entry_point = spirv_to_nir(spirv, module->size / 4,
>                                            spec_entries, num_spec_entries,
> -                                          stage, entrypoint_name, &nir_options);
> +                                          stage, entrypoint_name, &supported_ext, &nir_options);
>                 nir = entry_point->shader;
>                 assert(nir->stage == stage);
>                 nir_validate_shader(nir);
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list