[Mesa-dev] [PATCH 08/45] spirv/nir: Add support for SPV_KHR_16bit_storage

Jason Ekstrand jason at jlekstrand.net
Thu Aug 17 19:09:12 UTC 2017


This should come after 10

On Thu, Jul 13, 2017 at 7:35 AM, Alejandro PiƱeiro <apinheiro at igalia.com>
wrote:

> From: Eduardo Lima Mitev <elima at igalia.com>
>
> ---
>  src/compiler/spirv/nir_spirv.h    | 1 +
>  src/compiler/spirv/spirv_to_nir.c | 7 +++++++
>  2 files changed, 8 insertions(+)
>
> diff --git a/src/compiler/spirv/nir_spirv.h b/src/compiler/spirv/nir_
> spirv.h
> index 7f16866..89e6672 100644
> --- a/src/compiler/spirv/nir_spirv.h
> +++ b/src/compiler/spirv/nir_spirv.h
> @@ -51,6 +51,7 @@ struct nir_spirv_supported_extensions {
>     bool image_write_without_format;
>     bool int64;
>     bool multiview;
> +   bool storage_16bit;
>  };
>
>  nir_function *spirv_to_nir(const uint32_t *words, size_t word_count,
> diff --git a/src/compiler/spirv/spirv_to_nir.c
> b/src/compiler/spirv/spirv_to_nir.c
> index 763dbf4..c66bf34 100644
> --- a/src/compiler/spirv/spirv_to_nir.c
> +++ b/src/compiler/spirv/spirv_to_nir.c
> @@ -2763,6 +2763,13 @@ vtn_handle_preamble_instruction(struct vtn_builder
> *b, SpvOp opcode,
>           spv_check_supported(multiview, cap);
>           break;
>
> +      case SpvCapabilityStorageUniformBufferBlock16:
> +      case SpvCapabilityStorageUniform16:
> +      case SpvCapabilityStoragePushConstant16:
> +      case SpvCapabilityStorageInputOutput16:
> +         spv_check_supported(storage_16bit, cap);
> +         break;
> +
>        default:
>           unreachable("Unhandled capability");
>        }
> --
> 2.9.3
>
> _______________________________________________
> 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/20170817/13ee4954/attachment.html>


More information about the mesa-dev mailing list