Re: [Mesa-dev] [PATCH] nv50/ir: don't consider the main compute function as taking arguments

2019-07-26 Thread Karol Herbst
I think this was there for generic support for functions actually and that for OpenCL + TGSI the idea was to not inline everything by default, so return values were handled there as well. The proper way to handle is, to declare kernel inputs as real inputs, because kernel inputs are fundamentally

[Mesa-dev] [PATCH] nv50/ir: don't consider the main compute function as taking arguments

2019-07-25 Thread Ilia Mirkin
With OpenCL, kernels can take arguments and return values (?). However in practice, there is no more TGSI compute implementation, and even if there were, it would probably have named functions and no explicit main. This improves RA considerably for compute shaders, since temps are not kept around