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