On 06:26 PM - Mar 19 2016, Ilia Mirkin wrote:
> On Sat, Mar 19, 2016 at 6:26 PM, Pierre Moreau <pierre.mor...@free.fr> wrote:
> > However, you could have some `long bar; char foo = convert_char_sat(bar);` 
> > in
> > the OpenCL kernel.
> 
> Sure, but the SPIR-V -> nv50/ir converter could be smarter about when
> it generates the converts, no?

It should be possible, but then I'm unsure what ends up in the SPIR-V ->
nv50/ir converter and what ends up in the nv50/ir backend. Should I also do
constant folding in the converter? I was assuming the backend would take care
of the optimisations, removing useless converts, but maybe my assumptions were
wrong and I have to take care of more things than just translating from SPIR-V
to nv50/ir?

Pierre

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

Attachment: signature.asc
Description: PGP signature

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

Reply via email to