[Piglit] [PATCH 1/2] ext_transform_feedback: Fix default precision qualifiers

Iago Toral itoral at igalia.com
Sun Aug 2 23:47:48 PDT 2015


If no body has issues with these two patches I'd like to push them later
this week.

Iago

On Tue, 2015-07-28 at 13:52 +0200, Iago Toral Quiroga wrote:
> Default ES precision qualifiers for integer types in the VS and FS
> are different and that should make the test fail to compile/link
> if Mesa actually checked for these things (because it would realize
> that VS outputs and FS inputs do not have the exact same type as
> a consequence).
> 
> Fix this by setting a default precision qualifier for integers.
> ---
>  tests/spec/ext_transform_feedback/structs.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/spec/ext_transform_feedback/structs.c b/tests/spec/ext_transform_feedback/structs.c
> index 3d90bb9..c754b9f 100644
> --- a/tests/spec/ext_transform_feedback/structs.c
> +++ b/tests/spec/ext_transform_feedback/structs.c
> @@ -126,6 +126,7 @@ PIGLIT_GL_TEST_CONFIG_END
>  static const char gles3_header[] =
>  	"#version 300 es\n"
>  	"precision highp float;\n"
> +	"precision highp int;\n"
>  	"#define DECLARE_VARYING(DIR, TYPE, NAME) flat DIR TYPE NAME\n"
>  	"#define VARYING(NAME) NAME\n";
>  




More information about the Piglit mailing list