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 Occlusion query tests 20e5c31af7Sopenharmony_ci 21e5c31af7Sopenharmony_ciTests: 22e5c31af7Sopenharmony_ci + dEQP-GLES3.functional.occlusion_query.* 23e5c31af7Sopenharmony_ci 24e5c31af7Sopenharmony_ciIncludes: 25e5c31af7Sopenharmony_ci + Following occluder types are tested: 26e5c31af7Sopenharmony_ci - Scissor boxes 27e5c31af7Sopenharmony_ci - Depth writes and clears 28e5c31af7Sopenharmony_ci - Stencil writes and clears 29e5c31af7Sopenharmony_ci + Exact occlusion query result verification 30e5c31af7Sopenharmony_ci - For query target ANY_SAMPLES_PASSED 31e5c31af7Sopenharmony_ci + Conservative occlusion query result verification 32e5c31af7Sopenharmony_ci - For query target ANY_SAMPLES_PASSED_CONSERVATIVE 33e5c31af7Sopenharmony_ci 34e5c31af7Sopenharmony_ciExcludes: 35e5c31af7Sopenharmony_ci 36e5c31af7Sopenharmony_ciDescription: 37e5c31af7Sopenharmony_ci 38e5c31af7Sopenharmony_ciOcclusion query tests operate using the following steps. First, a number 39e5c31af7Sopenharmony_ciof occluders are drawn on screen. Occluders can be areas around scissor 40e5c31af7Sopenharmony_ciboxes, depth writes/clears or stencil writes/clears. Second, a number of 41e5c31af7Sopenharmony_citarget primitives are drawn in red. If any target is visible, i.e. red 42e5c31af7Sopenharmony_cicolor appears in the framebuffer, the occlusion query should return true. 43e5c31af7Sopenharmony_ciIf targets are invisible, i.e. red color does not appear in the 44e5c31af7Sopenharmony_ciframebuffer, the occlusion query should return false. If these conditions 45e5c31af7Sopenharmony_ciare not met, the test fails. 46e5c31af7Sopenharmony_ci 47e5c31af7Sopenharmony_ciIf the occlusion query target is ANY_SAMPLES_PASSED_CONSERVATIVE, the test 48e5c31af7Sopenharmony_ciallows false positives, i.e. the occlusion query can return true even if 49e5c31af7Sopenharmony_cired color is not present in the framebuffer. The converse is not allowed: 50e5c31af7Sopenharmony_ciif red color is present in the framebuffer, the query must return true. 51