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 Texture format performance tests 20e5c31af7Sopenharmony_ci 21e5c31af7Sopenharmony_ciTests: 22e5c31af7Sopenharmony_ci + dEQP-GLES2.performance.texture.format.* 23e5c31af7Sopenharmony_ci 24e5c31af7Sopenharmony_ciIncludes: 25e5c31af7Sopenharmony_ci + Texture lookup performance with all uncompressed texture formats 26e5c31af7Sopenharmony_ci + 2D and cubemap textures 27e5c31af7Sopenharmony_ci + Texture lookup in vertex and fragment shaders 28e5c31af7Sopenharmony_ci + Nearest neighbor -filtering and clamp to edge -wrap mode 29e5c31af7Sopenharmony_ci 30e5c31af7Sopenharmony_ciExcludes: 31e5c31af7Sopenharmony_ci + Performance of other filtering or wrap modes 32e5c31af7Sopenharmony_ci - Covered performance.texture.filtering and performance.texture.wrap 33e5c31af7Sopenharmony_ci 34e5c31af7Sopenharmony_ciDescription: 35e5c31af7Sopenharmony_ci 36e5c31af7Sopenharmony_ciTest cases measure performance of 2D and cubemap texture lookups without 37e5c31af7Sopenharmony_cifiltering (nearest neighbor mode). Shader body is populated with one or 38e5c31af7Sopenharmony_cimore texture lookups, each targeting different texture unit. There are 39e5c31af7Sopenharmony_citest cases for the most relevant texture lookup counts. 40e5c31af7Sopenharmony_ci 41e5c31af7Sopenharmony_ciTexture lookups use same coordinates and lookup results are multiplied 42e5c31af7Sopenharmony_citogether to produce the final color for vertex or fragment. Additive 43e5c31af7Sopenharmony_ciblending is used to force fragment shader execution for all fragments. 44e5c31af7Sopenharmony_ci 45e5c31af7Sopenharmony_ciTexture size is the same as viewport size. Each texture unit uses a unique 46e5c31af7Sopenharmony_citexture object. Texture objects are however re-used across draw calls. 47e5c31af7Sopenharmony_ciTextures are sampled in range (0, 0) -> (1, 1). Vertex-side tests use 48e5c31af7Sopenharmony_ci2x2 pixel quads, e.g. each vertex gives a color for single pixel. 49e5c31af7Sopenharmony_ciIn this configuration viewportW*viewportH*numTextures unique texels are 50e5c31af7Sopenharmony_cisampled in each draw call. 51e5c31af7Sopenharmony_ci 52e5c31af7Sopenharmony_ciPer-iteration draw call count is automatically chosen so that rendering runs 53e5c31af7Sopenharmony_ciapproximately 30fps. Result is MPix/s or MVert/s computed from number of draw 54e5c31af7Sopenharmony_cicalls and actual frame time. 55e5c31af7Sopenharmony_ci 56e5c31af7Sopenharmony_ciSee performance.txt for more details on shader performance testing. 57