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 image specification tests 20*35238bceSAndroid Build Coastguard Worker 21*35238bceSAndroid Build Coastguard WorkerTests: 22*35238bceSAndroid Build Coastguard Worker + dEQP-GLES2.functional.texture.teximage.* 23*35238bceSAndroid Build Coastguard Worker 24*35238bceSAndroid Build Coastguard WorkerIncludes: 25*35238bceSAndroid Build Coastguard Worker + Texture upload using: 26*35238bceSAndroid Build Coastguard Worker - glTexImage2D() 27*35238bceSAndroid Build Coastguard Worker - glTexSubImage2D() 28*35238bceSAndroid Build Coastguard Worker + Copy from framebuffer using: 29*35238bceSAndroid Build Coastguard Worker - glCopyTexImage2D() 30*35238bceSAndroid Build Coastguard Worker - glCopyTexSubImage2D() 31*35238bceSAndroid Build Coastguard Worker + 2D and cube map texture targets 32*35238bceSAndroid Build Coastguard Worker + Different pixel alignments in upload (GL_UNPACK_ALIGNMENT) 33*35238bceSAndroid Build Coastguard Worker + All supported pixel formats 34*35238bceSAndroid Build Coastguard Worker + Named and default texture objects 35*35238bceSAndroid Build Coastguard Worker 36*35238bceSAndroid Build Coastguard WorkerExcludes: 37*35238bceSAndroid Build Coastguard Worker + Compressed texture formats 38*35238bceSAndroid Build Coastguard Worker 39*35238bceSAndroid Build Coastguard WorkerDescription: 40*35238bceSAndroid Build Coastguard Worker 41*35238bceSAndroid Build Coastguard WorkerTexture image specification tests build a complete 2D or cubemap texture 42*35238bceSAndroid Build Coastguard Workerusing the texture image specification functions. The exact order and functions 43*35238bceSAndroid Build Coastguard Workerused depends on the test case. 44*35238bceSAndroid Build Coastguard Worker 45*35238bceSAndroid Build Coastguard WorkerFor glCopyTexImage2D() and glCopyTexSubImage2D() usage the rendering target 46*35238bceSAndroid Build Coastguard Workeris first filled with meaningful data by rendering a simple textured quad first. 47*35238bceSAndroid Build Coastguard Worker 48*35238bceSAndroid Build Coastguard WorkerReference texture object is constructed by applying reference versions of the 49*35238bceSAndroid Build Coastguard Workersame operations to a reference pixel buffer. 50*35238bceSAndroid Build Coastguard Worker 51*35238bceSAndroid Build Coastguard WorkerFinally both the constructed texture is rendered using a simple quad and the 52*35238bceSAndroid Build Coastguard Workerresulting images are compared against the reference. Nearest-neighbor -filtering 53*35238bceSAndroid Build Coastguard Workeris used. For cubemap textures each face is rendered separately and all are 54*35238bceSAndroid Build Coastguard Workerverified. If mipmaps were constructed, texture is rendered multiple times 55*35238bceSAndroid Build Coastguard Workersampling texels from different mipmap levels. 56