[Piglit] [PATCH 1/3] ati_fs: Wrap some comments in render tests.

Eric Anholt eric at anholt.net
Thu Dec 7 20:08:09 UTC 2017


This would be squashed into patch 2.
---
 tests/spec/ati_fragment_shader/render-default.c    | 7 +++++--
 tests/spec/ati_fragment_shader/render-sources.c    | 7 +++++--
 tests/spec/ati_fragment_shader/render-textargets.c | 3 ++-
 3 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/tests/spec/ati_fragment_shader/render-default.c b/tests/spec/ati_fragment_shader/render-default.c
index a2e2cecfffeb..89e8cb09d13e 100644
--- a/tests/spec/ati_fragment_shader/render-default.c
+++ b/tests/spec/ati_fragment_shader/render-default.c
@@ -22,7 +22,8 @@
  */
 
 /**
- * Tests rendering with GL_ATI_fragment_shader: enable, disable, default fragment shader.
+ * Tests rendering with GL_ATI_fragment_shader: enable, disable,
+ * default fragment shader.
  */
 
 #include "piglit-util-gl.h"
@@ -76,7 +77,9 @@ piglit_init(int argc, char **argv)
 {
 	piglit_require_extension("GL_ATI_fragment_shader");
 
-	/* create a default shader that does something different than fixed-function */
+	/* create a default shader that does something different than
+	 * fixed-function
+	 */
 	glBeginFragmentShaderATI();
 	glPassTexCoordATI(GL_REG_1_ATI, GL_TEXTURE0_ARB, GL_SWIZZLE_STR_ATI);
 	glColorFragmentOp1ATI(GL_MOV_ATI, GL_REG_0_ATI, GL_NONE, GL_NONE,
diff --git a/tests/spec/ati_fragment_shader/render-sources.c b/tests/spec/ati_fragment_shader/render-sources.c
index be0de33073c7..da70b0cce14c 100644
--- a/tests/spec/ati_fragment_shader/render-sources.c
+++ b/tests/spec/ati_fragment_shader/render-sources.c
@@ -81,7 +81,8 @@ piglit_display(void)
 	piglit_draw_rect(3 * piglit_width / 4, 0, piglit_width / 4, piglit_height);
 	glDisable(GL_FRAGMENT_SHADER_ATI);
 
-	/* Mesa uses fixed-function when the shader is invalid, but it's undefined */
+	/* Mesa uses fixed-function when the shader is invalid, but
+	 * it's undefined */
 	/*pass = pass && piglit_probe_rect_rgb(0, 0, piglit_width / 4, piglit_height, color1*texcolor);*/
 	pass = pass && piglit_probe_rect_rgb(piglit_width / 4, 0, piglit_width / 4, piglit_height, result6);
 	pass = pass && piglit_probe_rect_rgb(2 * piglit_width / 4, 0, piglit_width / 4, piglit_height, result42);
@@ -101,7 +102,9 @@ piglit_init(int argc, char **argv)
 
 	piglit_require_extension("GL_ATI_fragment_shader");
 
-	/* create shaders that use all possible input sources: texcoord, sample, const, zero, one, pri&sec color */
+	/* create shaders that use all possible input sources:
+	 * texcoord, sample, const, zero, one, pri&sec color
+	 */
 
 	glBindFragmentShaderATI(13);
 	glBeginFragmentShaderATI();
diff --git a/tests/spec/ati_fragment_shader/render-textargets.c b/tests/spec/ati_fragment_shader/render-textargets.c
index 88fec9742b4a..82cfd7a4d181 100644
--- a/tests/spec/ati_fragment_shader/render-textargets.c
+++ b/tests/spec/ati_fragment_shader/render-textargets.c
@@ -22,7 +22,8 @@
  */
 
 /**
- * Tests rendering with GL_ATI_fragment_shader: using different texture targets with the same shader.
+ * Tests rendering with GL_ATI_fragment_shader: using different
+ * texture targets with the same shader.
  */
 
 #include "piglit-util-gl.h"
-- 
2.15.0



More information about the Piglit mailing list