Re: [Mesa-dev] [PATCH v2] spirv: convert some operands for bitwise shift and bitwise ops to uint32

2018-05-02 Thread Jason Ekstrand
On Wed, May 2, 2018 at 1:10 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > SPIR-V allows to define the shift, offset and count operands for > shift and bitfield opcodes with a bit-size different than 32 bits, > but in NIR the opcodes have that limitation. As agreed in the >

[Mesa-dev] [PATCH v2] spirv: convert some operands for bitwise shift and bitwise ops to uint32

2018-05-02 Thread Samuel Iglesias Gonsálvez
SPIR-V allows to define the shift, offset and count operands for shift and bitfield opcodes with a bit-size different than 32 bits, but in NIR the opcodes have that limitation. As agreed in the mailing list, this patch adds a conversion to 32 bits to fix this. For more info, see: