1------------------------------------------------------------------------- 2drawElements Quality Program Test Specification 3----------------------------------------------- 4 5Copyright 2015 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 GL_EXT_draw_buffers_indexed tests. 20 21Tests: 22 + dEQP-GLES31.functional.draw_buffers_indexed.* 23 24Includes: 25 + Blend equations, blend functions, blend enable and color masks. 26 + Setting common state first and then per draw buffer state. 27 + Setting per draw buffer state first and then common state. 28 + Overriding per draw buffer state with common state. 29 + Overriding common state with per draw buffer state. 30 + Random tests for different states and renderbuffer formats. 31 32Excludes: 33 + Query tests. 34 + Exhaustive blend state combinations. 35 + Exhaustive tests for all renderbuffer formats. 36 37Description: 38 39Each test cases begins by creating framebuffer object and required renderbuffer 40objects. Depending on test case it sets some common blend state with original 41non-indexed functions, then some draw buffer specific state with indexed 42functions and finally tries to set some common blend state again with original 43functions. Different test cases set different state before and after setting per 44draw buffer state. Results are verified by rendering single quad using the 45framebuffer object and reading back each renderbuffer, which are then compared 46to reference. 47 48pre_common -group uses two RGBA8 renderbuffers. It first sets some common state 49and changes that same state for second draw buffer using indexed functions. 50 51post_common -group is similar to pre_common -group except it first sets the draw 52buffer specific state for second renderbuffer and then overrides it by using 53non-indexed functions. 54 55min_max_random -group uses specification minimum maximum number of draw buffers 56and randomizes renderbuffer formats, pre- and post-common state and per draw 57buffer state. 58 59max_random -group works as min_max_random -group, but uses the implementation 60maximum number of draw buffers. 61