xref: /aosp_15_r20/external/deqp/doc/testspecs/GLES31/functional.texture.gather.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 gather tests
20*35238bceSAndroid Build Coastguard Worker
21*35238bceSAndroid Build Coastguard WorkerTests:
22*35238bceSAndroid Build Coastguard Worker + dEQP-GLES31.functional.texture.gather.*
23*35238bceSAndroid Build Coastguard Worker
24*35238bceSAndroid Build Coastguard WorkerIncludes:
25*35238bceSAndroid Build Coastguard Worker + textureGather, textureGatherOffset and textureGatherOffsets tests
26*35238bceSAndroid Build Coastguard Worker   - Also dynamic-offset variant of textureGatherOffset
27*35238bceSAndroid Build Coastguard Worker + All supported texture types
28*35238bceSAndroid Build Coastguard Worker   - 2D
29*35238bceSAndroid Build Coastguard Worker   - 2D array
30*35238bceSAndroid Build Coastguard Worker   - Cube map for offset-less variant only (not defined for others)
31*35238bceSAndroid Build Coastguard Worker + rgba8 unorm, uint and int color formats
32*35238bceSAndroid Build Coastguard Worker + depth32f format for shadow variants
33*35238bceSAndroid Build Coastguard Worker   - LESS and GREATER comparison functions
34*35238bceSAndroid Build Coastguard Worker + For color textures, test each value (0 to 3) for the color component
35*35238bceSAndroid Build Coastguard Worker   argument, as well as no argument (implicit 0)
36*35238bceSAndroid Build Coastguard Worker + Power-of-two and non-power-of-two texture sizes
37*35238bceSAndroid Build Coastguard Worker   - Test each wrap mode (clamp to edge, repeat, mirrored repeat) for both S and
38*35238bceSAndroid Build Coastguard Worker     T coordinates
39*35238bceSAndroid Build Coastguard Worker + Texture swizzle (for color formats)
40*35238bceSAndroid Build Coastguard Worker   - Test each swizzle source for each color component
41*35238bceSAndroid Build Coastguard Worker + Test that filter modes have no effect (assuming texture is still complete)
42*35238bceSAndroid Build Coastguard Worker + Base level
43*35238bceSAndroid Build Coastguard Worker + For color textures, test gathering from incomplete texture
44*35238bceSAndroid Build Coastguard Worker + For offset(s) variants, test various offsets from both the spec-required
45*35238bceSAndroid Build Coastguard Worker   minimum range as well as implementation's range
46*35238bceSAndroid Build Coastguard Worker
47*35238bceSAndroid Build Coastguard WorkerExcludes:
48*35238bceSAndroid Build Coastguard Worker + Rest of texture formats
49*35238bceSAndroid Build Coastguard Worker + Rest of depth comparison functions
50*35238bceSAndroid Build Coastguard Worker + Negative tests
51*35238bceSAndroid Build Coastguard Worker
52*35238bceSAndroid Build Coastguard WorkerDescription:
53*35238bceSAndroid Build Coastguard Worker
54*35238bceSAndroid Build Coastguard WorkerThe texture gather test group contains tests for the textureGather* group of
55*35238bceSAndroid Build Coastguard Workerfunctions.
56*35238bceSAndroid Build Coastguard Worker
57*35238bceSAndroid Build Coastguard WorkerEach test case creates and sets up a 2d, 2d array or cube texture with unorm,
58*35238bceSAndroid Build Coastguard Workerint, uint or depth format. A shader program is created that uses the appropriate
59*35238bceSAndroid Build Coastguard WorkertextureGather* on that texture in the fragment shader, and outputs the resulting
60*35238bceSAndroid Build Coastguard Workercolor as a fragment output. A framebuffer object with a renderbuffer object as
61*35238bceSAndroid Build Coastguard Workerits color attachment is used; the renderbuffer's format matches that of the
62*35238bceSAndroid Build Coastguard Workertexture (except for depth formats, for which rgba8 is used). The resulting image
63*35238bceSAndroid Build Coastguard Workeris read with glReadPixels(), and verified with routines that take coordinate
64*35238bceSAndroid Build Coastguard Workerimprecisions into account. Multiple shaders and rendering iterations are used,
65*35238bceSAndroid Build Coastguard Workerso that different color component and/or offset arguments to the textureGather*
66*35238bceSAndroid Build Coastguard Workerfunction can be tested.
67*35238bceSAndroid Build Coastguard Worker
68*35238bceSAndroid Build Coastguard WorkerThe textureGatherOffsets functions, as well as textureGatherOffset with dynamic
69*35238bceSAndroid Build Coastguard Workeroffset, are tested if the GL_EXT_gpu_shader5 extension is supported.
70