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 Copy Image Tests (GL_EXT_copy_image) 20*35238bceSAndroid Build Coastguard Worker 21*35238bceSAndroid Build Coastguard WorkerTests: 22*35238bceSAndroid Build Coastguard Worker + dEQP-GLES31.copy_image.* 23*35238bceSAndroid Build Coastguard Worker 24*35238bceSAndroid Build Coastguard WorkerIncludes: 25*35238bceSAndroid Build Coastguard Worker + 2D texture images 26*35238bceSAndroid Build Coastguard Worker + Cube map texture images 27*35238bceSAndroid Build Coastguard Worker + 3D texture images 28*35238bceSAndroid Build Coastguard Worker + 2D texture array images 29*35238bceSAndroid Build Coastguard Worker + Renderbuffer images 30*35238bceSAndroid Build Coastguard Worker + Copies between different formats 31*35238bceSAndroid Build Coastguard Worker + Copies between different compressed formats 32*35238bceSAndroid Build Coastguard Worker + Copies between compressed and non-compressed formats 33*35238bceSAndroid Build Coastguard Worker + Using images for rendering before copy 34*35238bceSAndroid Build Coastguard Worker + Not using images for rendering before copy 35*35238bceSAndroid Build Coastguard Worker + Compressed ASTC formats 36*35238bceSAndroid Build Coastguard Worker + Compressed ETC formats 37*35238bceSAndroid Build Coastguard Worker + Compressed ETC2 formats 38*35238bceSAndroid Build Coastguard Worker 39*35238bceSAndroid Build Coastguard WorkerExcludes: 40*35238bceSAndroid Build Coastguard Worker + Copies between two float formats 41*35238bceSAndroid Build Coastguard Worker + Invalid ASTC blocks 42*35238bceSAndroid Build Coastguard Worker + HDR ASTC blocks 43*35238bceSAndroid Build Coastguard Worker + 3D block ASTC formats 44*35238bceSAndroid Build Coastguard Worker + Other compressed formats than ASTC, ETC and ETC2 45*35238bceSAndroid Build Coastguard Worker 46*35238bceSAndroid Build Coastguard WorkerDescription: 47*35238bceSAndroid Build Coastguard Worker 48*35238bceSAndroid Build Coastguard WorkerTest creates two images and initializes them to random data. Both images have 49*35238bceSAndroid Build Coastguard Workeralways npot size and texture images are always created so that they are mipmap 50*35238bceSAndroid Build Coastguard Workercomplete. Random data is always generated so that it is valid for both formats 51*35238bceSAndroid Build Coastguard Workere.g. no invalid ASTC blocks or NaNs exist before or after copying. 52*35238bceSAndroid Build Coastguard Worker 53*35238bceSAndroid Build Coastguard WorkerMultiple copies are performed per test case. Texture levels 0, 1 and last level 54*35238bceSAndroid Build Coastguard Workerare used as source and destination levels. For each texture level top left and 55*35238bceSAndroid Build Coastguard Workerbottom right corners are used as source rectangle and destination rectangle. 56*35238bceSAndroid Build Coastguard WorkerAlso npot offset in the middle of the image is used. Some of the copied 57*35238bceSAndroid Build Coastguard Workerrectangles are npot size. 58*35238bceSAndroid Build Coastguard Worker 59*35238bceSAndroid Build Coastguard WorkerEach test case does copying in two different ways. First they create images, 60*35238bceSAndroid Build Coastguard Workeruse them for rendering, copy and perform verification. Second time they create 61*35238bceSAndroid Build Coastguard Workerimages and immediately copy them without rendering and finally verify image 62*35238bceSAndroid Build Coastguard Workercontents. 63*35238bceSAndroid Build Coastguard Worker 64*35238bceSAndroid Build Coastguard WorkerInstead of trying to isolate different smaller features and testing them 65*35238bceSAndroid Build Coastguard Workerseparately, these tests try to test multiple cases for each format as there 66*35238bceSAndroid Build Coastguard Workerwould be huge number of tests and it would take too long to run more than one 67*35238bceSAndroid Build Coastguard Workercase for each format and image combination. 68