• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5PY_VERSION = 3
6NAME = 'graphics_GLBench'
7AUTHOR = 'chromeos-gfx'
8PURPOSE = 'Benchmark the graphics library performance.'
9CRITERIA = """
10Test should not crash and not overheat (which is monitored by PerfControl).
11Test generates output images and verifies their bit accuracy using MD5 checksums
12which are stored in glbench_reference_images.txt (for known good images)
13and in glbench_knownbad_images.txt (for ignored failures - this should be
14very rare though).
15
16If unknown images are encountered the test fails. To resolve this use an
17image diffing tool like Beyond Compare and visually check differences between
18the unknown image and older versions.
19Note: it should nearly never be required to remove old versions of good/bad
20images from these directories.
21"""
22ATTRIBUTES = "suite:graphics, suite:graphics_per-day, suite:graphics_system"
23TIME='LENGTHY'
24TEST_CATEGORY = 'Performance'
25TEST_CLASS = "gl"
26TEST_TYPE = 'client'
27# Reboot in the lab after the test ends.
28DEPENDENCIES='cleanup-reboot'
29BUG_TEMPLATE = {
30    'components': ['OS>Kernel>Graphics'],
31}
32
33DOC = """
34This benchmark executes glbench, a graphics benchmark designed to time how long
35various graphic intensive activities take, which includes measuring:
36  - fill rate
37    - blended
38    - opaque
39  -Z reject rate
40  -triangle rate
41    - no cull
42    - half cull (half triangles backface culled)
43    - full cull (mix of back face and degenerates)
44  - blend rate
45  - texture fetch
46    - nearest
47    - bilinear
48    - trilinear
49  - compute
50    - vertex shader
51    - pixel shader
52    - *fragement shader to test ddx and ddy
53  - attribute fetch
54  - color depth stencil test
55  - *state change
56  - texture upload
57  - read back
58
59* Not yet implemented.
60"""
61
62job.run_test('graphics_GLBench')
63