g-truc/ogl-samples

gl-430-caps differences from spec

NeilMonday opened this issue · 4 comments

In the gl-430-caps project I noticed some differences between the code's minimum values and the spec's minimum values. This is the document I was using for comparison, which I assume is the most recent for OpenGL 4.3 (http://www.opengl.org/registry/doc/glspec43.core.20130214.pdf).

First, page 564 says that MAX_GEOMETRY_UNIFORM_COMPONENTS has a minimum value of 512.

Next, page 566 says that MAX_COMPUTE_UNIFORM_COMPONENTS has a minimum value of 512.

Finally, page 566 also says that MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS does not have a defined minimum value (all other MAX_COMBINED_[stage]_UNIFORM_COMPONENTS follow the formula from Table 23.66 on page 570 except for MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS).

Hi Neil,

I really wonder how I peaked up 1024. Yes that wrong, it should be 512.
For MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS, here is what the extension spec http://www.opengl.org/registry/specs/ARB/compute_shader.txt says in "Implementation Dependent Compute Shader Limits":

MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS: Number of words for compute shader uniform variables in all uniform blocks, including the default

Thanks,
Christophe

Hello Christophe,

I think there has been a misunderstanding. Only MAX_GEOMETRY_UNIFORM_COMPONENTS and MAX_COMPUTE_UNIFORM_COMPONENTS should be 512, all others should be 1024 like you had before. See pages 561 - 566.

Good eye for finding MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS. I never even thought to look there.

Neil

Oh... that doesn't make any sense but yes you are right.

I fill a spec bug, I can't believe that's right.
Sample updated!

Thanks,
Christophe

Could you also add a gl-430-caps.png to the data/templates/amd directory. I just copied one of the other caps png images (gl-420-caps.png) and renamed it to gl-430-caps.png.

Thanks,
Neil