Re: [Mesa-dev] How to get uniform components used by uniform variables

2016-02-22 Thread Juan A. Suarez Romero
On Mon, 2016-02-22 at 14:13 +0200, Tapani Pälli wrote: > > So rather than reporting the number of uniform components it is > > consuming, is reporting the bytes used in the layout. > > > > Ah right, I see. Maybe you can query OFFSET then, this should differ  > then when matrix has a different type

Re: [Mesa-dev] How to get uniform components used by uniform variables

2016-02-22 Thread Tapani Pälli
On 02/22/2016 02:02 PM, Juan A. Suarez Romero wrote: On Mon, 2016-02-22 at 13:47 +0200, Tapani Pälli wrote: Maybe one way would be to include these matrices in UBO or SSBO and then query BUFFER_DATA_SIZE for that buffer. That should return "implementation-dependent minimum total buffer object

Re: [Mesa-dev] How to get uniform components used by uniform variables

2016-02-22 Thread Juan A. Suarez Romero
On Mon, 2016-02-22 at 13:47 +0200, Tapani Pälli wrote: > Maybe one way would be to include these matrices in UBO or SSBO and > then  > query BUFFER_DATA_SIZE for that buffer. That should return  > "implementation-dependent minimum total buffer object size". > > https://www.opengl.org/registry/spec

Re: [Mesa-dev] How to get uniform components used by uniform variables

2016-02-22 Thread Tapani Pälli
On 02/22/2016 01:39 PM, Juan A. Suarez Romero wrote: Hello. I'm working on providing piglit with tests for the GL_ARB_gpu_shader_fp64 extension[1]. One of the modifications it does is referring uniform variables: "Modify Section 2.14.4, Uniform Variables, p. 89 (modify third paragraph, p.

[Mesa-dev] How to get uniform components used by uniform variables

2016-02-22 Thread Juan A. Suarez Romero
Hello. I'm working on providing piglit with tests for the GL_ARB_gpu_shader_fp64 extension[1]. One of the modifications it does is referring uniform variables: "Modify Section 2.14.4, Uniform Variables, p. 89 (modify third paragraph, p. 90) ... uniform variable storage for vertex shader.  A un