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 Title 20*35238bceSAndroid Build Coastguard Worker 21*35238bceSAndroid Build Coastguard WorkerTests: 22*35238bceSAndroid Build Coastguard Worker + dEQP-GLES31.functional.fbo.no_attachments.* 23*35238bceSAndroid Build Coastguard Worker + dEQP-GLES31.functional.fbo.completeness.no_attachments 24*35238bceSAndroid Build Coastguard Worker 25*35238bceSAndroid Build Coastguard WorkerIncludes: 26*35238bceSAndroid Build Coastguard Worker + Framebuffer completeness 27*35238bceSAndroid Build Coastguard Worker + Rendering 28*35238bceSAndroid Build Coastguard Worker - Multiple sizes 29*35238bceSAndroid Build Coastguard Worker - Multisampled 30*35238bceSAndroid Build Coastguard Worker + Limits 31*35238bceSAndroid Build Coastguard Worker 32*35238bceSAndroid Build Coastguard WorkerExcludes: 33*35238bceSAndroid Build Coastguard Worker + Most usefull forms of output 34*35238bceSAndroid Build Coastguard Worker - Atomic counter use (none guaranteed in fragment shader) 35*35238bceSAndroid Build Coastguard Worker - Image read/write (no image units guaranteed in fragment shader) 36*35238bceSAndroid Build Coastguard Worker + Fixed sample locations (no way to verify) 37*35238bceSAndroid Build Coastguard Worker 38*35238bceSAndroid Build Coastguard WorkerDescription: 39*35238bceSAndroid Build Coastguard Worker 40*35238bceSAndroid Build Coastguard WorkerFramebuffer completenss is tested trivially 41*35238bceSAndroid Build Coastguard Worker 42*35238bceSAndroid Build Coastguard WorkerRendering is verified to happen with occlusion queries. This rather limited 43*35238bceSAndroid Build Coastguard Workermethod has been chosen since there is a general shortage of guaranteed valid 44*35238bceSAndroid Build Coastguard Workerways of outputting data from a fragment shader without a color/depth/stencil 45*35238bceSAndroid Build Coastguard Workerbuffer. Namely all relevant minimum maximums (atomic counters, atomic counter 46*35238bceSAndroid Build Coastguard Workerbuffers, shader storage blocks and image uniforms) are zero. 47*35238bceSAndroid Build Coastguard Worker 48*35238bceSAndroid Build Coastguard WorkerBasic functioning of the framebuffer is tested by rendering a full buffer quad 49*35238bceSAndroid Build Coastguard Workerand verifying its presence with an occlusion query. Size of the framebuffer 50*35238bceSAndroid Build Coastguard Workeris verified by running a shader that discard all fragments that are not within 51*35238bceSAndroid Build Coastguard Workera given pixel's boundaries with several pixels placed around the edge of the 52*35238bceSAndroid Build Coastguard Workerframebuffer and checking for that these fragments were (not) rendered with 53*35238bceSAndroid Build Coastguard Workeran occlusion query. Each tested pixel has its own render call and occlusion 54*35238bceSAndroid Build Coastguard Workerquery. 55*35238bceSAndroid Build Coastguard Worker 56*35238bceSAndroid Build Coastguard WorkerBasic functionality tests iterate a number of size & sampling parameters, 57*35238bceSAndroid Build Coastguard Workerincluding the required maximum and implementation reported limits 58*35238bceSAndroid Build Coastguard Worker 59*35238bceSAndroid Build Coastguard WorkerThe completeness test verifies that a framebuffer with both widht and height 60*35238bceSAndroid Build Coastguard Workerset is considered complete. 61