diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2016-05-25 14:37:50 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2016-05-31 11:47:16 -0700 |
commit | 7e67bbac72f85db494103fffe38e979d1fddcdc5 (patch) | |
tree | 1f7951cf031575b8915879981a8fa8c3e6187c26 /tests/spec/arb_program_interface_query | |
parent | 1ea15c92fa41cbe62bd32e77b616e2560107a34f (diff) |
arb_program_interface_query: Expect array suffixes on array inputs / outputs
The ARB_program_interface_query spec says:
* For an active variable declared as an array of basic types, a single
entry will be generated, with its name string formed by concatenating
the name of the array and the string "[0]".
I can find no language that implies that geometry or tessellation inputs
or tessellation control outputs should be excluded from this rule.
Various dEQP tests also expect [0] be added to geometry shader inputs.
This appears to match the behavior expected by a GeForce GT
430/PCIe/SSE2 using NVIDIA 355.11 drivers.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
Cc: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'tests/spec/arb_program_interface_query')
-rwxr-xr-x | tests/spec/arb_program_interface_query/resource-query.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/spec/arb_program_interface_query/resource-query.c b/tests/spec/arb_program_interface_query/resource-query.c index d249e1b3d..d16c09259 100755 --- a/tests/spec/arb_program_interface_query/resource-query.c +++ b/tests/spec/arb_program_interface_query/resource-query.c @@ -208,15 +208,15 @@ static const char *st_r_tess_uniform_block[] = {"tcs_uniform_block", "tes_uniform_block", NULL}; static const char *st_r_cs_uniform_block[] = {"cs_uniform_block", NULL}; static const char *st_r_in_vs[] = {"vs_input0", "vs_input1", NULL}; -static const char *st_r_in_gs[] = {"gs_input", "gl_PerVertex.gl_Position", NULL}; +static const char *st_r_in_gs[] = {"gs_input[0]", "gl_PerVertex.gl_Position", NULL}; static const char *st_r_in_fs[] = {"fs_input1", NULL}; -static const char *st_r_in_tes[] = {"tes_input", "gl_PerVertex.gl_Position", NULL}; -static const char *st_r_in_tcs[] = {"tcs_input", "gl_PerVertex.gl_Position", NULL}; +static const char *st_r_in_tes[] = {"tes_input[0]", "gl_PerVertex.gl_Position", NULL}; +static const char *st_r_in_tcs[] = {"tcs_input[0]", "gl_PerVertex.gl_Position", NULL}; static const char *st_r_out_vs[] = {"gl_Position", NULL}; static const char *st_r_out_gs[] = {"gs_output0", "gl_Position", NULL}; static const char *st_r_out_fs[] = {"fs_output0", "fs_output1", NULL}; static const char *st_r_out_tes[] = {"tes_output[0]", "gl_Position", NULL}; -static const char *st_r_out_tcs[] = {"tcs_output", "tcs_patch", +static const char *st_r_out_tcs[] = {"tcs_output[0]", "tcs_patch", "gl_PerVertex.gl_Position", "gl_PerVertex.gl_BackColor", "gl_PerVertex.gl_BackSecondaryColor", |