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