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