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 SUITE = 'graphics_per-day, graphics, graphics_system'
     24 TIME='LENGTHY'
     25 TEST_CATEGORY = 'Performance'
     26 TEST_CLASS = "gl"
     27 TEST_TYPE = 'client'
     28 # Reboot in the lab after the test ends.
     29 DEPENDENCIES='cleanup-reboot'
     30 BUG_TEMPLATE = {
     31     'labels': ['Cr-OS-Kernel-Graphics'],
     32 }
     33 
     34 DOC = """
     35 This benchmark executes glbench, a graphics benchmark designed to time how long
     36 various graphic intensive activities take, which includes measuring:
     37   - fill rate
     38     - blended
     39     - opaque
     40   -Z reject rate
     41   -triangle rate
     42     - no cull
     43     - half cull (half triangles backface culled)
     44     - full cull (mix of back face and degenerates)
     45   - blend rate
     46   - texture fetch
     47     - nearest
     48     - bilinear
     49     - trilinear
     50   - compute
     51     - vertex shader
     52     - pixel shader
     53     - *fragement shader to test ddx and ddy
     54   - attribute fetch
     55   - color depth stencil test
     56   - *state change
     57   - texture upload
     58   - read back
     59 
     60 * Not yet implemented.
     61 """
     62 
     63 job.run_test('graphics_GLBench')
     64