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 Depth test 20*35238bceSAndroid Build Coastguard Worker 21*35238bceSAndroid Build Coastguard WorkerTests: 22*35238bceSAndroid Build Coastguard Worker + dEQP-GLES2.functional.depth.* 23*35238bceSAndroid Build Coastguard Worker 24*35238bceSAndroid Build Coastguard WorkerIncludes: 25*35238bceSAndroid Build Coastguard Worker + Depth buffer update when rendering triangles with GL_ALWAYS 26*35238bceSAndroid Build Coastguard Worker + Depth test when rendering triangles 27*35238bceSAndroid Build Coastguard Worker + All depth comparison functions 28*35238bceSAndroid Build Coastguard Worker 29*35238bceSAndroid Build Coastguard WorkerExcludes: 30*35238bceSAndroid Build Coastguard Worker + Lines and points 31*35238bceSAndroid Build Coastguard Worker + Depth mask 32*35238bceSAndroid Build Coastguard Worker + glPolygonOffset() 33*35238bceSAndroid Build Coastguard Worker + Overlapping primitives in single draw call 34*35238bceSAndroid Build Coastguard Worker + Interaction with stencil test 35*35238bceSAndroid Build Coastguard Worker 36*35238bceSAndroid Build Coastguard WorkerDescription: 37*35238bceSAndroid Build Coastguard Worker 38*35238bceSAndroid Build Coastguard WorkerEach test case renders 4 pairs of quads, arranged in a 2x2 grid. First 39*35238bceSAndroid Build Coastguard Workerquad is rendered with GL_ALWAYS depth test mode, while the second uses 40*35238bceSAndroid Build Coastguard Workerthe depth test mode stated in test case name. First pair of quads have 41*35238bceSAndroid Build Coastguard Workerexactly same z, in the second pair z1 < z2 and in the third pair z2 < z1. 42*35238bceSAndroid Build Coastguard WorkerIn the fourth pair z1 = 0 and z2 is interpolated between -1.0 and 1.0, 43*35238bceSAndroid Build Coastguard Workere.g. the quads are intersecting. 44*35238bceSAndroid Build Coastguard Worker 45*35238bceSAndroid Build Coastguard WorkerThe first quad in each pair is red, while the second one is green. 46*35238bceSAndroid Build Coastguard WorkerThe resulting image depends on the depth test mode used when rendering 47*35238bceSAndroid Build Coastguard Workerthe second quads. 48*35238bceSAndroid Build Coastguard Worker 49*35238bceSAndroid Build Coastguard WorkerTest results are verified by comparing the rendered image against a 50*35238bceSAndroid Build Coastguard Workerreference image. The reference is rendered using a simplified model 51*35238bceSAndroid Build Coastguard Workerof the GL rendering pipe. 52