[Piglit] [PATCH 6/8] ext_texture_array: Add sampler2DArray precision for GL ES 3.0

Daniel Kurtz djkurtz at chromium.org
Mon Jan 6 08:02:41 PST 2014


>From GLSL_ES_Specification_3.0 [0]:

There is no default precision qualifier for the following sampler types in
either the vertex or fragment language:
   sampler2DArray

[0] http://www.khronos.org/registry/gles/specs/3.0/GLSL_ES_Specification_3.00.4.pdf

Signed-off-by: Daniel Kurtz <djkurtz at chromium.org>
---
 tests/spec/ext_texture_array/compressed.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/spec/ext_texture_array/compressed.c b/tests/spec/ext_texture_array/compressed.c
index 7f87b62..dc412e6 100644
--- a/tests/spec/ext_texture_array/compressed.c
+++ b/tests/spec/ext_texture_array/compressed.c
@@ -116,6 +116,7 @@ static const char fs_text[] =
 #else // PIGLIT_USE_OPENGL_ES3
 	"#version 300 es\n"
 	"precision mediump float;\n"
+	"precision mediump sampler2DArray;\n"
 	"#define piglit_in in\n"
 	"#define piglit_texture2DArray texture\n"
 	"out vec4 piglit_FragColor;\n"
-- 
1.8.5.1



More information about the Piglit mailing list