• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2012 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
5NAME = 'graphics_GLBench.hwqual'
6AUTHOR = 'chromeos-gfx'
7PURPOSE = 'Benchmark the graphics library performance.'
8CRITERIA = """
9On hwqual this test is run as a benchmark with a large confidence intervals.
10The test also generates output images and verifies their bit accuracy using
11MD5 checksums which are stored in glbench_reference_images.txt (for known
12good images) and in glbench_knownbad_images.txt (for ignored failures -
13this should be very rare though).
14
15If unknown images are encountered the test fails. To resolve this use an
16image diffing tool like Beyond Compare and visually check differences between
17the unknown image and older versions.
18Note: it should nearly never be required to remove old versions of good/bad
19images from these directories.
20"""
21ATTRIBUTES = "suite:hwqual"
22TIME='FAST'
23TEST_CATEGORY = 'Performance'
24TEST_CLASS = "gl"
25TEST_TYPE = 'client'
26BUG_TEMPLATE = {
27    'components': ['OS>Kernel>Graphics'],
28}
29
30DOC = """
31On hwqual we do not upload performance numbers to the chrome dashboard. We run
32glbench with the "-hasty" option to stay well below the BVT limit of 20
33minutes. This option will run each test at 512x512 resolution only, run it
34only for a fraction of the loops we normally do, and not cool down the
35machine between tests. For this PerfControl is disabled.
36
37This benchmark executes glbench, a graphics benchmark designed to time how long
38various graphic intensive activities take, which includes measuring:
39  - fill rate
40    - blended
41    - opaque
42  -Z reject rate
43  -triangle rate
44    - no cull
45    - half cull (half triangles backface culled)
46    - full cull (mix of back face and degenerates)
47  - blend rate
48  - texture fetch
49    - nearest
50    - bilinear
51    - trilinear
52  - compute
53    - vertex shader
54    - pixel shader
55    - *fragement shader to test ddx and ddy
56  - attribute fetch
57  - color depth stencil test
58  - *state change
59  - texture upload
60  - read back
61
62* Not yet implemented.
63"""
64
65job.run_test('graphics_GLBench',
66             hasty=True,
67             constraints=[
68                 'mpixels_sec_fill_solid >= 190',
69                 'mpixels_sec_fill_tex_nearest >= 190',
70                 'mpixels_sec_fill_tex_bilinear >= 190',
71             ])
72