• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1-------------------------------------------------------------------------
2drawElements Quality Program Test Specification
3-----------------------------------------------
4
5Copyright 2014 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    Rasterizer discard tests
20
21Tests:
22 + dEQP-GLES3.functional.rasterizer_discard.*
23
24Includes:
25 + Correct discarding of following operations are tested:
26	- All primitive draw modes
27	- Color clears & writes
28	- Depth clears & writes
29	- Stencil clears & writes
30 + Following test cases are created:
31	- Discard test for default framebuffer
32	- Discard test for default framebuffer with scissor test enabled
33	- Discard test for a framebuffer object
34
35Excludes:
36
37Description:
38
39Rasterizer discard functionality is tested by first clearing color, depth
40and stencil buffers to initial values. Next, rasterizer discarding is
41enabled, and an operation is performed. Rasterizer discarding is disabled
42afterwards. For depth and stencil clears, series of primitives are drawn
43to make sure that the buffer clear operations were ignored.
44
45Finally, framebuffer pixels are read. If red color is present or blue
46color is not present, the performed operation was not discarded according
47to specification and the test fails.
48
49This procedure is performed for both the default framebuffer and an FBO
50with color, depth and stencil attachments. Additionally, default
51framebuffer discards are tested with scissor test enabled.
52