summaryrefslogtreecommitdiff
path: root/tests/shaders/shader_runner.c
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-12-03 15:58:29 -0800
committerChad Versace <chad.versace@linux.intel.com>2012-12-11 12:44:50 -0600
commite88036c85e670acbb91b63c753d34aaa46a34243 (patch)
treec62f72a258aa0ebd18d13191a69362789b9fbfb9 /tests/shaders/shader_runner.c
parent7bfb545baf9ad0cafb1b11c31a66e7912b51e122 (diff)
shader_runner: Add GLES workarounds (v2)
Since piglit-dispatch does not yet support GLES, in order to build shader_runner.c against GLES3 we need some workarounds. 1. Add file shader_runner_gles_workarounds.h. 2. Let shader_runner.c include it. 3. For each GLenum used by shader_runner.c that is not found in <GLES3/gl3.h>, redefine it in shader_runner_gles_workarounds.h to have the same values as in <GL/gl*.h>. 4. For each function used by shader_runner.c that is not found in <GLES3/gl3.h>, define a macro that either * emulates that function, * or prints an error message and skips the test, just as piglit-dispatch does for unsupported functions. v2: Emulate glMapBuffer with glMapBufferRange, for Ian. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/shaders/shader_runner.c')
-rw-r--r--tests/shaders/shader_runner.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 11753f091..255d88d75 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -36,6 +36,8 @@
#include "piglit-util-gl-common.h"
#include "piglit-vbo.h"
+#include "shader_runner_gles_workarounds.h"
+
static void
get_required_versions(const char *script_name,
struct piglit_gl_test_config *config);