Re: [Mesa-dev] [PATCH v2 04/31] glsl: make component_slots() returns 2 for samplers/images

2017-04-26 Thread Samuel Pitoiset
On 04/26/2017 11:44 AM, Timothy Arceri wrote: On 26/04/17 17:47, Samuel Pitoiset wrote: On 04/26/2017 03:46 AM, Timothy Arceri wrote: On 24/04/17 20:35, Samuel Pitoiset wrote: Bindless samplers/images are 64-bit unsigned integers, which means they consume two components as specified by

Re: [Mesa-dev] [PATCH v2 04/31] glsl: make component_slots() returns 2 for samplers/images

2017-04-26 Thread Timothy Arceri
On 26/04/17 17:47, Samuel Pitoiset wrote: On 04/26/2017 03:46 AM, Timothy Arceri wrote: On 24/04/17 20:35, Samuel Pitoiset wrote: Bindless samplers/images are 64-bit unsigned integers, which means they consume two components as specified by ARB_bindless_texture. It looks like we are not

Re: [Mesa-dev] [PATCH v2 04/31] glsl: make component_slots() returns 2 for samplers/images

2017-04-26 Thread Samuel Pitoiset
On 04/26/2017 09:10 AM, Nicolai Hähnle wrote: On 24.04.2017 12:35, Samuel Pitoiset wrote: Bindless samplers/images are 64-bit unsigned integers, which means they consume two components as specified by ARB_bindless_texture. It looks like we are not wasting uniform storage by changing this

Re: [Mesa-dev] [PATCH v2 04/31] glsl: make component_slots() returns 2 for samplers/images

2017-04-26 Thread Samuel Pitoiset
On 04/26/2017 03:46 AM, Timothy Arceri wrote: On 24/04/17 20:35, Samuel Pitoiset wrote: Bindless samplers/images are 64-bit unsigned integers, which means they consume two components as specified by ARB_bindless_texture. It looks like we are not wasting uniform storage by changing this

Re: [Mesa-dev] [PATCH v2 04/31] glsl: make component_slots() returns 2 for samplers/images

2017-04-26 Thread Nicolai Hähnle
On 24.04.2017 12:35, Samuel Pitoiset wrote: Bindless samplers/images are 64-bit unsigned integers, which means they consume two components as specified by ARB_bindless_texture. It looks like we are not wasting uniform storage by changing this because default-block uniforms are not packed. So,

Re: [Mesa-dev] [PATCH v2 04/31] glsl: make component_slots() returns 2 for samplers/images

2017-04-25 Thread Timothy Arceri
On 24/04/17 20:35, Samuel Pitoiset wrote: Bindless samplers/images are 64-bit unsigned integers, which means they consume two components as specified by ARB_bindless_texture. It looks like we are not wasting uniform storage by changing this because default-block uniforms are not packed. So,

[Mesa-dev] [PATCH v2 04/31] glsl: make component_slots() returns 2 for samplers/images

2017-04-24 Thread Samuel Pitoiset
Bindless samplers/images are 64-bit unsigned integers, which means they consume two components as specified by ARB_bindless_texture. It looks like we are not wasting uniform storage by changing this because default-block uniforms are not packed. So, if we use N uint uniforms, they occupy N * 16