1 ------------------------------------------------------------------------- 2 drawElements Quality Program Test Specification 3 ----------------------------------------------- 4 5 Copyright 2014 The Android Open Source Project 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 ------------------------------------------------------------------------- 19 Texture upload performance tests 20 21 Tests: 22 + dEQP-GLES2.performance.texture.upload.* 23 24 Includes: 25 + All legal format-type-combinations 26 - ALPHA, RGB, RGBA, LUMINANCE and LUMINANCE_ALPHA for UNSIGNED_BYTE 27 - RGB for UNSIGNED_SHORT_5_6_5 28 - RGBA for UNSIGNED_SHORT_4_4_4_4 and UNSIGNED_SHORT_5_5_5_1 29 + Upload functions glTexImage2D and glTexSubImage2D 30 + Different texture sizes from 16x16 to 2048x2048 31 - Including npot texture (257x257) 32 + Measurements for: 33 - Upload call only 34 - Upload and draw with uploaded texture + buffer swap 35 36 Excludes: 37 + Different pixel unpack alignments 38 + Trashed cache before upload 39 40 Description: 41 42 Texture upload performance cases measure the performance of texture upload 43 calls. Subgroup 'upload' measures the duration of upload calls (i.e. 44 recorded iteration time includes only multiple texture upload calls). 45 Subgroup 'upload_draw_swap' draws a quad with the uploaded texture after 46 each upload and swaps buffers afterwards (i.e. recorded iteration time 47 includes multiple upload and draw calls and one buffer swap). Texture 48 sizes vary from 16x16 to 2048x2048 and include an npot texture with size 49 257x257. Viewport size is held constant at 64x64. 50 51 The amount of draw calls is automatically calibrated to find a workload 52 that produces approximately 30fps. Result is reported as uploaded MTex/s. 53 54 See performance.txt for more details on performance testing. 55