[Mesa-dev] NIR issue with SPIRV ops that have operands with different bit-size
Neil Roberts
nroberts at igalia.com
Tue Apr 24 16:34:08 UTC 2018
Rob Clark <robdclark at gmail.com> writes:
> Karol hit the same thing (with for example, shift instructions) with
> the work for spv compute/kernel support. I *think* the number of
> special cases isn't too high, so probably vtn should just insert the
> appropriate conversion instruction (ie. u2u32, etc) so that if the src
> bitsize is incorrect it will be converted.
For what it’s worth, I also added a conversion instruction like this for
the Refract GLSL extension opcode because its eta argument can have a
different size:
https://github.com/Igalia/mesa/commit/608d70bc02a968ee2b21a5db0f54
Regards,
- Neil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180424/c2ba5f53/attachment.sig>
More information about the mesa-dev
mailing list