Re: [Mesa-dev] [PATCH V2 8/9] glsl: Implement overload resolution for ARB_gpu_shader5

2014-06-03 Thread Chris Forbes
OK, I'll move the various spec references into the code, cite GLSL 4.00 rather than the extension where possible, and throw in some more comments to clarify the stranger bits. Thanks for the review :) -- Chris On Wed, Jun 4, 2014 at 10:30 AM, Jordan Justen wrote: > On Sun, May 4, 2014 at 1:24

Re: [Mesa-dev] [PATCH V2 8/9] glsl: Implement overload resolution for ARB_gpu_shader5

2014-06-03 Thread Jordan Justen
On Sun, May 4, 2014 at 1:24 AM, Chris Forbes wrote: > The ARB_gpu_shader5 spec says: > > "A function definition A is considered a better > match than function definition B if: > > * for at least one function argument, the conversion for that argument > in A is better than the corresponding c

[Mesa-dev] [PATCH V2 8/9] glsl: Implement overload resolution for ARB_gpu_shader5

2014-05-04 Thread Chris Forbes
The ARB_gpu_shader5 spec says: "A function definition A is considered a better match than function definition B if: * for at least one function argument, the conversion for that argument in A is better than the corresponding conversion in B; and * there is no function argument for which