[Mesa-dev] [PATCH 1/2] spirv: allow specialization constants with bitsize different than 32 bits

Ian Romanick idr at freedesktop.org
Tue Nov 28 21:10:41 UTC 2017


This patch is

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 11/20/2017 10:25 PM, Samuel Iglesias Gonsálvez wrote:
> Signed-off-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
> ---
>  src/compiler/spirv/spirv_to_nir.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
> index 027efab88d7..2cc3c275ea9 100644
> --- a/src/compiler/spirv/spirv_to_nir.c
> +++ b/src/compiler/spirv/spirv_to_nir.c
> @@ -1361,7 +1361,6 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
>                 vtn_value(b, w[4 + i], vtn_value_type_constant)->constant;
>  
>              unsigned j = swap ? 1 - i : i;
> -            assert(bit_size == 32);
>              src[j] = c->values[0];
>           }
>  
> 



More information about the mesa-dev mailing list