1------------------------------------------------------------------------- 2drawElements Quality Program Test Specification 3----------------------------------------------- 4 5Copyright 2015 The Android Open Source Project 6 7Licensed under the Apache License, Version 2.0 (the "License"); 8you may not use this file except in compliance with the License. 9You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13Unless required by applicable law or agreed to in writing, software 14distributed under the License is distributed on an "AS IS" BASIS, 15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16See the License for the specific language governing permissions and 17limitations under the License. 18------------------------------------------------------------------------- 19 EXT_texture_border_clamp tests 20 21Tests: 22 + dEQP-GLES31.texture.border_clamp.* 23 + dEQP-GLES31.functional.state_query.texture.*.texture_border_color_* 24 25Includes: 26 + State query tests 27 + Rendering tests with all GLES31 texture formats. 28 + Tests with power-of-two and non-power-of-two texture sizes. 29 + Nearest and linear samping. Sampling with texture gather. 30 + Rendering tests with border value exceeding the representable range of 31 the texture format. 32 + Sampling depth textures with mode set to COMPARE_REF_TO_TEXTURE. 33 34Excludes: 35 + Sampling with mipmaps 36 + Sampling with texture 2d arrays or cubemaps 37 + Texture swizzle cases 38 + Exhaustive testing of all s/t/r wrapping mode combinations 39 40Description: 41 42Texture border clamp cases test functionality added in 43EXT_texture_border_clamp extension. Tests set up a texture with a certain 44format, set border color to certain value, set one or more wrapping modes to 45CLAMP_TO_BORDER, and then proceed to render the texture to screen. The 46rendering result is then verified. Test cases also generate a reference image 47which may be useful when evaluating results. 48 49In formats.* subgroup, all GLES31 texture formats are tested. Each format is 50tested with power-of-two and non-power-of-two texture sizes using NEAREST and 51LINEAR filtering, and texture-gather fetching. 52 53In range_clamp.* subgroup, border color components are set to values that are 54not in the representable range of the internal format. The effective value is 55expected to be clamped to the valid range. 56 57In sampler.* subgroup, texture border color and wrapping mode are set using 58a sampler state. 59 60In per_axis_wrap_mode.*, texture wrap mode is not same in all S, T, and R 61directions. Wrapping is tested for 2D and 3D textures with multiple formats 62and with different sampling modes. 63 64In depth_compare_mode.*, depth texture border values are tested with compare 65mode set to COMPARE_REF_TO_TEXTURE. 66 67In unused_channels.*, border color has non-zero values in components that are 68not representable in the target formats. These components are expected to have 69no effect. 70