Re: [Mesa-dev] [PATCH 2/5] glsl: add support for the imageSize builtin

2015-08-11 Thread Martin Peres
On 11/08/15 19:52, Ilia Mirkin wrote: On Tue, Aug 11, 2015 at 12:43 PM, Martin Peres wrote: The code is heavily inspired from Francisco Jerez's code supporting the image_load_store extension. I moved out image_types[] out of builtin_builder::add_image_function to share it with the newly-added

Re: [Mesa-dev] [PATCH 2/5] glsl: add support for the imageSize builtin

2015-08-11 Thread Ilia Mirkin
On Tue, Aug 11, 2015 at 12:43 PM, Martin Peres wrote: > The code is heavily inspired from Francisco Jerez's code supporting the > image_load_store extension. > > I moved out image_types[] out of builtin_builder::add_image_function to > share it with the newly-added builtin_builder::add_image_size_

[Mesa-dev] [PATCH 2/5] glsl: add support for the imageSize builtin

2015-08-11 Thread Martin Peres
The code is heavily inspired from Francisco Jerez's code supporting the image_load_store extension. I moved out image_types[] out of builtin_builder::add_image_function to share it with the newly-added builtin_builder::add_image_size_functions. Backends willing to support this builtin should hand