[Piglit] [PATCH 0/2] shader_runner: Add ARB_program_interface_query support

Tapani Pälli tapani.palli at intel.com
Wed Sep 16 23:53:20 PDT 2015


On 09/16/2015 11:31 AM, Samuel Iglesias Gonsalvez wrote:
> Hello,
>
> Following my idea described here [0], I modified shader_runner to accept
> other program interfaces.
>
> The format of the command is:
>
>   active program_interface GL_INTERFACE_TYPE_ENUM var_name GL_PROPS_ENUM integer
>
> or, if we include the GL type enum:
>
>   active program_interface GL_INTERFACE_TYPE_ENUM var_name GL_PROPS_ENUM GL_TYPE_ENUM
>
> Some examples:
>
> active program_interface GL_UNIFORM i1 GL_MATRIX_STRIDE 0
> active program_interface GL_UNIFORM i1 GL_IS_ROW_MAJOR 0
> active program_interface GL_PROGRAM_OUTPUT piglit_fragcolor GL_TYPE GL_FLOAT_VEC4
> active program_interface GL_PROGRAM_INPUT piglit_vertex GL_TYPE GL_FLOAT_VEC4

 From user/reader perspective it is not obvious what 'active 
program_interface' does. I think it should have something like 
'validate' or 'query' in it so that reader knows what is going on. These 
sounds more like setters now than queries? Also, why 'active', you can't 
query inactive ones?

Otherwise, I think it is fine addition if it helps in writing more tests.


> What do you think?
>
> Thanks,
>
> Sam
>
> [0] http://lists.freedesktop.org/archives/piglit/2015-September/017080.html
>
> Samuel Iglesias Gonsalvez (2):
>    shader_runner: make active_uniforms's all_types variable be global
>    shader_runner: Add ARB_program_interface_query support
>
>   tests/shaders/shader_runner.c | 322 ++++++++++++++++++++++++++++++++----------
>   1 file changed, 244 insertions(+), 78 deletions(-)
>


// Tapani


More information about the Piglit mailing list