Home | History | Annotate | Download | only in graphics_GLBench
      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 
      5 NAME = 'graphics_GLBench'
      6 AUTHOR = 'chromeos-gfx'
      7 PURPOSE = 'Benchmark the graphics library performance.'
      8 CRITERIA = """
      9 Test should not crash and not overheat (which is monitored by PerfControl).
     10 Test generates output images and verifies their bit accuracy using MD5 checksums
     11 which are stored in
     12 ../../deps/glbench/glbench_reference_images.txt (for known good images)
     13 and in ../../deps/glbench/glbench_knownbad_images.txt (for ignored failures -
     14 this should be very rare though).
     15 
     16 If unknown images are encountered the test fails. To resolve this use an
     17 image diffing tool like Beyond Compare and visually check differences between
     18 the unknown image and older versions in ../../deps/glbench-images/.
     19 Note: it should nearly never be required to remove old versions of good/bad
     20 images from these directories.
     21 """
     22 ATTRIBUTES = "suite:graphics, suite:graphics_per-day, suite:graphics_system"
     23 TIME='LENGTHY'
     24 TEST_CATEGORY = 'Performance'
     25 TEST_CLASS = "gl"
     26 TEST_TYPE = 'client'
     27 # Reboot in the lab after the test ends.
     28 DEPENDENCIES='cleanup-reboot'
     29 BUG_TEMPLATE = {
     30     'components': ['OS>Kernel>Graphics'],
     31 }
     32 
     33 DOC = """
     34 This benchmark executes glbench, a graphics benchmark designed to time how long
     35 various 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 
     62 job.run_test('graphics_GLBench')
     63