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

Iago Toral Quiroga itoral at igalia.com
Tue Jul 28 04:52:49 PDT 2015


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";
 
-- 
1.9.1



More information about the Piglit mailing list