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-cq' 6AUTHOR = 'chromeos-gfx' 7PURPOSE = 'Benchmark the graphics library performance.' 8CRITERIA = """ 9On bvt-cq 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""" 23ATTRIBUTES = "suite:bvt-cq, suite:graphics, suite:graphics_per-day, suite:graphics_system" 24TIME='FAST' 25TEST_CATEGORY = 'Performance' 26TEST_CLASS = "gl" 27TEST_TYPE = 'client' 28JOB_RETRIES = 2 29BUG_TEMPLATE = { 30 'components': ['OS>Kernel>Graphics'], 31} 32 33DOC = """ 34On bvt, bvt-cq we do not upload performance numbers to the chrome dashboard. We run 35glbench with the "-hasty" option to stay well below the BVT limit of 20 36minutes. This option will run each test at 512x512 resolution only, run it 37only for a fraction of the loops we normally do, and not cool down the 38machine between tests. For this PerfControl is disabled. 39 40This benchmark executes glbench, a graphics benchmark designed to time how long 41various graphic intensive activities take, which includes measuring: 42 - fill rate 43 - blended 44 - opaque 45 -Z reject rate 46 -triangle rate 47 - no cull 48 - half cull (half triangles backface culled) 49 - full cull (mix of back face and degenerates) 50 - blend rate 51 - texture fetch 52 - nearest 53 - bilinear 54 - trilinear 55 - compute 56 - vertex shader 57 - pixel shader 58 - *fragement shader to test ddx and ddy 59 - attribute fetch 60 - color depth stencil test 61 - *state change 62 - texture upload 63 - read back 64 65* Not yet implemented. 66""" 67 68job.run_test('graphics_GLBench', hasty=True) 69