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