1e5c31af7Sopenharmony_ci------------------------------------------------------------------------- 2e5c31af7Sopenharmony_cidrawElements Quality Program Test Specification 3e5c31af7Sopenharmony_ci----------------------------------------------- 4e5c31af7Sopenharmony_ci 5e5c31af7Sopenharmony_ciCopyright 2014 The Android Open Source Project 6e5c31af7Sopenharmony_ci 7e5c31af7Sopenharmony_ciLicensed under the Apache License, Version 2.0 (the "License"); 8e5c31af7Sopenharmony_ciyou may not use this file except in compliance with the License. 9e5c31af7Sopenharmony_ciYou may obtain a copy of the License at 10e5c31af7Sopenharmony_ci 11e5c31af7Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 12e5c31af7Sopenharmony_ci 13e5c31af7Sopenharmony_ciUnless required by applicable law or agreed to in writing, software 14e5c31af7Sopenharmony_cidistributed under the License is distributed on an "AS IS" BASIS, 15e5c31af7Sopenharmony_ciWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16e5c31af7Sopenharmony_ciSee the License for the specific language governing permissions and 17e5c31af7Sopenharmony_cilimitations under the License. 18e5c31af7Sopenharmony_ci------------------------------------------------------------------------- 19e5c31af7Sopenharmony_ci Title 20e5c31af7Sopenharmony_ci 21e5c31af7Sopenharmony_ciTests: 22e5c31af7Sopenharmony_ci + dEQP-GLES31.functional.fbo.no_attachments.* 23e5c31af7Sopenharmony_ci + dEQP-GLES31.functional.fbo.completeness.no_attachments 24e5c31af7Sopenharmony_ci 25e5c31af7Sopenharmony_ciIncludes: 26e5c31af7Sopenharmony_ci + Framebuffer completeness 27e5c31af7Sopenharmony_ci + Rendering 28e5c31af7Sopenharmony_ci - Multiple sizes 29e5c31af7Sopenharmony_ci - Multisampled 30e5c31af7Sopenharmony_ci + Limits 31e5c31af7Sopenharmony_ci 32e5c31af7Sopenharmony_ciExcludes: 33e5c31af7Sopenharmony_ci + Most usefull forms of output 34e5c31af7Sopenharmony_ci - Atomic counter use (none guaranteed in fragment shader) 35e5c31af7Sopenharmony_ci - Image read/write (no image units guaranteed in fragment shader) 36e5c31af7Sopenharmony_ci + Fixed sample locations (no way to verify) 37e5c31af7Sopenharmony_ci 38e5c31af7Sopenharmony_ciDescription: 39e5c31af7Sopenharmony_ci 40e5c31af7Sopenharmony_ciFramebuffer completenss is tested trivially 41e5c31af7Sopenharmony_ci 42e5c31af7Sopenharmony_ciRendering is verified to happen with occlusion queries. This rather limited 43e5c31af7Sopenharmony_cimethod has been chosen since there is a general shortage of guaranteed valid 44e5c31af7Sopenharmony_ciways of outputting data from a fragment shader without a color/depth/stencil 45e5c31af7Sopenharmony_cibuffer. Namely all relevant minimum maximums (atomic counters, atomic counter 46e5c31af7Sopenharmony_cibuffers, shader storage blocks and image uniforms) are zero. 47e5c31af7Sopenharmony_ci 48e5c31af7Sopenharmony_ciBasic functioning of the framebuffer is tested by rendering a full buffer quad 49e5c31af7Sopenharmony_ciand verifying its presence with an occlusion query. Size of the framebuffer 50e5c31af7Sopenharmony_ciis verified by running a shader that discard all fragments that are not within 51e5c31af7Sopenharmony_cia given pixel's boundaries with several pixels placed around the edge of the 52e5c31af7Sopenharmony_ciframebuffer and checking for that these fragments were (not) rendered with 53e5c31af7Sopenharmony_cian occlusion query. Each tested pixel has its own render call and occlusion 54e5c31af7Sopenharmony_ciquery. 55e5c31af7Sopenharmony_ci 56e5c31af7Sopenharmony_ciBasic functionality tests iterate a number of size & sampling parameters, 57e5c31af7Sopenharmony_ciincluding the required maximum and implementation reported limits 58e5c31af7Sopenharmony_ci 59e5c31af7Sopenharmony_ciThe completeness test verifies that a framebuffer with both widht and height 60e5c31af7Sopenharmony_ciset is considered complete. 61