1*35238bceSAndroid Build Coastguard Worker------------------------------------------------------------------------- 2*35238bceSAndroid Build Coastguard WorkerdrawElements Quality Program Test Specification 3*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 4*35238bceSAndroid Build Coastguard Worker 5*35238bceSAndroid Build Coastguard WorkerCopyright 2014 The Android Open Source Project 6*35238bceSAndroid Build Coastguard Worker 7*35238bceSAndroid Build Coastguard WorkerLicensed under the Apache License, Version 2.0 (the "License"); 8*35238bceSAndroid Build Coastguard Workeryou may not use this file except in compliance with the License. 9*35238bceSAndroid Build Coastguard WorkerYou may obtain a copy of the License at 10*35238bceSAndroid Build Coastguard Worker 11*35238bceSAndroid Build Coastguard Worker http://www.apache.org/licenses/LICENSE-2.0 12*35238bceSAndroid Build Coastguard Worker 13*35238bceSAndroid Build Coastguard WorkerUnless required by applicable law or agreed to in writing, software 14*35238bceSAndroid Build Coastguard Workerdistributed under the License is distributed on an "AS IS" BASIS, 15*35238bceSAndroid Build Coastguard WorkerWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16*35238bceSAndroid Build Coastguard WorkerSee the License for the specific language governing permissions and 17*35238bceSAndroid Build Coastguard Workerlimitations under the License. 18*35238bceSAndroid Build Coastguard Worker------------------------------------------------------------------------- 19*35238bceSAndroid Build Coastguard Worker Texture format sets 20*35238bceSAndroid Build Coastguard Worker 21*35238bceSAndroid Build Coastguard WorkerTests: 22*35238bceSAndroid Build Coastguard Worker + dEQP-GLES3.functional.texture.format.* 23*35238bceSAndroid Build Coastguard Worker 24*35238bceSAndroid Build Coastguard WorkerIncludes: 25*35238bceSAndroid Build Coastguard Worker + Unsized color texture formats: 26*35238bceSAndroid Build Coastguard Worker - GLES2: ALPHA, LUMINANCE, LUMINANCE_ALPHA, RGB, RGBA 27*35238bceSAndroid Build Coastguard Worker - GLES3: RED, RG, INTEGER variants 28*35238bceSAndroid Build Coastguard Worker + Unsized depth and stencil formats: 29*35238bceSAndroid Build Coastguard Worker - DEPTH_COMPONENT, DEPTH_STENCIL 30*35238bceSAndroid Build Coastguard Worker + All sized color texture formats 31*35238bceSAndroid Build Coastguard Worker + All sized depth and stencil texture formats 32*35238bceSAndroid Build Coastguard Worker + sRGB texture formats 33*35238bceSAndroid Build Coastguard Worker + Following compressed texture formats: 34*35238bceSAndroid Build Coastguard Worker - ETC1 35*35238bceSAndroid Build Coastguard Worker - ETC2 36*35238bceSAndroid Build Coastguard Worker - EAC 37*35238bceSAndroid Build Coastguard Worker + Power-of-two and non-power-of-two texture sizes 38*35238bceSAndroid Build Coastguard Worker + Texture access from fragment shader with following parameters: 39*35238bceSAndroid Build Coastguard Worker - Nearest-neighbor filtering 40*35238bceSAndroid Build Coastguard Worker - Clamp-to-edge wrap mode 41*35238bceSAndroid Build Coastguard Worker - Single texture, unit 0 42*35238bceSAndroid Build Coastguard Worker - Named texture object 43*35238bceSAndroid Build Coastguard Worker - Coordinates in range (0, 0) -> (1, 1) 44*35238bceSAndroid Build Coastguard Worker + 2D textures 45*35238bceSAndroid Build Coastguard Worker + Cube map textures 46*35238bceSAndroid Build Coastguard Worker + 2D array textures 47*35238bceSAndroid Build Coastguard Worker + 3D textures 48*35238bceSAndroid Build Coastguard Worker 49*35238bceSAndroid Build Coastguard WorkerExcludes: 50*35238bceSAndroid Build Coastguard Worker + Other texture wrap and filtering modes 51*35238bceSAndroid Build Coastguard Worker - Covered in functional.texture.filtering and functional.texture.wrap 52*35238bceSAndroid Build Coastguard Worker + Vertex-side texture access 53*35238bceSAndroid Build Coastguard Worker - Will be covered in functional.texture.vertex tests 54*35238bceSAndroid Build Coastguard Worker + Texture format conversions in upload 55*35238bceSAndroid Build Coastguard Worker - Will be covered in functional.texture.conversion 56*35238bceSAndroid Build Coastguard Worker 57*35238bceSAndroid Build Coastguard WorkerDescription: 58*35238bceSAndroid Build Coastguard Worker 59*35238bceSAndroid Build Coastguard WorkerTexture format tests create a single texture with pre-configured dimensions 60*35238bceSAndroid Build Coastguard Workerand format. Uncompressed images will be filled with gradient that exercises 61*35238bceSAndroid Build Coastguard Workerthe maximum value range allowed by the format. For compressed formats 62*35238bceSAndroid Build Coastguard Workerrandomized input bits are used to thoroughly exercise all decoding paths. 63*35238bceSAndroid Build Coastguard Worker 64*35238bceSAndroid Build Coastguard WorkerEach test case renders one or more times a plain quad that samples a slice 65*35238bceSAndroid Build Coastguard Workerof the image: 66*35238bceSAndroid Build Coastguard Worker 67*35238bceSAndroid Build Coastguard Worker * 2D textures: Single quad that samples the full texture is rendered. 68*35238bceSAndroid Build Coastguard Worker * Cubemaps: Each cube face is rendered separately. 69*35238bceSAndroid Build Coastguard Worker * 2D array textures: Each layer is rendered separately. 70*35238bceSAndroid Build Coastguard Worker * 3D textures: Each slice is rendered separately. 71*35238bceSAndroid Build Coastguard Worker 72*35238bceSAndroid Build Coastguard WorkerThe viewport is configured to match the slice size. Texture coordinates 73*35238bceSAndroid Build Coastguard Workeryield a 1:1 mapping from texels to framebuffer pixels. Thus filtering 74*35238bceSAndroid Build Coastguard Workershouldn't affect the resulting images. 75*35238bceSAndroid Build Coastguard Worker 76*35238bceSAndroid Build Coastguard WorkerThe rendered image is compared against a reference that is produced by 77*35238bceSAndroid Build Coastguard Workerreference renderer. A simple threshold-based comparison is used. 78