[Mesa-dev] [PATCH 08/45] spirv/nir: Add support for SPV_KHR_16bit_storage
Eduardo Lima Mitev
elima at igalia.com
Fri Aug 18 11:40:16 UTC 2017
On 08/17/2017 09:09 PM, Jason Ekstrand wrote:
> This should come after 10
>
Right, fixed locally for v2.
> On Thu, Jul 13, 2017 at 7:35 AM, Alejandro PiƱeiro <apinheiro at igalia.com
> <mailto:apinheiro at igalia.com>> wrote:
>
> From: Eduardo Lima Mitev <elima at igalia.com <mailto: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 <mailto:mesa-dev at lists.freedesktop.org>
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> <https://lists.freedesktop.org/mailman/listinfo/mesa-dev>
>
>
>
>
> _______________________________________________
> 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