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

Samuel Iglesias Gonsálvez siglesias at igalia.com
Tue Nov 28 10:05:32 UTC 2017


This patch series is still unreviewed.

Sam

On Tue, 2017-11-21 at 07:25 +0100, 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