[Mesa-dev] [PATCH] spirv: add switch case for nir_texop_txf_ms_mcs in vtn_handle_texture()

Jason Ekstrand jason at jlekstrand.net
Wed May 18 14:41:47 UTC 2016


R-b
On May 18, 2016 5:59 AM, "Brian Paul" <brianp at vmware.com> wrote:

> Mark it as unreachable.  Silences a compiler warning:
>
> spirv/spirv_to_nir.c:1397:4: warning: enumeration value
> 'nir_texop_txf_ms_mcs' not handled in switch [-Wswitch]
>     switch (instr->op) {
>     ^
> ---
>  src/compiler/spirv/spirv_to_nir.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/compiler/spirv/spirv_to_nir.c
> b/src/compiler/spirv/spirv_to_nir.c
> index c65f971..fa13f42 100644
> --- a/src/compiler/spirv/spirv_to_nir.c
> +++ b/src/compiler/spirv/spirv_to_nir.c
> @@ -1413,6 +1413,8 @@ vtn_handle_texture(struct vtn_builder *b, SpvOp
> opcode,
>        /* These don't */
>        instr->sampler = NULL;
>        break;
> +   case nir_texop_txf_ms_mcs:
> +      unreachable("unexpected nir_texop_txf_ms_mcs");
>     }
>
>     nir_ssa_dest_init(&instr->instr, &instr->dest,
> --
> 1.9.1
>
> _______________________________________________
> 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/20160518/1e4586a2/attachment.html>


More information about the mesa-dev mailing list