xref: /aosp_15_r20/external/deqp/doc/testspecs/GLES31/functional.separate_shader.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    Separate shader object tests
20*35238bceSAndroid Build Coastguard Worker
21*35238bceSAndroid Build Coastguard WorkerTests:
22*35238bceSAndroid Build Coastguard Worker + dEQP-GLES31.separate_shader.*
23*35238bceSAndroid Build Coastguard Worker
24*35238bceSAndroid Build Coastguard WorkerIncludes:
25*35238bceSAndroid Build Coastguard Worker
26*35238bceSAndroid Build Coastguard Worker + Single-program and two-program pipelines
27*35238bceSAndroid Build Coastguard Worker + Replacement of pipeline stages
28*35238bceSAndroid Build Coastguard Worker + Independence of homonymous uniforms and constants in the pipeline's
29*35238bceSAndroid Build Coastguard Worker   programs
30*35238bceSAndroid Build Coastguard Worker + Interface compatibility between shader stages
31*35238bceSAndroid Build Coastguard Worker + glProgramUniform on the pipeline's stages
32*35238bceSAndroid Build Coastguard Worker + glCreateShaderProgram
33*35238bceSAndroid Build Coastguard Worker + glActiveShaderProgram
34*35238bceSAndroid Build Coastguard Worker + glBindProgramPipeline vs glUseProgram priority
35*35238bceSAndroid Build Coastguard Worker + glGetProgramPipelineiv queries:
36*35238bceSAndroid Build Coastguard Worker   - GL_ACTIVE_PROGRAM
37*35238bceSAndroid Build Coastguard Worker   - GL_VERTEX_SHADER
38*35238bceSAndroid Build Coastguard Worker   - GL_FRAGMENT_SHADER
39*35238bceSAndroid Build Coastguard Worker
40*35238bceSAndroid Build Coastguard WorkerExcludes:
41*35238bceSAndroid Build Coastguard Worker
42*35238bceSAndroid Build Coastguard Worker + Testing pipeline rendering against a hardware-independent reference
43*35238bceSAndroid Build Coastguard Worker   renderer
44*35238bceSAndroid Build Coastguard Worker
45*35238bceSAndroid Build Coastguard Worker
46*35238bceSAndroid Build Coastguard WorkerThe "api.current_program_priority" test case checks that a bound pipeline
47*35238bceSAndroid Build Coastguard Workerhas no effect when there is a current program. The test creates a program
48*35238bceSAndroid Build Coastguard Workerpipeline and a differently behaving monolithic program. It then calls
49*35238bceSAndroid Build Coastguard WorkerglUseProgram and and glBindProgramPipeline and draws a triangle. The
50*35238bceSAndroid Build Coastguard Workerresulting image is compared to a reference image drawn with the program
51*35238bceSAndroid Build Coastguard Workerbut without a bound program pipeline.
52*35238bceSAndroid Build Coastguard Worker
53*35238bceSAndroid Build Coastguard WorkerThe "api.active_program_uniform" test case creates a pipeline and a
54*35238bceSAndroid Build Coastguard Workerprogram, binds the pipeline and sets that program as the pipeline's active
55*35238bceSAndroid Build Coastguard Workerprogram. After this, glUniform is called and a triangle is drawn. The
56*35238bceSAndroid Build Coastguard Workerresulting image is compared to a reference image from a similar program
57*35238bceSAndroid Build Coastguard Workerwhose uniform was set after glUseProgram.
58*35238bceSAndroid Build Coastguard Worker
59*35238bceSAndroid Build Coastguard WorkerThe "api.pipeline_programs" test case checks that glGetProgramPipelineiv
60*35238bceSAndroid Build Coastguard Workerreturns the correct programs for vertex and shader stages.
61*35238bceSAndroid Build Coastguard Worker
62*35238bceSAndroid Build Coastguard WorkerThe "api.pipeline_active" test case checks that glGetProgramPipelineiv
63*35238bceSAndroid Build Coastguard Workerreturns the program that was set as the pipeline's active program.
64*35238bceSAndroid Build Coastguard Worker
65*35238bceSAndroid Build Coastguard Worker
66*35238bceSAndroid Build Coastguard WorkerThe following tests create a program pipeline with one or two programs,
67*35238bceSAndroid Build Coastguard Workerand then possibly replace either or both of the stages with a new
68*35238bceSAndroid Build Coastguard Workersingle-shader program. A triangle is drawn with the pipeline and the
69*35238bceSAndroid Build Coastguard Workerresult is compared to a triangle drawn with an equivalent monolithic
70*35238bceSAndroid Build Coastguard Workerprogram.
71*35238bceSAndroid Build Coastguard Worker
72*35238bceSAndroid Build Coastguard WorkerIn the "pipeline.*" test cases the shaders have uniforms or constants, but
73*35238bceSAndroid Build Coastguard Workerno varyings. The variables in distinct programs may have the same name.
74*35238bceSAndroid Build Coastguard Worker
75*35238bceSAndroid Build Coastguard WorkerIn the "program_uniform.*" test cases the shaders have uniforms which are
76*35238bceSAndroid Build Coastguard Workerset with glProgramUniform.
77*35238bceSAndroid Build Coastguard Worker
78*35238bceSAndroid Build Coastguard WorkerIn the "create_shader_program.*" test cases the single-shader programs in
79*35238bceSAndroid Build Coastguard Workerthe pipeline are created with glCreateShaderProgram.
80*35238bceSAndroid Build Coastguard Worker
81*35238bceSAndroid Build Coastguard WorkerIn the "interface.*" test cases there is a varying between the vertex and
82*35238bceSAndroid Build Coastguard Workerfragment shaders. The declarations of the vertex output and fragment input
83*35238bceSAndroid Build Coastguard Workervariables may have different qualifiers or names.
84*35238bceSAndroid Build Coastguard Worker
85*35238bceSAndroid Build Coastguard WorkerThe "random.*" test cases create random pipeline configurations that mix
86*35238bceSAndroid Build Coastguard Workerproperties of the previous test case groups. The shaders may have zero,
87*35238bceSAndroid Build Coastguard Workerone or more varyings. The values of different varyings are rendered as
88*35238bceSAndroid Build Coastguard Workerdiagonal stripes in the drawn triangle.
89