[Piglit] [PATCH 07/13] util/minmax: Add preprocessor guards for OpenGL-specific functions
Chad Versace
chad.versace at linux.intel.com
Tue Nov 27 17:52:05 PST 2012
Only define piglit_test_oq_bits() and piglit_test_tf_bits() if the feature
macro PIGLIT_USE_OPENGL is defined. This will allow us to use
minmax-test.c for libpiglitutil_gles3.
Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
tests/util/minmax-test.c | 2 ++
tests/util/minmax-test.h | 3 +++
2 files changed, 5 insertions(+)
diff --git a/tests/util/minmax-test.c b/tests/util/minmax-test.c
index 4d2de36..2f8e413 100644
--- a/tests/util/minmax-test.c
+++ b/tests/util/minmax-test.c
@@ -174,6 +174,7 @@ void piglit_test_min_viewport_dimensions(void)
dims[1] >= min_h);
}
+#ifdef PIGLIT_USE_OPENGL
void
piglit_test_oq_bits()
{
@@ -247,3 +248,4 @@ piglit_test_tf_bits(GLenum target)
piglit_minmax_pass = false;
}
}
+#endif /*PIGLIT_USE_OPENGL*/
diff --git a/tests/util/minmax-test.h b/tests/util/minmax-test.h
index 698b9e6..986ac8d 100644
--- a/tests/util/minmax-test.h
+++ b/tests/util/minmax-test.h
@@ -29,5 +29,8 @@ void piglit_test_min_float(GLenum token, GLfloat val);
void piglit_test_max_float(GLenum token, GLfloat val);
void piglit_test_range_float(GLenum token, GLfloat low, GLfloat high);
void piglit_test_min_viewport_dimensions();
+
+#ifdef PIGLIT_USE_OPENGL
void piglit_test_oq_bits(void);
void piglit_test_tf_bits(GLenum target);
+#endif
--
1.7.11.7
More information about the Piglit
mailing list