History log of /external/autotest/client/deps/glbench/src/utils.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c5e14be9b5a38349bb10c3ea7625353aae62da38 24-Jan-2017 Ilja H. Friedel <ihf@chromium.org> glbench: add temperature sensor paths for kevin/elm.

This is a workaround. A better fix will consist in calling
a helper python script which calls
autotest/bin/site_utils.py:def get_current_temperature_max()

BUG=chromium:684189
TEST=None

Change-Id: I7f61b4f6b3c18c721716021ba9a9f08df53b8b5b
Reviewed-on: https://chromium-review.googlesource.com/430859
Commit-Ready: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Haixia Shi <hshi@chromium.org>
/external/autotest/client/deps/glbench/src/utils.cc
8b46c24b560a730da0f21ad52866dbc94506e951 23-Mar-2015 Frank Henigman <fjhenigman@chromium.org> glbench: define alpha value in saved images

Alpha planes are saved and compared to reference images so we should
request them in the GL configuration, otherwise the results are
probably undefined.
Clear the alpha to 1 to match existing reference images.
Only the waffle code is updated because the egl and glx code is not
used with glbench and should be deleted soon anyway.

BUG=chromium:469861
TEST="test_that -b $BOARD $HOST graphics_SanAngeles" on link, daisy, lumpy

Change-Id: I9b4cc35c55a3506276f36e43f095a62a5fdd7c16
Reviewed-on: https://chromium-review.googlesource.com/261972
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Trybot-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Frank Henigman <fjhenigman@chromium.org>
/external/autotest/client/deps/glbench/src/utils.cc
3949507f48e481f1ae1e4df828c962674ae0b9d6 06-Jun-2014 Daniel Kurtz <djkurtz@chromium.org> glbench: don't fail to read Shader log when reading a Program log

The current code causes InitShaderProgramWithHeaders() to always exit with
a non-zero glGetError(), since it never calls glGetError() in the
"read program log" fall-back path.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>

BUG=none
TEST=none

Change-Id: I98848aa74e5e83d3880f74f6b51e24ba388b32d2
Reviewed-on: https://chromium-review.googlesource.com/205282
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
Commit-Queue: Daniel Kurtz <djkurtz@chromium.org>
/external/autotest/client/deps/glbench/src/utils.cc
977aaddd5fbb6e787b442bdf0ddc054326dcbb4d 30-Apr-2014 Ilja Friedel <ihf@chromium.org> graphics_GLBench: thermal fixes.

This change makes measuring temperatures from glbench more robust.
Also decouples -hasty from temperatures for more robustness.
Finally try to detect unexpected test termination better.

TEST=Ran on nyan_big.
BUG=chrome-os-partner:23243

Change-Id: Iec65cb9aaa42534148c3a65043368492baca1d54
Reviewed-on: https://chromium-review.googlesource.com/197605
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/deps/glbench/src/utils.cc
3bbf4f178422d0a234a8ac0d090f691ff6344765 09-Apr-2014 Ben Chan <benchan@chromium.org> glbench: Update to build against libchrome-242728

BUG=chromium:356431
CQ-DEPEND=CL:193874
TEST=`emerge-$BOARD autotest-tests autotest-deps-glbench`
TEST=Run graphics_GLBench test

Change-Id: I1b40642b8a0ccb5c7a43c7331f8855d875a8098f
Reviewed-on: https://chromium-review.googlesource.com/193882
Reviewed-by: Daniel Erat <derat@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Commit-Queue: Ben Chan <benchan@chromium.org>
/external/autotest/client/deps/glbench/src/utils.cc
6f72b2bf8d333b52f6808bcc0f1e43239de26fed 11-Apr-2014 Ilja Friedel <ihf@chromium.org> Revert "GLBench: add new fillrate test of variable FBO size."

Some pictures have changed that should not have. Starting over.

This reverts commit b4efb4a15609c2af3248aa9a256a7d5e957afa78.

Change-Id: I15af5b4c4878f2f95b661b7c575a3fd71b81b075
Reviewed-on: https://chromium-review.googlesource.com/194135
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/deps/glbench/src/utils.cc
b4efb4a15609c2af3248aa9a256a7d5e957afa78 08-Apr-2014 Ilja Friedel <ihf@chromium.org> GLBench: add new fillrate test of variable FBO size.

We would like to measure memory throughput (in this case bilinear copy)
depending on texture size. This is interesting to study cache behavior.

Also changes slightly thermal throttling if we can't read temperatures
(by sleeping for a full 30 seconds between tests to ensure cold state).

Finally adding a command line option called "-hasty". This option will
run each test at 512x512 resolution only, run it only for a fraction of
the loops we normally do, and not cool down the machine between test.
The hasty option will be used to verify MD5s in BVT and might also be
useful for debugging test failures.

Currently glbench -save -hasty runs in 15 seconds on daisy.

BUG=chromium:355202
TEST=Ran locally on daisy and link.

Change-Id: I6a21565eaf112f3373b2bab26ac122ed7b1ae5cb
Reviewed-on: https://chromium-review.googlesource.com/193576
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
/external/autotest/client/deps/glbench/src/utils.cc
3b4712cc3f0a77cfa7851fb73fb03fcb0c4e6318 14-Mar-2014 Ilja Friedel <ihf@chromium.org> Start monitoring temperature during tests.

There are two parts to this:
1) Added infrastructure to site_utils.py to get machine into defined state
and keep tests honest.
2) Change glbench binary to base its wait times on currently observed
temperatures.

This should make the test faster, as we can cut down on blind sleep times.
But I don't expect on its own to change the numbers.

BUG=chromium:344766
TEST=1) Ran graphics_GLBench on link.
2) Ran hardware_SsdDetection and firmware_TouchMTB on link to ensure
get_board() still works for them.

Change-Id: I3cb908a35d911a3f9ca6ef194aa5a3d1ac3e2152
Reviewed-on: https://chromium-review.googlesource.com/190290
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/deps/glbench/src/utils.cc
c04bdd4a43f9a240961c8fb07afc1386fddb5826 31-Jan-2013 Ilja Friedel <ihf@chromium.org> Enforce max sizes for glViewport.

The driver may clamp the viewport when requesting too large dimensions.
Reduce all viewports to screen size and adjust shaders in corresponding
files (only). Also switch texture in the capture test from LUMINANCE to
RGBA as we don't really care about the former.

Updating the varyings_shader references as the output changes with the
new glViewport (and no shader adjustment).

Finally this fixes a bug in triangle_setup where we were drawing only
1/4 of the triangles in the lower left corner. Now the output is
centered and made slightly larger.

BUG=chromium-os:30493
TEST=Ran GLBench and WindowManagerGraphicsCapture on Alex. Verified
performance output is the same as on the dashboard modulo noise.

Change-Id: I716a79c8d52cd15bb1f6810b61140566e5798504
Reviewed-on: https://gerrit.chromium.org/gerrit/41848
Reviewed-by: Stuart Abercrombie <sabercrombie@chromium.org>
Commit-Queue: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Ilja H. Friedel <ihf@chromium.org>
/external/autotest/client/deps/glbench/src/utils.cc
7f840e726dd0455d4ef338de4de89adcf2118534 19-Dec-2012 Simon Que <sque@chromium.org> glbench: refactor EGL/GLX API into its own class

- Don't leave it hanging in main.h.
- Create GLInterface class to contain the common EGL/GLX API.
- Define derived EGLInterface and GLXInterface classes in
egl/glx_stuff.h, respectively.
- In egl/glx_stuff.cc, the functions are mostly the same, just members
of the EGL/GLXInterface class.
- There is a common global pointer g_main_gl_interface that contains a
globally used GLInterface object. Calls to the EGL/GLX functions are
made through this pointer.

BUG=chromium-os:36746,chromium-os:36750
TEST=emerge autotest-deps-glbench, run glbench on link and daisy

Change-Id: I123a8005c960783df7e4c75ea5126ec8b5d8bbd5
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/39970
Reviewed-by: Stuart Abercrombie <sabercrombie@chromium.org>
/external/autotest/client/deps/glbench/src/utils.cc
7a3fa0bfc4c473acd5cd5a6f58b4ae98c3050d15 31-Jul-2012 Stuart Abercrombie <sabercrombie@chromium.org> Clear buffers before OpenGL ES GLBench tests.

This was only happening in the GLX path.

With the clears 1280x768_fps_no_fill_compositing and us_swap_swap match i915 results, and test results in general are less order-dependent.

BUG=chrome-os-partner:11731
TEST=i915 stays the same. Arm improves slightly as above.

Change-Id: I0c66e0650f54417bf0742b4227e526182ae8d546
Reviewed-on: https://gerrit.chromium.org/gerrit/28745
Tested-by: <sabercrombie@google.com>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Commit-Ready: <sabercrombie@google.com>
/external/autotest/client/deps/glbench/src/utils.cc
c33878b0587a1b46090e7249a87d32e7f88ed9ae 25-Jul-2012 Stuart Abercrombie <sabercrombie@chromium.org> Switch GLBench glDrawElements calls to GL_UNSIGNED_SHORT.

We were using GL_UNSIGNED_INT which is not part of the standard GL ES spec.

BUG=chromium-os:32455
TEST=Same results on i915. Sane results for affected tests on Arm.

Change-Id: I6e055f42b11a17129c80679bf1fb5e7afc550f0c
Reviewed-on: https://gerrit.chromium.org/gerrit/28417
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Stuart Abercrombie <sabercrombie@chromium.org>
Commit-Ready: Stuart Abercrombie <sabercrombie@chromium.org>
/external/autotest/client/deps/glbench/src/utils.cc
39dbdc147574a0a4cdbee2e07ee1d1f1d0bca60a 16-Jun-2011 Allen Martin <amartin@nvidia.com> Add include of sys/stat.h

These tests call fstat() without first including sys/stat.h, which causes
a compilation failure with some header file changes in newer versions of
glibc (like 2.13)

BUG=none
TEST=emerged on tegra2_seaboard, verified clean build with glibc 2.13

Change-Id: I18782535e422e4e64efefbb8802e85a1aec949ba
Reviewed-on: http://gerrit.chromium.org/gerrit/2745
Reviewed-by: Allen Martin <amartin@nvidia.com>
Tested-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Olof Johansson <olofj@chromium.org>
Reviewed-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
/external/autotest/client/deps/glbench/src/utils.cc
8faad30e5a44271d9e50c4d75e1271018d7439b5 26-Apr-2011 Ilja H. Friedel <ihf@google.com> This change looks scary, but it shouldn't be once you ignore all the image file changes. Making the browser full screen also helps.

This change does not
a) change any of the existing tests
b) in particular it does not change any timing.

This change should do the following
1) write all images as .png
2) encode pixel MD5 in the image filename
These two things combined make it possible to easily examine images with standard viewers and do a check to classify an image by simply looking it up in a directory of known good/bad images. Also lists of good/bad images can be generated simply by doing an ls on a directory. This means checksums.txt can go away.
3) give more verbose output in case of warning/failures
4) make glbench buildable outside of chroot again controlled via #define
5) copy images into result tree in autotest so they can be easily be looked at when something breaks
6) create a human friendly summary.txt in the result tree for easy failure analysis

The beef of the changes is in testbase.cc and graphics_GLBench.py

The change was tested on mario and tegra.

BUG=chromium-os:14282
TEST=

Review URL: http://codereview.chromium.org/6880025

Change-Id: I480fb7c9c058594c5ccd32b9251a42778296db7f
/external/autotest/client/deps/glbench/src/utils.cc
03fe5b9dfeedd98ab6c4e4d6785c9f8515ae74e5 01-Feb-2011 Kenneth Waters <kwaters@chromium.org> graphics_GLBench: Enable yuv shader tests.

- Fix yuv shader tests to run on OpenGL|ES
- Regild images.

BUG=chromium-os:10763 chromium-os:4243
TEST=Build and run on x86-generic and tegra2_seaboard

Change-Id: Ia299cec522538b989be3bd54efe384e15ac689a8

Review URL: http://codereview.chromium.org/6352019
/external/autotest/client/deps/glbench/src/utils.cc
52e113a50fc80e4e359d521cf971a57091ef1150 06-Dec-2010 Kenneth Waters <kwaters@chromium.org> graphics_GLBench: Fix OpenGL-ES incompatibilites.

- Add 'NVIDIA Corporation - NVIDIA Tegra' golds.
- Don't checksum tests that rely on screen garbage.
- Increase timeout so readpixels test will run on Tegra
- Fix iteration count in ReadPixels test.

BUG=7736
TEST=Run on tegra2_seaboard and x86-generic

Change-Id: I1a323a85eaa8416d33a65afab6ee38569107b528

Review URL: http://codereview.chromium.org/5587003
/external/autotest/client/deps/glbench/src/utils.cc
f50ecb1b44db52db39768f55a03280e1fd8eeac7 15-Jun-2010 Alexey Marinichev <amarinichev@chromium.org> Added gflags switches: duration, tests, save, out.
Added saving images after a testcase is finished.
Updated power_Draw control file.

Checking against golden images will be done outside from a python script.

Review URL: http://codereview.chromium.org/2794002
/external/autotest/client/deps/glbench/src/utils.cc
219b708cc94dcc7fdddf9cecd54fcc2005c9fd9e 25-May-2010 Alexey Marinichev <amarinichev@chromium.org> Moved selection of I915 hack out of the YUV shader.

Review URL: http://codereview.chromium.org/2152003
/external/autotest/client/deps/glbench/src/utils.cc
9f9b873ae65c0a087ed3cd9856121a6d41e3410a 21-May-2010 Alexey Marinichev <amarinichev@chromium.org> Split tests into individual files. Got rid of globals by converting them to classes.

Review URL: http://codereview.chromium.org/2123013
/external/autotest/client/deps/glbench/src/utils.cc
5fe911b267aef7a6968ef95f7898cbf1b2cc2acc 01-May-2010 Alexey Marinichev <amarinichev@chromium.org> Replaced teartest state machines with classes. Fixed/commented out GLES2 code.

Review URL: http://codereview.chromium.org/1732030
/external/autotest/client/deps/glbench/src/utils.cc
ec7eb53efd1192903829dac86a6fbd1d204a1cbf 12-Mar-2010 Antoine Labour <piman@chromium.org> set resource loading path relative to the executable

Review URL: http://codereview.chromium.org/897003
/external/autotest/client/deps/glbench/src/utils.cc