[Piglit] [PATCH 3/3] arb_bindless_texture: rename vertex uniform test and add vertex attrib test

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Apr 10 20:43:20 UTC 2018


Same comment as the previous one. Images need to be tested.

On 04/08/2018 10:56 PM, Karol Herbst wrote:
> Signed-off-by: Karol Herbst <kherbst at redhat.com>
> ---
>   .../sampler-vertex-attrib-input-output.shader_test | 41 ++++++++++++++++++++++
>   ...ampler-vertex-uniform-input-output.shader_test} |  0
>   2 files changed, 41 insertions(+)
>   create mode 100644 tests/spec/arb_bindless_texture/execution/samplers/sampler-vertex-attrib-input-output.shader_test
>   rename tests/spec/arb_bindless_texture/execution/samplers/{sampler-input-output.shader_test => sampler-vertex-uniform-input-output.shader_test} (100%)
> 
> diff --git a/tests/spec/arb_bindless_texture/execution/samplers/sampler-vertex-attrib-input-output.shader_test b/tests/spec/arb_bindless_texture/execution/samplers/sampler-vertex-attrib-input-output.shader_test
> new file mode 100644
> index 000000000..00005187b
> --- /dev/null
> +++ b/tests/spec/arb_bindless_texture/execution/samplers/sampler-vertex-attrib-input-output.shader_test
> @@ -0,0 +1,41 @@
> +# In this test, the sampler to use is selected in a vertex shader, passed
> +# to the fragment shader as a (flat) input, and then used for a texture
> +# lookup.
> +[require]
> +GL >= 3.3
> +GLSL >= 3.30
> +GL_ARB_bindless_texture
> +
> +[vertex shader]
> +#version 330
> +#extension GL_ARB_bindless_texture: require
> +
> +in sampler2D tex;
> +in vec4 piglit_vertex;
> +
> +flat out sampler2D sampler_vs;
> +
> +void main()
> +{
> +	gl_Position = piglit_vertex;
> +	sampler_vs = tex;
> +}
> +
> +[fragment shader]
> +#version 330
> +#extension GL_ARB_bindless_texture: require
> +
> +flat in sampler2D sampler_vs;
> +out vec4 color;
> +
> +void main()
> +{
> +	color = texture2D(sampler_vs, vec2(0, 0));
> +}
> +
> +[test]
> +texture rgbw 0 (16, 16)
> +resident texture 0
> +vertex attrib handle tex 0
> +draw rect -1 -1 2 2
> +relative probe rgb (0.0, 0.0) (1.0, 0.0, 0.0)
> diff --git a/tests/spec/arb_bindless_texture/execution/samplers/sampler-input-output.shader_test b/tests/spec/arb_bindless_texture/execution/samplers/sampler-vertex-uniform-input-output.shader_test
> similarity index 100%
> rename from tests/spec/arb_bindless_texture/execution/samplers/sampler-input-output.shader_test
> rename to tests/spec/arb_bindless_texture/execution/samplers/sampler-vertex-uniform-input-output.shader_test
> 


More information about the Piglit mailing list