[Piglit] [PATCH] arb_explicit_uniform_location: test explicit location for a sampler

Chris Forbes chrisf at ijw.co.nz
Mon Aug 25 14:32:59 PDT 2014


Either with or without the reduction in version requirements [to ~1.30
+ ARB_explicit_attrib_location + ARB_explicit_uniform_location] that
we discussed in IRC;

Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>

On Fri, Aug 22, 2014 at 5: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
>


More information about the Piglit mailing list