[Piglit] [PATCH 20/24] gen_builtin_packing_tests.py: Make docstring a proper docstring

Dylan Baker baker.dylan.c at gmail.com
Mon Nov 24 09:58:20 PST 2014


Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 generated_tests/gen_builtin_packing_tests.py | 30 +++++++++++-----------------
 1 file changed, 12 insertions(+), 18 deletions(-)

diff --git a/generated_tests/gen_builtin_packing_tests.py b/generated_tests/gen_builtin_packing_tests.py
index 7273345..e024139 100644
--- a/generated_tests/gen_builtin_packing_tests.py
+++ b/generated_tests/gen_builtin_packing_tests.py
@@ -31,24 +31,18 @@ import mako.runtime
 from mako.template import Template
 from numpy import int8, int16, uint8, uint16, uint32, float32
 
-# ----------------------------------------------------------------------------
-# Overview
-# ----------------------------------------------------------------------------
-#
-# This scripts generates tests for the GLSL packing functions, such as
-# packSnorm2x16.
-#
-# In the test templates below, observe that the GLSL function's actual output
-# is compared against multiple expected outputs.  Given an input and
-# a pack/unpackfunction, there exist multiple valid outputs because the GLSL
-# specs permit variation in the implementation of the function. The actual
-# output is dependent on the GLSL compiler's and hardware's choice of rounding
-# mode (for example, to even or to nearest) and handling of subnormal (also
-# called denormalized) floating point numbers.
-
-# ----------------------------------------------------------------------------
-# Templates for test files
-# ----------------------------------------------------------------------------
+"""This scripts generates tests for the GLSL packing functions, such as
+packSnorm2x16.
+
+In the test templates below, observe that the GLSL function's actual output is
+compared against multiple expected outputs.  Given an input and a
+pack/unpackfunction, there exist multiple valid outputs because the GLSL specs
+permit variation in the implementation of the function. The actual output is
+dependent on the GLSL compiler's and hardware's choice of rounding mode (for
+example, to even or to nearest) and handling of subnormal (also called
+denormalized) floating point numbers.
+
+"""
 
 # Test evaluation of constant pack2x16 expressions.
 const_pack_template = Template(dedent("""\
-- 
2.1.3



More information about the Piglit mailing list