xref: /aosp_15_r20/external/deqp/doc/testspecs/GLES31/functional.shaders.multisample_interpolation.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    Multisample interpolation tests
20*35238bceSAndroid Build Coastguard Worker
21*35238bceSAndroid Build Coastguard WorkerTests:
22*35238bceSAndroid Build Coastguard Worker + dEQP-GLES31.functional.shaders.multisample_interpolation.*
23*35238bceSAndroid Build Coastguard Worker + dEQP-GLES31.functional.state_query.multisample_interpolation.*
24*35238bceSAndroid Build Coastguard Worker
25*35238bceSAndroid Build Coastguard WorkerIncludes:
26*35238bceSAndroid Build Coastguard Worker + Sample qualifier
27*35238bceSAndroid Build Coastguard Worker + interpolateAtSample
28*35238bceSAndroid Build Coastguard Worker + interpolateAtCentroid
29*35238bceSAndroid Build Coastguard Worker + interpolateAtOffset
30*35238bceSAndroid Build Coastguard Worker + Rendering to the default framebuffer, multi- and single sample
31*35238bceSAndroid Build Coastguard Worker   textures and renderbuffers
32*35238bceSAndroid Build Coastguard Worker + Implementation limit queries for
33*35238bceSAndroid Build Coastguard Worker    - MIN_FRAGMENT_INTERPOLATION_OFFSET
34*35238bceSAndroid Build Coastguard Worker	- MAX_FRAGMENT_INTERPOLATION_OFFSET
35*35238bceSAndroid Build Coastguard Worker	- FRAGMENT_INTERPOLATION_OFFSET_BITS
36*35238bceSAndroid Build Coastguard Worker
37*35238bceSAndroid Build Coastguard WorkerExcludes:
38*35238bceSAndroid Build Coastguard Worker + interpolateAtSample() with non dynamically uniform sample index.
39*35238bceSAndroid Build Coastguard Worker + Rendering to every supported render buffer sample count / format
40*35238bceSAndroid Build Coastguard Worker + Rendering to every supported multisample texture sample count / format
41*35238bceSAndroid Build Coastguard Worker
42*35238bceSAndroid Build Coastguard WorkerDescription:
43*35238bceSAndroid Build Coastguard Worker
44*35238bceSAndroid Build Coastguard Workersample_qualifier.* cases test sample qualifier by rendering a high frequency
45*35238bceSAndroid Build Coastguard Workertest pattern with a sample-qualified varying. Using the same reasoning as in
46*35238bceSAndroid Build Coastguard Workersample shading test specification, the result image should contain numSamples +
47*35238bceSAndroid Build Coastguard Worker1 different shades of gray, e.g. single sampled render target should contain two
48*35238bceSAndroid Build Coastguard Workershades (black and white) and 2x sampled three shades.
49*35238bceSAndroid Build Coastguard Worker
50*35238bceSAndroid Build Coastguard Workerinterpolate_at_sample.* cases test interpolateAtSample() function with different
51*35238bceSAndroid Build Coastguard Workerinputs and render target configurations.
52*35238bceSAndroid Build Coastguard Worker
53*35238bceSAndroid Build Coastguard Workerinterpolate_at_sample.static_sample_number and
54*35238bceSAndroid Build Coastguard Workerinterpolate_at_sample.dynamic_sample_number cases sample a high frequency
55*35238bceSAndroid Build Coastguard Workerfunction with at every sample position and average the result. static cases use
56*35238bceSAndroid Build Coastguard Workerinteger literals at which samples values are interpolated, in dynamic cases the
57*35238bceSAndroid Build Coastguard Workersample index "depends" (all samples are sampled anyway) on uniform values.
58*35238bceSAndroid Build Coastguard Worker
59*35238bceSAndroid Build Coastguard Workerinterpolate_at_sample.non_multisample_buffer cases test that using
60*35238bceSAndroid Build Coastguard WorkerinterpolateAtSample() with a non-multisample render target with any sample index
61*35238bceSAndroid Build Coastguard Workerwill result in a value interpolated at the center of the pixel. Value is
62*35238bceSAndroid Build Coastguard Workerverified by interpolating a varying containing screen-space location in pixels.
63*35238bceSAndroid Build Coastguard Worker
64*35238bceSAndroid Build Coastguard Workerinterpolate_at_sample.centroid_qualifier cases interpolate a centroid-qualified
65*35238bceSAndroid Build Coastguard Workervarying with interpolateAtSample(). The tests render narrow triangles and
66*35238bceSAndroid Build Coastguard Workercompare results of interpolateAtSample of two identical varyings, but with
67*35238bceSAndroid Build Coastguard Workerdifferent centroid-qualification. The centroid qualifier should not have any
68*35238bceSAndroid Build Coastguard Workereffect on the values returned by interpolateAtSample().
69*35238bceSAndroid Build Coastguard Worker
70*35238bceSAndroid Build Coastguard Workerinterpolate_at_sample.at_sample_id cases test that sample index used by
71*35238bceSAndroid Build Coastguard WorkerinterpolateAtSample is the same as in gl_SampleID. Tests compare value
72*35238bceSAndroid Build Coastguard Workerper-sample qualified varying and the value returned by
73*35238bceSAndroid Build Coastguard WorkerinterpolateAtSample(v_varying, gl_SampleID). Values should be equal.
74*35238bceSAndroid Build Coastguard Worker
75*35238bceSAndroid Build Coastguard Workerinterpolate_at_centroid.* cases test interpolateAtCentroid() function with
76*35238bceSAndroid Build Coastguard Workerdifferent inputs and render target configurations.
77*35238bceSAndroid Build Coastguard Worker
78*35238bceSAndroid Build Coastguard Workerinterpolate_at_centroid.consistency cases test that values returned by
79*35238bceSAndroid Build Coastguard WorkerinterpolateAtCentroid are equal to the values of a centroid qualified varying.
80*35238bceSAndroid Build Coastguard WorkerTests render multiple narrow triangles, assign the same value to a
81*35238bceSAndroid Build Coastguard Workercentroid-qualified and non-centroid-qualified varying and then compares the
82*35238bceSAndroid Build Coastguard Workervalues of centroid-qualified varying and interpolateAtCentroid function return
83*35238bceSAndroid Build Coastguard Workervalue when given the non-centroid-qualified varying as an input.
84*35238bceSAndroid Build Coastguard Worker
85*35238bceSAndroid Build Coastguard Workerinterpolate_at_centroid.array_element cases test interpolateAtCentroid function
86*35238bceSAndroid Build Coastguard Workerwhen given a varying array element as an input. Tests render multiple narrow
87*35238bceSAndroid Build Coastguard Workertriangles, and the frament shader verifies that values returned by
88*35238bceSAndroid Build Coastguard WorkerinterpolateAtCentroid() were interpolated within the primitive area.
89*35238bceSAndroid Build Coastguard Worker
90*35238bceSAndroid Build Coastguard Workerinterpolate_at_offset.* cases test interpolateAtOffset() function with different
91*35238bceSAndroid Build Coastguard Workerinputs and render target configurations.
92*35238bceSAndroid Build Coastguard Worker
93*35238bceSAndroid Build Coastguard Workerinterpolate_at_offset.no_qualifiers, .centroid_qualifier, and .sample_qualifier
94*35238bceSAndroid Build Coastguard Workercases test interpolateAtOffset() function targeting a varying without
95*35238bceSAndroid Build Coastguard Workerqualifiers, with centroid qualifier and with per-sample qualifier.
96*35238bceSAndroid Build Coastguard Worker.array_element cases test interpolateAtOffset targeting an array element. Tests
97*35238bceSAndroid Build Coastguard Workerrender a quad and in the fragment shader use interpolateAtOffset to a
98*35238bceSAndroid Build Coastguard Workerscreen-space location (in pixels) varying. The fractional part of the returned
99*35238bceSAndroid Build Coastguard Workervalue should be equal to the interpolation offset.
100*35238bceSAndroid Build Coastguard Worker
101*35238bceSAndroid Build Coastguard Workerinterpolate_at_offset.at_sample_position cases test that using
102*35238bceSAndroid Build Coastguard WorkerinterpolateAtOffset to interpolate a value at the sample location returns the
103*35238bceSAndroid Build Coastguard Workersame value as a per-sample interpolated varying.
104