Add CTS_EXT_texture_filter_anisotropic specification proposal
authorAdam Czupryna <adam.czupryna@mobica.com>
Mon, 24 Apr 2017 13:57:48 +0000 (15:57 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 6 Jun 2017 08:42:03 +0000 (04:42 -0400)
This is CTS_EXT_texture_filter_anisotropic specification proposal.

Components: OpenGL

VK-GL-CTS issue: 387

Change-Id: Ic0385349368612c16febe8b1e63f76ef87ce425a

external/openglcts/docs/specs/CTS_EXT_texture_filter_anisotropic.txt [new file with mode: 0644]

diff --git a/external/openglcts/docs/specs/CTS_EXT_texture_filter_anisotropic.txt b/external/openglcts/docs/specs/CTS_EXT_texture_filter_anisotropic.txt
new file mode 100644 (file)
index 0000000..3710818
--- /dev/null
@@ -0,0 +1,84 @@
+Conformance Test
+
+    CTS_EXT_texture_filter_anisotropic
+
+Contributors
+
+    Adam Czupryna, Mobica
+
+Contacts
+
+    Adam Czupryna, Mobica (adam.czupryna 'at' mobica.com)
+
+Status
+
+    In review
+
+Version
+
+    April 24, 2017 (version 1)
+
+Dependencies
+
+    OpenGL 1.2 is required.
+
+    EXT_texture_filter_anisotropic extension is required.
+
+    This specification is written against:
+      - EXT_texture_filter_anisotropic specification,
+      - OpenGL 1.2 specification.
+
+Overview
+
+    This tests verifies if functionality provided by EXT_texture_filter_anisotropic
+    works as expected:
+
+      * Verify if TexParameter*, GetTexParameter* queries works correctly for
+        TEXTURE_MAX_ANISOTROPY_EXT token and Get* queries for
+        MAX_TEXTURE_MAX_ANISOTROPY_EXT token respectively.
+
+      * Verify if there is difference between polygon rendered with different
+        degree of anisotropy.
+
+New Tests
+
+    New State Queries Test
+
+      * Test TexParameter{i f}{v}, GetTexParameter{i f} queries for <pname>:
+
+          - TEXTURE_MAX_ANISOTROPY_EXT
+
+        Check default values and set manually. Test if setting value lower
+          than 1.0 would generate INVALID_VALUE error.
+
+      * Test GetBooleanv, GetDoublev, GetFloatv and GetIntegerv queries for <pname>"
+
+          - MAX_TEXTURE_MAX_ANISOTROPY_EXT
+
+        Check if no error is generated.
+
+    Anisotropic Filtering Test
+
+      * Iterate through all supported targets and texture formats.
+            Generate high contrast texture (vertical strips) with at least two
+              mipmap levels.
+                Set min filtering to GL_LINEAR_MIPMAP_LINEAR and render polygon with
+                  top vertices set far away from camera and bottom vertices set near
+                  camera. Do it for 3 different degrees of anisotropy:
+                  - 1.0 (disabled anisotropic filtering)
+                  - 2.0
+                  - MAX_TEXTURE_MAX_ANISOTROPY_EXT
+                Expect that for higher degrees of anisotropy top part of rendered
+                  strips will be smoother. It means that total sum of absolute
+                  derivatives of color in x direction will be less than for lower
+                  degree of anisotropy.
+
+Revision History
+
+    Revision 1, 24 April, 2017 (Adam Czupryna)
+      - Intial version;
+
+    Revision 2, 2 June, 2017 (Adam Czupryna)
+      - Added description of anisotropy verification method to
+        Anisotropic Filtering Test section;
+