On 12/31/2012 12:14 PM, Paul Berry wrote:
This patch adds compressed representations of uniform grayscale images
to piglit, in the ETC1 and FXT1 compression formats. Although they
don't exercise the full capabilities of these compression formats,
they should be sufficient to create basic tests of compression
functionality without having to rely on the GL implementation to do
compression on the fly.
---
tests/util/piglit-util-compressed.h | 559 ++++++++++++++++++++++++++++++++++++
1 file changed, 559 insertions(+)
create mode 100644 tests/util/piglit-util-compressed.h
diff --git a/tests/util/piglit-util-compressed.h
b/tests/util/piglit-util-compressed.h
new file mode 100644
index 0000000..36321bf
--- /dev/null
+++ b/tests/util/piglit-util-compressed.h
@@ -0,0 +1,559 @@
+/*
+ * Copyright © 2012 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+/**
+ * \file piglit-util-compressed.h
+ *
+ * This file contains pre-compressed representations of uniform
+ * grayscale images in various texture compression formats, for use in
+ * testing compressed textures.
+ */
I think the filename could be a little more descriptive. Maybe
piglit-util-compressed-grays.h
Reviewed-by: Brian Paul <[email protected]>
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit