Oh, I sent a similar patch earlier yersterday:

https://lists.freedesktop.org/archives/mesa-dev/2016-May/117119.html

FWIW, there is another instance of this warning in freedreno/ir3.

Eduardo

On 05/18/2016 04:36 AM, Jason Ekstrand wrote:
> 
> 
> On Tue, May 17, 2016 at 6:30 PM, Brian Paul <bri...@vmware.com
> <mailto:bri...@vmware.com>> wrote:
> 
>     To silence 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 | 1 +
>      1 file changed, 1 insertion(+)
> 
>     diff --git a/src/compiler/spirv/spirv_to_nir.c
>     b/src/compiler/spirv/spirv_to_nir.c
>     index c65f971..610044a 100644
>     --- a/src/compiler/spirv/spirv_to_nir.c
>     +++ b/src/compiler/spirv/spirv_to_nir.c
>     @@ -1404,6 +1404,7 @@ vtn_handle_texture(struct vtn_builder *b,
>     SpvOp opcode,
>            break;
>         case nir_texop_txf:
>         case nir_texop_txf_ms:
>     +   case nir_texop_txf_ms_mcs:
> 
> 
> Really, that should go in it's own section of the switch with an
> unreachable()
>  
> 
>         case nir_texop_txs:
>         case nir_texop_lod:
>         case nir_texop_tg4:
>     --
>     1.9.1
> 
>     _______________________________________________
>     mesa-dev mailing list
>     mesa-dev@lists.freedesktop.org <mailto:mesa-dev@lists.freedesktop.org>
>     https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 
> 
> 
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to