[Piglit] [PATCH 12/23] shader_runner: Add simple 1D and 3D texture creation commands.
Fabian Bieler
fabianbieler at fastmail.fm
Thu Nov 23 20:46:04 UTC 2017
---
tests/shaders/shader_runner.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 4dfed5d..4299e34 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -3670,6 +3670,24 @@ piglit_display(void)
else
set_texture_binding(tex, tex_obj, w, h, d);
+#ifdef PIGLIT_USE_OPENGL
+ } else if (sscanf(line,
+ "texture rgbw 1D %d",
+ &tex) == 1) {
+ glActiveTexture(GL_TEXTURE0 + tex);
+ const GLuint handle = piglit_rgbw_texture_1d();
+ set_texture_binding(tex, handle, 4, 1, 1);
+#endif
+
+#if defined(PIGLIT_USE_OPENGL) || defined(PIGLIT_USE_OPENGL_ES3)
+ } else if (sscanf(line,
+ "texture rgbw 3D %d",
+ &tex) == 1) {
+ glActiveTexture(GL_TEXTURE0 + tex);
+ const GLuint handle = piglit_rgbw_texture_3d();
+ set_texture_binding(tex, handle, 2, 2, 2);
+#endif
+
} else if (sscanf(line,
"texture rgbw 2DArray %d ( %d , %d , %d )",
&tex, &w, &h, &l) == 4) {
--
2.7.4
More information about the Piglit
mailing list