Merge "Try harder to defeat GLSL compiler dead-code optimizations" into nougat-cts...
[platform/upstream/VK-GL-CTS.git] / doc / testspecs / EGL / functional.resize.txt
1 -------------------------------------------------------------------------
2 drawElements Quality Program Test Specification
3 -----------------------------------------------
4
5 Copyright 2014 The Android Open Source Project
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11      http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 -------------------------------------------------------------------------
19     Title
20
21 Tests:
22  + dEQP-EGL.functional.resize.*
23
24 Includes:
25  + EGL_WIDTH and EGL_HEIGHT
26  + Preservation of back buffer contents
27  + EGL_*_RESOLUTION consistency
28
29 Excludes:
30  + Preservation of front buffer contents
31
32 Description:
33
34 Checks for EGL surface behavior when the surface's native window is resized by external means.
35
36 The surface_size.* tests resize the native window and call
37 eglSwapBuffers(). Then EGL_WIDTH and EGL_HEIGHT are checked to verify
38 that they report the new native window size.
39
40 The back_buffer.* tests create an EGL_BUFFER_PRESERVED surface and draw
41 a test image on it. The native window is resized, and the back buffer is
42 checked to see that it is similar to the original test image in some
43 corner.
44
45 The pixel_density.* tests query the EGL_HORIZONTAL_RESOLUTION and
46 EGL_VERTICAL_RESOLUTION attributes of the surface both before and after
47 resizing. These are compared to the size of the native image in physical
48 display pixels. An error is reported if the results are inconsistent,
49 i.e. if they imply that the size of a physical display pixel changed
50 size during resizing.