[Piglit] [PATCH] arb_explicit_uniform_location: test explicit location for a sampler
Anuj Phogat
anuj.phogat at gmail.com
Mon Aug 25 14:19:48 PDT 2014
On Thu, Aug 21, 2014 at 10:04 PM, Tapani Pälli <tapani.palli at intel.com> wrote:
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82921
> ---
> .../linker/set-location-to-sampler.shader_test | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
> create mode 100644 tests/spec/arb_explicit_uniform_location/linker/set-location-to-sampler.shader_test
>
> diff --git a/tests/spec/arb_explicit_uniform_location/linker/set-location-to-sampler.shader_test b/tests/spec/arb_explicit_uniform_location/linker/set-location-to-sampler.shader_test
> new file mode 100644
> index 0000000..c2716e3
> --- /dev/null
> +++ b/tests/spec/arb_explicit_uniform_location/linker/set-location-to-sampler.shader_test
> @@ -0,0 +1,22 @@
> +#
> +# Tests that an opaque type (sampler) gets a location succesfully
> +#
> +[require]
> +GL >= 3.3
> +GLSL >= 3.30
> +GL_ARB_explicit_uniform_location
> +
> +[vertex shader passthrough]
> +
> +[fragment shader]
> +#version 330
> +#extension GL_ARB_explicit_uniform_location: require
> +layout(location = 0) uniform sampler2D tex;
> +out vec4 color;
> +void main()
> +{
> + color = texture(tex, vec2(0.0, 0.0));
> +}
> +
> +[test]
> +link success
> --
> 1.9.3
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
More information about the Piglit
mailing list